Bug 477045

Summary: Power Battery Applet Remaining Charge Percent not getting updated
Product: [Plasma] plasmashell Reporter: Emre <erenoglu>
Component: Power and Battery widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: cousinmarc, kde, kdedev, me, natalie_clarius, nate, ralf
Priority: NOR    
Version First Reported In: 5.27.9   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Power Tray Icon Percentage
Energy Info window Battery percentagea
Another example
Powerdevil battery applet remaining time

Description Emre 2023-11-15 13:25:40 UTC
Created attachment 163186 [details]
Power Tray Icon Percentage

SUMMARY
I'm using my laptop w/o a power adapter and noticing that the power icon in tray always shows "Batttery at 92%". However when i look at Energy in Info center, I can see it's at 78% (or lower). 
If I restart upower with systemctl, then I have a correct up-to-date value in the icon matching Energy info window , but it gets outdated quickly as I use the laptop.


STEPS TO REPRODUCE
1.  Unplug power, suspend
2.  Resume and start working
3.  After some time, ie 15  mins, hover over the power icon in tray and see remaining percent. Then right click the power icon in tray and click "Show Energy Information". See the real remaining battery there, not matching the hover value.
4. You can restart the upower daemon with systemd to get an updated % but it will quickly get outdated as well. It does not update.

OBSERVED RESULT
Battery % is not being updated as battery is used

EXPECTED RESULT
Battery % shall be correctly shown, matching Energy Info window

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.27.9
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION
In the pictures, you can see that actual battery is 75% while the tray icon still showing 77%.
Comment 1 Emre 2023-11-15 13:26:09 UTC
Created attachment 163187 [details]
Energy Info window Battery percentagea
Comment 2 Emre 2023-11-16 09:37:05 UTC
Created attachment 163211 [details]
Another example
Comment 3 Ralf Hemmenstaedt 2023-12-29 15:09:17 UTC
I can confirm this in on Debian 12 (Bookworm) with powerdevil 5.27.5.
Downgrading to version 5.20.5 (from Debian 11 / Bullseye) fixes it and the remaining time gets updated correctly.
Comment 4 Ralf Hemmenstaedt 2023-12-29 15:11:59 UTC
Created attachment 164540 [details]
Powerdevil battery applet remaining time
Comment 5 TraceyC 2024-09-04 20:28:28 UTC
Thank you for the bug report. I'm sorry we weren't able to get to it yet. I would recommend updating to Plasma 6, a lot of the code surrounding this was updated and it's possible this has been fixed. The functionality works for me on 6.1.4 and git-master.
Comment 6 Bug Janitor Service 2024-09-19 03:47:03 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Emre 2024-09-19 06:03:04 UTC
I dont observe this anymore in my Arch, up to date with KDE packages Plasma 6.1.5 Frameworks 6.6.0