Disable systemd-backlight@leds:asus::kbd_backlight.service
Issue apertis-issues#163 (closed)
This service is failing on the UP Squared 6000 board, causing the sanity check LAVA test to constantly fail.
This seems to be an issue on the asus-nb-wmi driver not being able to drive the brightness properly on this device.
As the kbd-backlight is not really a requirement, let's disable this service temporarily on Apertis.
Signed-off-by: Ariel D'Alessandro ariel.dalessandro@collabora.com
Merge request reports
Activity
mentioned in issue apertis-issues#163 (closed)
assigned to @adalessandro
requested review from @andrunko
Copying from comment apertis-issues#163 (comment 64392):
$ systemctl list-units --failed --no-legend --no-pager --plain systemd-backlight@leds:asus:… loaded failed failed Load/Save Screen Backlight B…
$ journalctl --no-pager -x | grep backlight [...] Aug 23 12:36:42 apertis systemd[1]: Failed to start Load/Save Screen Backlight Brightness of leds:asus::kbd_backlight. ░░ Subject: A start job for unit systemd-backlight@leds:asus::kbd_backlight.service has failed ░░ A start job for unit systemd-backlight@leds:asus::kbd_backlight.service has finished with a failure. Aug 23 12:36:42 apertis systemd[1]: Finished Load/Save Screen Backlight Brightness of backlight:asus-nb-wmi. ░░ Subject: A start job for unit systemd-backlight@backlight:asus-nb-wmi.service has finished successfully ░░ A start job for unit systemd-backlight@backlight:asus-nb-wmi.service has finished successfully.
./strace /usr/lib/systemd/systemd-backlight load leds:asus::kbd_backlight [...] lstat("/sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/brightness", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 openat(AT_FDCWD, "/sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/brightness", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 read(3, "127\n", 4097) = 4 close(3) = 0 writev(2, [{iov_base="asus::kbd_backlight: Failed to r"..., iov_len=72}, {iov_base="\n", iov_len=1}], 2asus::kbd_backlight: Failed to read current brightness: Invalid argument ) = 73 exit_group(1) = ? +++ exited with 1 +++
Service errors out because the current
brightness
is greater than themax_brightness
, see https://gitlab.apertis.org/pkg/systemd/-/blob/apertis/v2023dev3/src/backlight/backlight.c#L366$ head /sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/*brightness ==> /sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/brightness <== 127 ==> /sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/max_brightness <== 3
mentioned in merge request !540 (merged)