]> Gentwo Git Trees - linux/.git/commit
HID: hid-lg-g15: Add hw_brightness_changed support for the G510 keyboard
authorHans de Goede <hansg@kernel.org>
Wed, 1 Oct 2025 21:19:41 +0000 (23:19 +0200)
committerJiri Kosina <jkosina@suse.com>
Tue, 14 Oct 2025 09:50:25 +0000 (11:50 +0200)
commit8c09e8b38dcc82d3db3187ef2460cb4011616e58
tree62bd32aab3fcc255967efa31f454a86e7e7d4036
parentba00292b965d41dca82fc7d238ff9b1c77f2b98c
HID: hid-lg-g15: Add hw_brightness_changed support for the G510 keyboard

Add hw_brightness_changed support for the G510 keyboard, so that e.g.
GNOME will show an OSD notification when toggling the backlight on/off
with the button the keyboard.

Note that it is not possible to turn the backlight back on by writing
/sys/class/leds/.../brightness it can only be turned on by pressing
the button on the keyboard. To reflect this /sys/class/leds/.../brightness
will always report the last brightness value independent of the on/off
toggle built into the keyboard.

Signed-off-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-lg-g15.c