FrameworkComputer / EmbeddedController

Embedded Controller firmware for the Framework Laptop
BSD 3-Clause "New" or "Revised" License
958 stars 64 forks source link

Emit HID event when keyboard brightness changed via fn+space #53

Open Jules-Bertholet opened 2 weeks ago

Jules-Bertholet commented 2 weeks ago

Currently, changing the keyboard backlight brightness via fn+space does not notify the OS in any way. Therefore, OS indicators like GNOME Shell's keyboard backlight slider will show the wrong values. This PR corrects this issue by emitting a "Keyboard Backlight Set Level" HID event on fn+space. (The backlight brightness is still changed directly in firmware, so functionality in e.g. firmware menu won’t be affected.)

t-8ch commented 2 weeks ago

Could you explain how this event gets interpreted by Gnome? The kernel doesn't seem to know to handle it.

Jules-Bertholet commented 2 weeks ago

Unfortunately, proper testing reveals that Linux does not currently handle this HID usage, so I am marking as draft.

JohnAZoidberg commented 2 weeks ago

This would be really awesome, I think I tried that a few months ago and neither Windows nor Linux supported it :(