Bug 489056 - keyboard backlight brightness not controllable after wake from sleep
Summary: keyboard backlight brightness not controllable after wake from sleep
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (show other bugs)
Version: 6.2.4
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-23 15:54 UTC by abulhair.saparov
Modified: 2024-12-22 07:24 UTC (History)
5 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 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. V. 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
Comment 5 abulhair.saparov 2024-12-21 20:21:59 UTC
I am still having this problem. I recently updated to Plasma Version 6.2.4, Frameworks Version 6.9.0, Qt Version 6.8.1, kernel 6.12.6-gentoo. I am also still using X11 (xorg-server-21.1.5).

When I first re-open the lid, the keyboard light is actually on but then turns off as the system resumes from sleep.
Comment 6 Thomas Bertels 2024-12-22 07:24:12 UTC
I just got the same problem, but for the screen brightness.

Operating System: Manjaro Linux 
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1
Kernel Version: 6.12.4-1-MANJARO (64-bit)
Graphics Platform: X11

The command
systemctl --user restart plasma-powerdevil.service
does fix it.

Here are powerdevil entries in the journal:

déc. 21 00:20:41 User org_kde_powerdevil[979]: Failed to create wl_display (Aucun fichier ou dossier)
déc. 21 00:20:41 User org_kde_powerdevil[979]: Initializing libddcutil.  ddcutil version: 2.1.4, shared library: /usr/lib/libddcutil.so.5.1.2
déc. 21 00:20:41 User org_kde_powerdevil[979]: Options passed from client:
déc. 21 00:20:41 User org_kde_powerdevil[979]: Applying combined options:
déc. 21 00:20:42 User org_kde_powerdevil[979]: Library initialization complete.
déc. 21 00:20:42 User org_kde_powerdevil[979]: org.kde.powerdevil: [DDCutilDetector]: Failed to initialize callback
déc. 21 00:20:42 User systemd[1]: Created slice Slice /system/dbus-:1.1-org.kde.powerdevil.discretegpuhelper.
déc. 21 00:20:42 User systemd[1]: Started dbus-:1.1-org.kde.powerdevil.discretegpuhelper@0.service.
déc. 21 00:20:42 User systemd[1]: Created slice Slice /system/dbus-:1.1-org.kde.powerdevil.chargethresholdhelper.
déc. 21 00:20:42 User systemd[1]: Started dbus-:1.1-org.kde.powerdevil.chargethresholdhelper@0.service.
déc. 21 00:20:42 User systemd[1]: Created slice Slice /system/dbus-:1.1-org.kde.powerdevil.backlighthelper.
déc. 21 00:20:42 User systemd[1]: Started dbus-:1.1-org.kde.powerdevil.backlighthelper@0.service.
déc. 21 00:20:42 User backlighthelper[1172]: org.kde.powerdevil: no kernel backlight interface found
déc. 21 00:20:42 User org_kde_powerdevil[979]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
déc. 21 00:20:42 User org_kde_powerdevil[979]: org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
déc. 21 00:20:43 User org_kde_powerdevil[979]: org.kde.powerdevil: Handle button events action could not check for screen configuration
déc. 21 00:20:43 User org_kde_powerdevil[979]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
déc. 21 00:20:53 User systemd[1]: dbus-:1.1-org.kde.powerdevil.backlighthelper@0.service: Deactivated successfully.
déc. 21 00:20:53 User systemd[1]: dbus-:1.1-org.kde.powerdevil.discretegpuhelper@0.service: Deactivated successfully.
déc. 21 00:20:53 User systemd[1]: dbus-:1.1-org.kde.powerdevil.chargethresholdhelper@0.service: Deactivated successfully.
déc. 21 01:51:42 User org_kde_powerdevil[979]: dh=Display_Handle[i2c-3: fd=28], Replacing adjusted sleep multiplier 0,10 with 1.00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS
déc. 21 07:45:57 User org_kde_powerdevil[979]: (i2c_open_bus                  )           busno=3, flock() returned: EAGAIN(-11): Ressource temporairement non disponible
déc. 21 07:45:57 User org_kde_powerdevil[979]: /dev/i2c-3 locked.  Retrying...
déc. 21 07:45:58 User org_kde_powerdevil[979]: dh=Display_Handle[i2c-3: fd=28], Replacing adjusted sleep multiplier 0,05 with 1.00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS
déc. 21 21:00:02 User org_kde_powerdevil[979]: org.kde.powerdevil: [DDCutilDisplay]: ddca_open_display2 -3030
déc. 21 21:00:02 User org_kde_powerdevil[979]: org.kde.powerdevil: [DDCutilDisplay]: "VP2365 SERIES" retrying to set DDC/CI brightness in 1000 milliseconds - attempt no. 1
déc. 21 21:00:03 User org_kde_powerdevil[979]: org.kde.powerdevil: [DDCutilDisplay]: ddca_open_display2 -3030
déc. 21 21:00:03 User org_kde_powerdevil[979]: org.kde.powerdevil: [DDCutilDisplay]: "VP2365 SERIES" retrying to set DDC/CI brightness in 2000 milliseconds - attempt no. 2
déc. 21 21:00:05 User org_kde_powerdevil[979]: org.kde.powerdevil: [DDCutilDisplay]: ddca_open_display2 -3030
déc. 21 21:00:05 User org_kde_powerdevil[979]: org.kde.powerdevil: [DDCutilDisplay]: "VP2365 SERIES" retrying to set DDC/CI brightness in 3000 milliseconds - attempt no. 3
déc. 21 21:00:08 User org_kde_powerdevil[979]: org.kde.powerdevil: [DDCutilDisplay]: ddca_open_display2 -3030
déc. 21 21:00:08 User org_kde_powerdevil[979]: org.kde.powerdevil: [DDCutilDisplay]: "VP2365 SERIES" failed to set DDC/CI brightness
déc. 22 07:54:42 User qdbus-qt5[630439]: Cannot find '.setBrightness' in object /org/kde/Solid/PowerManagement/Actions/BrightnessControl at local.org_kde_powerdevil
déc. 22 08:07:30 User systemd[792]: plasma-powerdevil.service: Consumed 6.497s CPU time, 17.9M memory peak, 10.6M memory swap peak.
déc. 22 08:07:31 User org_kde_powerdevil[638120]: Failed to create wl_display (Aucun fichier ou dossier)
déc. 22 08:07:31 User org_kde_powerdevil[638120]: Initializing libddcutil.  ddcutil version: 2.1.4, shared library: /usr/lib/libddcutil.so.5.1.2
déc. 22 08:07:31 User org_kde_powerdevil[638120]: Options passed from client:
déc. 22 08:07:31 User org_kde_powerdevil[638120]: Applying combined options:
déc. 22 08:07:31 User org_kde_powerdevil[638120]: Library initialization complete.
déc. 22 08:07:31 User org_kde_powerdevil[638120]: org.kde.powerdevil: [DDCutilDetector]: Failed to initialize callback
déc. 22 08:07:31 User systemd[1]: Started dbus-:1.1-org.kde.powerdevil.discretegpuhelper@1.service.
déc. 22 08:07:31 User systemd[1]: Started dbus-:1.1-org.kde.powerdevil.chargethresholdhelper@1.service.
déc. 22 08:07:32 User systemd[1]: Started dbus-:1.1-org.kde.powerdevil.backlighthelper@1.service.
déc. 22 08:07:32 User backlighthelper[638179]: org.kde.powerdevil: no kernel backlight interface found
déc. 22 08:07:32 User org_kde_powerdevil[638120]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
déc. 22 08:07:32 User org_kde_powerdevil[638120]: org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
déc. 22 08:07:32 User org_kde_powerdevil[638120]: org.kde.powerdevil: Handle button events action could not check for screen configuration
déc. 22 08:07:32 User org_kde_powerdevil[638120]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
déc. 22 08:07:41 User systemd[1]: dbus-:1.1-org.kde.powerdevil.discretegpuhelper@1.service: Deactivated successfully.
déc. 22 08:07:41 User systemd[1]: dbus-:1.1-org.kde.powerdevil.chargethresholdhelper@1.service: Deactivated successfully.
déc. 22 08:07:41 User systemd[1]: dbus-:1.1-org.kde.powerdevil.backlighthelper@1.service: Deactivated successfully.
déc. 22 08:07:42 User org_kde_powerdevil[638120]: dh=Display_Handle[i2c-3: fd=28], Replacing adjusted sleep multiplier 0,00 with 1.00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS