Bug 426691 - Battery charge threshold detected as 0 on unsupported device
Summary: Battery charge threshold detected as 0 on unsupported device
Status: RESOLVED WORKSFORME
Alias: None
Product: Powerdevil
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 5.19.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-09-18 14:51 UTC by hexchain
Modified: 2020-09-21 04:29 UTC (History)
2 users (show)

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


Attachments
UPower dump (2.53 KB, text/plain)
2020-09-18 14:51 UTC, hexchain
Details
Battery applet in the tray (20.72 KB, image/png)
2020-09-18 14:52 UTC, hexchain
Details
Battery applet panel (19.21 KB, image/png)
2020-09-18 14:52 UTC, hexchain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hexchain 2020-09-18 14:51:38 UTC
Created attachment 131746 [details]
UPower dump

SUMMARY
The battery applet sometimes does not work on a device that does not support setting charge threshold.

STEPS TO REPRODUCE
Not sure. Upgraded Plasma to 5.19.90 and logged out, then logged back in.

OBSERVED RESULT
The "Battery and brightness" applet no longer correctly shows battery level any more. It shows an empty battery icon with a [x], and says "Your battery is configured to only charge up to 0%". The applet also does not have a progress bar showing battery level any more.

EXPECTED RESULT
The configured charge limit should not be shown on devices that do not support such a feature, and battery level should probably always be shown if there is a battery.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.19.90
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Comment 1 hexchain 2020-09-18 14:52:19 UTC
Created attachment 131747 [details]
Battery applet in the tray
Comment 2 hexchain 2020-09-18 14:52:33 UTC
Created attachment 131748 [details]
Battery applet panel
Comment 3 Nate Graham 2020-09-18 21:26:34 UTC
(If anyone else can confirm this, it's gonna get bumped to VHI)
Comment 4 hexchain 2020-09-19 11:29:12 UTC
Okay, I tried to log out and log in and the battery charge threshold is back to 100% again. I created a new user but was also unable to reproduce this issue.

Feel free to close it.
Comment 5 Nate Graham 2020-09-21 04:29:53 UTC
Ok, thanks. :)