Skip to content

Hardware-controlled LEDs returning ENODATA produce "End-of-file" warnings during unrelated device operations #146

Description

@farblos

My system got Linux kernel 7.2 recently on Debian testing:

[~]$ uname -a
Linux host01 7.2.6+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.2.6-1 (2026-09-16) x86_64 GNU/Linux

Since then brightnessctl reports error messages like this (note also the missing newline character):

[~]$ brightnessctl -l
End-of-file reading brightness of device 'chromeos:multicolor:right'.End-of-file reading brightness of device 'chromeos:multicolor:left'.End-of-file reading brightness of device 'chromeos:multicolor:power'.Available devices:
Device 'intel_backlight' of class 'backlight':
        Current brightness: 14400 (15%)
        Max brightness: 96000
[...]

Seems that 7.2 comes with commit b819dc7 that lets sysfs report ENODATA for brightness of hardware controlled LED:

[~]$ cat /sys/class/leds/chromeos:multicolor:left/brightness
cat: '/sys/class/leds/chromeos:multicolor:left/brightness': No data available

brightnessctl probably should catch that special case and handle it more gracefully, instead of writing a rather misleading error message?

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions