]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Add missing scancodes for Lenovo Legion devices
authorDerek J. Clark <derekjohn.clark@gmail.com>
Tue, 6 Jan 2026 03:01:30 +0000 (19:01 -0800)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 6 Jan 2026 03:33:28 +0000 (12:33 +0900)
Adds missing scancodes for Lenovo Legion Go, Go S, and Go 2. When long
pressing the power button the device should issue a LEFTMETA + F16
combo. The LEFTMETA code fires properly, but the F16 is not mapped.

Go and Go S devices detect as AT Translated Set 2 Keyboard, while Go 2
detects as AT Raw Set 2 Keyboard, hence the multiple entries.

Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
hwdb.d/60-keyboard.hwdb

index f47802a90595df9a3f50668deeaec2eb2b34606f..82a04a8a8ef4cb8d5dc7051fb32cddcd12f32447 100644 (file)
@@ -1175,6 +1175,19 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnLENOVO:pn21LG:pvr*
  KEYBOARD_KEY_0a=!9
  KEYBOARD_KEY_0b=!0
 
+# Lenovo Legion Go & Go S
+evdev:name:AT Translated Set 2 keyboard:dmi:*:svnLENOVO:pn83E1:*
+evdev:name:AT Translated Set 2 keyboard:dmi:*:svnLENOVO:pn83L3:*
+evdev:name:AT Translated Set 2 keyboard:dmi:*:svnLENOVO:pn83N6:*
+evdev:name:AT Translated Set 2 keyboard:dmi:*:svnLENOVO:pn83Q2:*
+evdev:name:AT Translated Set 2 keyboard:dmi:*:svnLENOVO:pn83Q3:*
+ KEYBOARD_KEY_67=f16 # Power button long press
+
+# Lenovo Legion Go 2
+evdev:name:AT Raw Set 2 keyboard:dmi:*:svnLENOVO:pn83N0:*
+evdev:name:AT Raw Set 2 keyboard:dmi:*:svnLENOVO:pn83N1:*
+ KEYBOARD_KEY_20=f16 # Power button long press
+
 ###########################################################
 # LG
 ###########################################################