]> git.baikalelectronics.ru Git - kernel.git/commit
HID: hid-asus.c: Maps key 0x35 (display off) to KEY_SCREENLOCK
authorVinícius Angiolucci Reis <itsme.vreis@gmail.com>
Fri, 8 Oct 2021 22:23:27 +0000 (19:23 -0300)
committerJiri Kosina <jkosina@suse.cz>
Tue, 19 Oct 2021 09:17:12 +0000 (11:17 +0200)
commit2f039422e6458472f03fb03d292027f23942999d
treebca99b2b9a578641460d5cf18e92a9cd5ab03f20
parent96e270a0a7164344cbe57bcd65d6a17da9522b83
HID: hid-asus.c: Maps key 0x35 (display off) to KEY_SCREENLOCK

On Windows systems, ASUS laptops uses the "turn display off" key
(usually fn+f6) to turn both display and keyboard backlit off. On Linux
systems, this key has no effect at all since most desktop enviroments
don't deal with KEY_DISPLAY_OFF. By mapping it to KEY_SCREENLOCK
instead, would enable desktop environments to handle this key as a
screen lock intent from the user, out of the box.

Signed-off-by: Vinícius Angiolucci Reis <angiolucci@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-asus.c