https://bugs.kde.org/show_bug.cgi?id=518513
--- Comment #4 from Nate Graham <[email protected]> --- Git commit 602aa5b5de07c482175faf4b371eb5ab1d9520f4 by Nate Graham, on behalf of Matthias Kurz. Committed on 01/09/2026 at 17:23. Pushed by ngraham into branch 'master'. upower: Return -1 for unknown battery percentages UPower can expose BatteryLevel=Unknown together with a placeholder Percentage value. Return -1 from chargePercent() in that state so consumers can distinguish unavailable data from an empty battery. Document the negative sentinel while preserving ordinary percentage behavior. M +13 -0 src/solid/devices/backends/upower/upower.h M +5 -0 src/solid/devices/backends/upower/upowerbattery.cpp M +1 -1 src/solid/devices/frontend/battery.h M +1 -1 src/solid/devices/ifaces/battery.h https://invent.kde.org/frameworks/solid/-/commit/602aa5b5de07c482175faf4b371eb5ab1d9520f4 -- You are receiving this mail because: You are watching all bug changes.
