Created attachment 196039 [details] Screenshot of the notifications DESCRIPTION When using a wireless peripheral device, the Power Management notification system will report a battery level of "-1%" (negative one percent) for the device, whenever it enters so-called "sleep mode", or the device is turned off. In particular, this seems to affect Logitech devices, but it is possible other wireless devices are also affected. Ideally, impossible battery levels should be ignored. STEPS TO REPRODUCE 1. Have a wireless periheral device connected to the computer, ideally a wireless mouse. Personally, the connection method is a USB receiver. 2. Ensure that, in the System Settings, you have notifications for "Peripheral Battery Low" enabled (Notifications > Application Notifications > Power Management > Peripheral Battery Low). 3. Turn the device off and on via its on/off switch. OBSERVED RESULT The system should notify, either by sound or pop-up (whichever was enabled), that the battery level is negative one percent. This should also be the case if the device is left untouched for a few minutes. If the previous result is not observed, use a Logitech device specifically. EXPECTED RESULT As with previous versions, the device's powered state should not dictate what its battery percentage is, and impossible values such as negative one percent, should be avoided. SOFTWARE/OS VERSIONS Operating System: KDE Plasma Version: 6.7.5 KDE Frameworks Version: 6.30.0 Qt Version: 6.11.2 ADDITIONAL INFORMATION Attached is a screenshot of the notifications that occur when rapidly switching the mouse on and off.
Currently confirmed devices that are affected: Logitech G305 (mouse); Logitech MX Keys (keyboard); Logitech K400r (keyboard and trackpad).
Seeing the same issue here on Fedora 44 after the recent Plasma update. Being a Desktop box I disabled Powerdevil for now as it spams the logs. Solaar reports everything is OK, Logitech wireless keyboard and Mouse Operating System: Fedora Linux 44 KDE Apps Version 26.08.1 KDE Plasma Version: 6.7.5 KDE Frameworks Version: 6.30.0 Qt Version: 6.11.2 Kernel Version: 7.2.5-200.fc44.x86_64 (64-bit) Graphics Platform: Wayland
Same thing started happening on my Fedora 44 system after the latest plasma update to KDE 6.7.5 on my desktop system. I have a Logitech K350 wireless keyboard and M510 wireless mouse. Solaar also reports everything is fine as someone else also noted. Operating System: Fedora Linux 44 KDE Plasma Version: 6.7.5 KDE Frameworks Version: 6.30.0 Qt Version: 6.11.2 Kernel Version: 7.2.4-200.fc44.x86_64 (64-bit) Graphics Platform: Wayland Processors: 16 × 13th Gen Intel® Core™ i5-13400 Memory: 16 GiB of RAM (15.4 GiB usable) Graphics Processor: Intel® Graphics
*** Bug 525592 has been marked as a duplicate of this bug. ***
Also affected on CachyOS with a Logitech MX Keys and an MX Master 3, both via a Logitech receiver (hid-logitech-hidpp). Plasma 6.7.5, Frameworks 6.30.0, Qt 6.11.2, kernel 7.2.4-3-cachyos, Wayland, upower 1.91.4. Adding a UPower trace, since it may help narrow down where the -1 comes from: UPower itself never exposes a negative percentage. These devices report battery in HID++ "status" mode, so the kernel only provides three coarse levels (low/normal/full) and UPower synthesises a percentage flagged "should be ignored". During a power-cycle of the keyboard there is a window of roughly 3.4 s where the coarse level is `unknown`: [15:50:32.214] battery_hidpp_battery_1 (Logitech MX Keys) state: unknown battery-level: unknown percentage: 50% (should be ignored) icon-name: 'battery-missing-symbolic' [15:50:35.528] battery_hidpp_battery_1 state: discharging battery-level: unknown percentage: 50% (should be ignored) icon-name: 'battery-caution-symbolic' [15:50:35.590] battery_hidpp_battery_1 state: fully-charged battery-level: full percentage: 100% (should be ignored) icon-name: 'battery-full-charged-symbolic' So the -1 appears to be produced downstream, when the `unknown` coarse level is converted to a percentage, and that value is then compared against the low-battery threshold. The battery widget is unaffected and keeps showing 100% throughout. Separately, the notification title always reads "keyboard battery low" even when the device is the MX Master 3 mouse. That part is not a Plasma bug: `upower -d` already reports the mouse under the `keyboard` device type, so the wrong type is coming from upstream.
(In reply to Thibaut FRANCOIS from comment #5) Thank you for an in-depth report. I can confirm that a upower monitor changes values from this: state: fully-charged battery-level: full percentage: 100% (should be ignored) To this, in the case of a sleep or power-off event: state: unknown battery-level: unknown percentage: 50% (should be ignored) Notably, as my G305 is battery-powered and not rechargeable, those values stay for the entire duration of the sleep or power-off state, only returning to the former when active again. Since upower was not part of the updated packages, I do not think it too likely to be the source of this issue, at least by itself, although it is still possible (and it could be a factor). On the "keyboard" moniker matter, I believe it is unrelated and not significant to this issue.
Also confirming the (very frequent) "Keyboard Battery Low (-1% remaining)" warning from KDE with both a: - Logitech K330 (a keyboard) - Wireless Mouse M215 2nd Gen both connected to the same Logitech unifying receiver, the 3 together making up a standard Logitech "MK330 Wireless Combo" set. CachyOS, fully updated as of today; started happening now 2 or 3 days ago and priority is I'd say in fact slightly over "Normal". It's so annoying that the only realistic option it leaves is turning off the notifications altogether.
(In reply to René Herman from comment #7) Thank you for the information. For the sake of brevity and consideration for the CC list, it is best to focus on new findings. Unfortunately, bug importance is not dictated by its level of annoyance, but rather the presence, or absence, of reasonable workarounds. I would not consider this report to be over normal severity.
*** Bug 525666 has been marked as a duplicate of this bug. ***
Relevant thread on Fedora forum: https://discussion.fedoraproject.org/t/erroneous-low-battery-notifications/201767
Hi, same here, on Fedora 44, KDE 6.7.5, I have seen that after leaving the keyboard MX Keys for 5 minutes KDE shows the notification: ``` Keyboard Battery Low (-1% Remaining) The battery in “Logitech MX Keys” is running low. Please recharge the battery. ``` So, I have pluged another keyboard in order to execute the `upower -d` command, and it shows: ``` Device: /org/freedesktop/UPower/devices/battery_hidpp_battery_0 native-path: hidpp_battery_0 model: Logitech MX Keys serial: 1b-65-31-51 power supply: no updated: Tue 15 Sep 2026 01:19:43 PM CEST (3 seconds ago) has history: yes has statistics: yes keyboard present: yes rechargeable: yes state: unknown warning-level: none battery-level: unknown percentage: 50% (should be ignored) icon-name: 'battery-missing-symbolic' ``` On the Power & Battery it actually shows -1%: https://i.ibb.co/CsbCMwYZ/Screenshot-20260915-132036.png Hope it helps!
Not particularly sure anyone needs this comment -- in fact pretty sure not any C or C++ programmer does -- but FWIW... "-1" as a (two's complement) signed integer is MAXUINT of the proper size when see as an unsigned one. That is, I expect that the level-compare as such hasn't changed and is fine, but that upstream from that code itself a type of something changed signedness, now causing the compiler to generate a signed rather than unsigned compare.
This seems to have been fixed with: https://invent.kde.org/plasma/powerdevil/-/merge_requests/677
Please apply this fix at powerdevil and let me know if that works for you: https://invent.kde.org/plasma/powerdevil/-/merge_requests/677 Related: https://invent.kde.org/plasma/powerdevil/-/work_items/53
*** Bug 525859 has been marked as a duplicate of this bug. ***
*** Bug 525878 has been marked as a duplicate of this bug. ***
*** Bug 526768 has been marked as a duplicate of this bug. ***
*** Bug 526798 has been marked as a duplicate of this bug. ***