Bug 525916 - "Keyboard Backlight - nan%" appears on hardware with no backlit keyboard with upower-1.91.4 and later
Summary: "Keyboard Backlight - nan%" appears on hardware with no backlit keyboard with...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Brightness and Color widget (other bugs)
Version First Reported In: 6.7.5
Platform: Other Linux
: HI normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2026-09-18 20:36 UTC by f44tux
Modified: 2026-10-30 15:00 UTC (History)
9 users (show)

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


Attachments
print showing the nan% (40.57 KB, image/png)
2026-09-18 20:36 UTC, f44tux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description f44tux 2026-09-18 20:36:40 UTC
Created attachment 196330 [details]
print showing the nan%

DESCRIPTION

Hello,

During a recent upgrade on Kde I noticed that a “Keyboard Backlight” option appeared on the "brightness" panel.

I'm on a Dell laptop with a simple usb kb so none of my kb has any kind of light/brightness.

Currently this option shows a not a number “nan%” (I consider this an error).

So I'd like to know if it's possible to remove this option ?

I'll leave a print to show the "nan". Thanks in advance.

STEPS TO REPRODUCE
1. Well I'm not sure about the steps to reproduce. I just intalled the recent (sep) updates and notice this bug.

OBSERVED RESULT

"nan%"

EXPECTED RESULT

"0%" or the option being removed/blocked since my hardware doesn't has any light on it.

SOFTWARE/OS VERSIONS
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.5-200.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Graphics Processor: Intel® Iris® Xe Graphics
Manufacturer: Dell Inc.
Product Name: Inspiron 3501
Comment 1 IsaacCodes 2026-09-18 22:02:43 UTC
Same issue after recent updates on a HP laptop with no backlit keyboard running Fedora 44
Comment 2 Villemur Clément 2026-09-18 22:51:52 UTC
Same issue with the 6.8 Beta on KDE Linux 202609170254.
Comment 3 hellogaming91 2026-09-19 18:23:59 UTC
For me, downgrading upower from 1.91.4-1 to 1.91.3-1.1 worked on Arch Linux.
Comment 4 Gorzog 2026-09-20 16:10:54 UTC
Same problem on Fedora 44 on a HP Laptop with no backlight

KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.30.0
Qt Version: 6.11.2
Comment 5 IsaacCodes 2026-09-24 22:24:44 UTC
Yea looks like the issue is with upower 1.91.4-1 like someone said. Rolling it back on Fedora fixed the issue.
Comment 6 Bug Janitor Service 2026-10-01 02:32:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/691
Comment 7 Bug Janitor Service 2026-10-01 19:50:59 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/695
Comment 8 Nate Graham 2026-10-04 21:28:58 UTC
Git commit ac993175917bcf0526112cfd8fa29b61b638fba3 by Nate Graham, on behalf of Tristyn Russelo.
Committed on 04/10/2026 at 21:23.
Pushed by ngraham into branch 'master'.

daemon: Treat a keyboard backlight maximum of 0 as unsupported

UPower 1.91.4 and later export the combined keyboard backlight object
even when no keyboard backlight exists, reporting a maximum brightness
of 0. PowerDevil accepted any valid reply as support, so the Brightness
and Color applet showed a "Keyboard Backlight - nan%" slider.

Only report support when the maximum is above 0, and only warn when the
query actually failed.

M  +2    -2    daemon/controllers/keyboardbrightnesscontroller.cpp

https://invent.kde.org/plasma/powerdevil/-/commit/ac993175917bcf0526112cfd8fa29b61b638fba3
Comment 9 Nate Graham 2026-10-04 21:44:20 UTC
Git commit d137bc95b1fe5516d0a5b702722ccf89228f1f1f by Nate Graham.
Committed on 04/10/2026 at 21:38.
Pushed by ngraham into branch 'Plasma/6.8'.

daemon: Treat a keyboard backlight maximum of 0 as unsupported

UPower 1.91.4 and later export the combined keyboard backlight object
even when no keyboard backlight exists, reporting a maximum brightness
of 0. PowerDevil accepted any valid reply as support, so the Brightness
and Color applet showed a "Keyboard Backlight - nan%" slider.

Only report support when the maximum is above 0, and only warn when the
query actually failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bs25H1VRVY917EZg6GxZhr


(cherry picked from commit 63f79c280d53b57e164e6aedef85e58631c2494c)

Co-authored-by: Tristyn Russelo <tristynrusselo@gmail.com>

M  +2    -2    daemon/controllers/keyboardbrightnesscontroller.cpp

https://invent.kde.org/plasma/powerdevil/-/commit/d137bc95b1fe5516d0a5b702722ccf89228f1f1f
Comment 10 Nate Graham 2026-10-04 21:47:06 UTC
Git commit ceb9a797816d9d125ed499156eb5bdd5b4e72126 by Nate Graham.
Committed on 04/10/2026 at 21:40.
Pushed by ngraham into branch 'Plasma/6.7'.

daemon: Treat a keyboard backlight maximum of 0 as unsupported

UPower 1.91.4 and later export the combined keyboard backlight object
even when no keyboard backlight exists, reporting a maximum brightness
of 0. PowerDevil accepted any valid reply as support, so the Brightness
and Color applet showed a "Keyboard Backlight - nan%" slider.

Only report support when the maximum is above 0, and only warn when the
query actually failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bs25H1VRVY917EZg6GxZhr


(cherry picked from commit 63f79c280d53b57e164e6aedef85e58631c2494c)

Co-authored-by: Tristyn Russelo <tristynrusselo@gmail.com>

M  +2    -2    daemon/controllers/keyboardbrightnesscontroller.cpp

https://invent.kde.org/plasma/powerdevil/-/commit/ceb9a797816d9d125ed499156eb5bdd5b4e72126
Comment 11 Abhishek Bhasker 2026-10-30 15:00:22 UTC
For my PC keyboard G815 backlight, it shows the same nan % with sliders and doesn't work.

Operating System: Manjaro Linux 
KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.30.0
Qt Version: 6.11.2
Kernel Version: 7.2.9-1-MANJARO (64-bit)
Graphics Platform: Wayland