Bug 426691

Summary: Battery charge threshold detected as 0 on unsupported device
Product: [Unmaintained] Powerdevil Reporter: hexchain <kde>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kde, nate
Priority: NOR Keywords: regression
Version First Reported In: 5.19.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: UPower dump
Battery applet in the tray
Battery applet panel

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. :)