Keyboard backlight daemon

This project is about a daemon that controls the backlight of the keyboard on Framework laptops, switching the LEDs on and off as the keyboard is used. I have used it locally and now I’d like to make it system wide.

Would this be a feature that Universal Blue would like to introduce to the Framework laptop images? If so, I’d love to contribute (little experience, but enthusiast :slight_smile: )

2 Likes

how did you get it to work locally? I keep getting check permissions error, even as sudo.

❯ sudo /var/home/matt/.local/bin/keylightc 
Failed to open backlight device!  Check permissions and ensure you are running Linux kernel 6.11 or later.

❯ uname -r
6.12.9-200.fc41.x86_64

I’m not having any better luck using Framework’s own qmk_hid, Failed to build `hidapi==0.14.0.post2` ... gcc-11 failed · Issue #45 · FrameworkComputer/qmk_hid · GitHub.

I cloned the repo, then

make
sudo ./keylightc

If you modify the keylightc.service file with the path to your executable, and run the service as root, it should also work