Re: [PATCH] HID: hid-asus.c: Maps key 0x35 (display off) to KEY_SCREENLOCK

From
Jiri Kosina <jikos@kernel.org>
Date
2021-10-19 09:17:43
Also in
lkml
Reply to
Vinícius Angiolucci Reis, 2021-10-08
On Fri, 8 Oct 2021, Vinícius Angiolucci Reis wrote:
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 <redacted>
Applied, thanks.

-- 
Jiri Kosina
SUSE Labs
Thread (9 messages) 9 messages, 3 authors, last reply 2021-11-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help