Bug 466345 - Turn off keyboard backlight the same way as done for the display when using escape key
Summary: Turn off keyboard backlight the same way as done for the display when using e...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Screen locking (show other bugs)
Version: 6.2.4
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 501463 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-02-24 11:15 UTC by Porkepix
Modified: 2025-05-07 17:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Porkepix 2023-02-24 11:15:40 UTC
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:
Comment 1 Nate Graham 2023-02-24 18:05:21 UTC
Seems like a sensible plan to me. Since the idea is to save power and reduce unnecessary light, the keyboard backlight should be included.
Comment 2 Jakob Petsovits 2024-04-20 15:56:23 UTC
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.
Comment 3 TraceyC 2025-05-07 17:41:14 UTC
*** Bug 501463 has been marked as a duplicate of this bug. ***