Skip to content
Snippets Groups Projects

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.

apertis-issues#163 (closed)

Signed-off-by: Ariel D'Alessandro ariel.dalessandro@collabora.com

Merge request reports

Pipeline #410819 passed

Pipeline passed for 0c7a667c on wip/adalessandro/v2023dev3-disable-kbd-backlight

Approval is optional

Merged by Ryan GonzalezRyan Gonzalez 2 years ago (Aug 24, 2022 3:12pm UTC)

Merge details

  • Changes merged into with 0c7a667c.
  • Deleted the source branch.

Pipeline #411012 passed with warnings

Pipeline passed with warnings for 0c7a667c on apertis/v2023dev3

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • 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 the max_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
  • merged

  • Ariel D'Alessandro mentioned in merge request !540 (merged)

    mentioned in merge request !540 (merged)

Please register or sign in to reply
Loading