Bug 489056

Summary: keyboard backlight brightness not controllable after wake from sleep
Product: [Plasma] Powerdevil Reporter: abulhair.saparov
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: normal CC: alexeya, me, natalie_clarius, nate
Priority: NOR    
Version: 6.1.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=452492
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description abulhair.saparov 2024-06-23 15:54:45 UTC
SUMMARY
After waking from sleep, the keyboard backlight is off (it doesn't restore the previous brightness) and I am not able to increase the brightness using FN+F2 as I normally would before sleep.

STEPS TO REPRODUCE
1. Sleep
2. Wake
3. Attempt to increase keyboard brightness via FN+F3

OBSERVED RESULT
Keyboard backlight is off after waking, and I am no longer able to change the keyboard brightness via function keys. However, I am able to do so via `echo 3 > /sys/class/leds/asus::kbd_backlight/brightness`.

EXPECTED RESULT
The keyboard brightness should be restored to the same value as before sleep. In addition, I should be able to control the keyboard brightness using the function keys after waking from sleep.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo Linux x86_64 (kernel 6.9.5)
(available in About System)
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0 
Qt Version: 6.7.2
Comment 1 abulhair.saparov 2024-06-23 15:55:56 UTC
I should also comment that Plasma 5 also did not remember my keyboard brightness after waking, but I was able to set it using the function keys.
Comment 2 Iyán Méndez Veiga 2024-07-04 07:33:04 UTC
If you restart powerdevil service with `systemctl --user restart plasma-powerdevil.service` does it work as before sleeping?
Comment 3 abulhair.saparov 2024-07-04 23:15:34 UTC
I have OpenRC so I'm not sure what the equivalent command is. I did run `/usr/libexec/org_kde_powerdevil --replace` and it looks like it is running, but it did not correct the keyboard backlight.
Comment 4 IFriendly 2024-11-10 10:06:30 UTC
Has this problem been solved at the moment?

Sometimes the keyboard backlight is restored after waking up. 
But usually not.
It seems that something is blocking the recovery of the backlight state.
IMHO this linked with kernel/firmware updates. 
KDE powerdevil is not updated from 04/2024.

Operating System: Ubuntu 22.04.5 LTS (Jammy Jellyfish)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.8.0-48-generic (64-bit)
Product Name: Asus ZenBook UX435EAL