]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: fix unstable button triggering on Mipad 2 under GNOME (#40071)
authorQuickSwift315490 <qs315490@outlook.com>
Wed, 17 Dec 2025 13:26:47 +0000 (21:26 +0800)
committerGitHub <noreply@github.com>
Wed, 17 Dec 2025 13:26:47 +0000 (13:26 +0000)
Change unknown key mappings to reserved.

A KEY_RESERVED button is marked as reserved and passed to the kernel. This will stop the kernel from passing this keystroke event to user space.

If unknown, the key is set to KEY_UNKNOWN and the event is passed to user space, which we want to avoid.

hwdb.d/60-keyboard.hwdb

index 715d67dbb0cce49ea7e3d9d63582e482c181451d..f47802a90595df9a3f50668deeaec2eb2b34606f 100644 (file)
@@ -2132,8 +2132,8 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnINET:pnP325J:*
 # Home: LeftCtrl + Esc -> LeftMeta  (ignore LeftCtrl, map Esc to LeftMeta)
 # Back: Backspace      -> back      (map backspace to back)
 evdev:name:FTSC1000:00 2808:509C Keyboard:dmi:*:svnXiaomiInc:pnMipad2:*
- KEYBOARD_KEY_700e0=unknown                             # LeftCtrl -> ignore
- KEYBOARD_KEY_700e3=unknown                             # LeftMeta -> ignore
+ KEYBOARD_KEY_700e0=reserved                            # LeftCtrl -> ignore
+ KEYBOARD_KEY_700e3=reserved                            # LeftMeta -> ignore
  KEYBOARD_KEY_70016=menu                                # S -> menu
  KEYBOARD_KEY_70029=leftmeta                            # Esc -> LeftMeta (Windows key / Win8 tablets home)
  KEYBOARD_KEY_7002a=back                                # Backspace -> back