Bug 444847 - Battery health jumps all over the place.
Summary: Battery health jumps all over the place.
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power and Battery widget (show other bugs)
Version: 5.23.2
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-02 17:41 UTC by yizel7
Modified: 2021-11-05 17:30 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yizel7 2021-11-02 17:41:37 UTC
In the one month I have been using KDE Plasma 5 and occasionally I hover over my battery system tray icon. The battery health % keeps jumping all over the place. I have seen the following in roughly this order:
100%
98%
99%
96%
100%
98%
100%
97%
99%
100%

Can the algorithm for this be looked at and improved if possible?

STEPS TO REPRODUCE
1. Buy a new laptop and install KDE Plasma minimal
2. Hover over the battery system tray icon and note the battery health %
3. Use your computer as you would for a couple days
4. Hover over the battery system tray icon and note the battery health %

OBSERVED RESULT
Not guaranteed but the health will probably say a number between 95% and 100%.

EXPECTED RESULT
Battery health should be accurate. It should not be possible for the battery to lose up to 5% of battery health in the matter of a few days when it is only used a couple hours a day. At which point the laptop battery would be dead within the span of a month or two. Let alone for the battery health to improve itself.

SOFTWARE/OS VERSIONS
OS: Arch Linux x86_64
Kernel: 5.14.15-arch1-1
(available in About System)
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Graphics Platform: X11
Comment 1 Kai Uwe Broulik 2021-11-02 18:24:42 UTC
All it does is look at the last full charge and compare that to the design capacity of the battery. This can vary from time to time.

In any case, this data comes straight from UPower, so you might want to report an issue there.