SUMMARY Follow-up bug requested on https://bugs.kde.org/show_bug.cgi?id=466023 but would also require fixing https://bugs.kde.org/show_bug.cgi?id=466344 for me From what I was explained in #466023, escape key should turn the display off, so it could also toggle the keyboard backlight off or on on sync with the display. SOFTWARE/OS VERSIONS ArchLinux Linux/KDE Plasma: 5.27.1 (available in About System) I'm not seeing an "About System", where should it be looked for? KDE Plasma Version: KDE Frameworks Version: Qt Version:
Seems like a sensible plan to me. Since the idea is to save power and reduce unnecessary light, the keyboard backlight should be included.
Still an issue on Plasma 6.0.4. The main challenge is that the code for turning off the display on "Esc" doesn't go through PowerDevil (which generally handles all of the keyboard backlight stuff) and instead goes to X11 or KWin/Wayland directly, via KScreen::Dpms. So in order for PowerDevil to react to this, we need PowerDevil's own KScreen::Dpms instance to observe the current DPMS state of the (primary?) display and adjust keyboard brightness based on that. I don't know if KWin's DPMS protocol (https://wayland.app/protocols/kde-dpms) will update other processes when the DPMS state changes. Would be worth exploring though, and we could use the opportunity to further decouple display vs. keyboard backlight code.
*** Bug 501463 has been marked as a duplicate of this bug. ***