Open bryanpaget opened 4 years ago
The color settings on the Darter Pro keyboard do not persist across reboots and suspend/resume cycles.
I've made a hack that works (most of the time). I made a systemd sleep script:
bryan@pop-os:~/bin$ cat /lib/systemd/system-sleep/lights #!/bin/sh case $1/$2 in pre/*) echo "Saving Backlight Color!" head -n 1 /sys/class/leds/system76_acpi::kbd_backlight/color > /var/log/color echo 0 > /sys/class/leds/system76_acpi\:\:kbd_backlight/brightness ;; post/*) echo "Restoring Backlight Color!" color=$(head -n 1 /var/log/color) echo $color > /sys/class/leds/system76_acpi\:\:kbd_backlight/color echo 100 > /sys/class/leds/system76_acpi\:\:kbd_backlight/brightness ;; esac
And for reboots I have a systemd service that runs the following script:
#!/bin/bash echo 0 > /sys/class/leds/system76_acpi\:\:kbd_backlight/brightness color=$(head -n 1 /var/log/color) echo $color > /sys/class/leds/system76_acpi\:\:kbd_backlight/color echo 100 > /sys/class/leds/system76_acpi\:\:kbd_backlight/brightness
But this does not work all the time for some reason... and it does not stop the backlight from flashing blue once before taking on the correct color.
The color settings on the Darter Pro keyboard do not persist across reboots and suspend/resume cycles.
I've made a hack that works (most of the time). I made a systemd sleep script:
And for reboots I have a systemd service that runs the following script:
But this does not work all the time for some reason... and it does not stop the backlight from flashing blue once before taking on the correct color.