Bug 525589 - Peripheral device sleep event is reported as impossible battery level
Summary: Peripheral device sleep event is reported as impossible battery level
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (other bugs)
Version First Reported In: 6.7.5
Platform: CachyOS Linux
: HI normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
: 525592 525666 525859 525878 526768 526798 (view as bug list)
Depends on:
Blocks:
 
Reported: 2026-09-12 10:59 UTC by Andras H.
Modified: 2026-10-16 20:34 UTC (History)
21 users (show)

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


Attachments
Screenshot of the notifications (63.52 KB, image/png)
2026-09-12 10:59 UTC, Andras H.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andras H. 2026-09-12 10:59:10 UTC
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.
Comment 1 Andras H. 2026-09-12 11:21:31 UTC
Currently confirmed devices that are affected:
Logitech G305 (mouse); Logitech MX Keys (keyboard); 
Logitech K400r (keyboard and trackpad).
Comment 2 Colin J Thomson 2026-09-12 11:29:17 UTC
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
Comment 3 Charles Dennett 2026-09-12 13:22:12 UTC
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
Comment 4 Colin J Thomson 2026-09-12 14:00:39 UTC
*** Bug 525592 has been marked as a duplicate of this bug. ***
Comment 5 Thibaut FRANCOIS 2026-09-12 14:09:34 UTC
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.
Comment 6 Andras H. 2026-09-12 16:58:40 UTC
(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.
Comment 7 René Herman 2026-09-13 10:27:45 UTC
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.
Comment 8 Andras H. 2026-09-13 18:15:14 UTC
(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.
Comment 9 Colin J Thomson 2026-09-13 21:57:00 UTC
*** Bug 525666 has been marked as a duplicate of this bug. ***
Comment 10 mydarkstar 2026-09-14 19:36:16 UTC
Relevant thread on Fedora forum:
https://discussion.fedoraproject.org/t/erroneous-low-battery-notifications/201767
Comment 11 Alvaro 2026-09-15 11:30:06 UTC
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!
Comment 12 René Herman 2026-09-15 12:21:35 UTC
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.
Comment 13 Oliver Schramm 2026-09-15 21:42:03 UTC
This seems to have been fixed with: https://invent.kde.org/plasma/powerdevil/-/merge_requests/677
Comment 14 m.kurz 2026-09-16 12:23:37 UTC
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
Comment 15 Colin J Thomson 2026-09-22 18:51:50 UTC
*** Bug 525859 has been marked as a duplicate of this bug. ***
Comment 16 Jay 2026-10-04 11:43:55 UTC
*** Bug 525878 has been marked as a duplicate of this bug. ***
Comment 17 cwo 2026-10-07 12:13:17 UTC
*** Bug 526768 has been marked as a duplicate of this bug. ***
Comment 18 TraceyC 2026-10-16 20:34:15 UTC
*** Bug 526798 has been marked as a duplicate of this bug. ***