pop-os / system76-power

Power profile management for Linux
GNU General Public License v3.0
585 stars 72 forks source link

Gracefully handle missing brightness_hw_changed #426

Closed sjmonson closed 5 months ago

sjmonson commented 6 months ago

Prevents missing /sys/class/leds/system76_acpi::kbd_backlight/brightness_hw_changed from causing a crash. Tested on a lemp9 laptop under NixOS 23.11 with system76-power 1.1.26.

Closes #397

sjmonson commented 6 months ago

Also if anyone has an insight into why the NixOS kernel is missing this interface I can try to fix it on that side. It seems like upstream kernel doesn't have this issue?