Bug 477045 - Power Battery Applet Remaining Charge Percent not getting updated
Summary: Power Battery Applet Remaining Charge Percent not getting updated
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power and Battery widget (other bugs)
Version First Reported In: 5.27.9
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-15 13:25 UTC by Emre
Modified: 2024-09-19 06:03 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Power Tray Icon Percentage (23.91 KB, image/png)
2023-11-15 13:25 UTC, Emre
Details
Energy Info window Battery percentagea (8.77 KB, image/png)
2023-11-15 13:26 UTC, Emre
Details
Another example (74.32 KB, image/png)
2023-11-16 09:37 UTC, Emre
Details
Powerdevil battery applet remaining time (34.76 KB, image/png)
2023-12-29 15:11 UTC, Ralf Hemmenstaedt
Details

Note You need to log in before you can comment on or make changes to this bug.
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