Bug#918966: new(?) backlight brightness script
Aleksi Suhonen
debian-reportbug-2019 at ssd.axu.tm
Fri Jan 11 05:41:27 GMT 2019
Package: initscripts
Severity: wishlist
Version: 2.93-3
After upgrading and rebooting a virtual machine that has only a virtual
serial console, I get this message:
/etc/init.d/brightness: 36: /etc/init.d/brightness: cannot create
/sys/class/backlight/acpi_video0/brightness: Directory nonexistent
It's not critical, but I'm wondering if desktop features could be
separated from this package. Or if there was a debconf knob to turn them
all on and off easily?
Also, the error message could be avoided with some more checking:
if [ -d /sys/class/backlight/acpi_video0 ]; then
readonly SYS_CONTROL=/sys/class/backlight/acpi_video0/brightness
readonly SYS_MAXIMUM=/sys/class/backlight/acpi_video0/max_brightness
else
readonly SYS_CONTROL=/dev/null
readonly SYS_MAXIMUM=/dev/null
fi
Best Regards,
--
Aleksi Suhonen
More information about the Debian-init-diversity
mailing list