Skip to content

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

Draft
Jules-Bertholet wants to merge 1 commit into
FrameworkComputer:fwk-hx20-hx30-4410from
Jules-Bertholet:keyboard-backlight-hid
Draft

Emit HID event when keyboard brightness changed via fn+space#53
Jules-Bertholet wants to merge 1 commit into
FrameworkComputer:fwk-hx20-hx30-4410from
Jules-Bertholet:keyboard-backlight-hid

Conversation

@Jules-Bertholet

@Jules-Bertholet Jules-Bertholet commented Nov 7, 2024

Copy link
Copy Markdown

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

t-8ch commented Nov 9, 2024

Copy link
Copy Markdown

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

@JohnAZoidberg JohnAZoidberg self-assigned this Nov 11, 2024
@Jules-Bertholet

Copy link
Copy Markdown
Author

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

@Jules-Bertholet
Jules-Bertholet marked this pull request as draft November 11, 2024 15:07
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.

Signed-off-by: Jules Bertholet <julesbertholet@quoi.xyz>
@JohnAZoidberg

Copy link
Copy Markdown
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants