Bug 497345

Summary: Plasma widget erroneously shows charge thresholds for all power supply batteries
Product: [Plasma] plasmashell Reporter: Faidon Liambotis <paravoid>
Component: Power and Battery widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: isma.af, kde, natalie_clarius, nate
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Power widget showing the issue

Description Faidon Liambotis 2024-12-12 00:52:38 UTC
Created attachment 176539 [details]
Power widget showing the issue

SUMMARY

1) I own a (Dell) laptop, which has a built-in battery. I have charge start/end thresholds configured to maintain the battery's health. This is reported correctly by the battery applet (neat!).
2) I also own an APC UPS to which my equipment is plugged in when I sit at my desk. I have the UPS connected to the laptop with a USB cable. Linux detects it as a USB HID device, and then (I believe) UPower and Powerdevil pick it up and correctly report its battery levels (also neat). To my knowledge the UPS does not support charge start/end thresholds. The UPS is not listed under /sys/class/power_supply, but `upower --dump` lists it, and does not mention any thresholds.

The bug lies in the fact that the message "Battery is configured to charge up to approximately 85%" is displayed beneath both the laptop battery (correct) and the UPS battery (wrong). The message is not displayed under any other devices like mice, headphones etc. (also correct).

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.7.2
Kernel Version: 6.12.3-amd64 (64-bit)
upower: 1.90.6

ADDITIONAL INFORMATION
See the attached screenshot.
Comment 1 Ismael Asensio 2025-02-07 19:46:17 UTC

*** This bug has been marked as a duplicate of bug 448020 ***