]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Add mapping for Xiaomi Mipad 2 bottom bezel capacitive buttons
authorHans de Goede <hdegoede@redhat.com>
Sun, 5 May 2024 17:40:12 +0000 (19:40 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 5 May 2024 20:42:13 +0000 (22:42 +0200)
The Xiaomi Mipad2 tablet has 3 capacitive buttons at the bottom.
These 3 buttons are handled by the touchsceen (the touchscreen extends
downwards to cover the bottom bezel).

By default these send Windows specific shortcuts which do not work
with Linux desktop environments:

Menu: LeftMeta + S
Home: LeftCtrl + Esc
Back: Backspace

Map these to menu / leftmeta (Windows key / Win 8 tablet home button key) /
back.

hwdb.d/60-keyboard.hwdb

index 20430c90859cbe219c32c39159ffb374ea550ef9..60994f2a5d571fbdc4aa8af355b3b331e10e9176 100644 (file)
@@ -1978,6 +1978,21 @@ evdev:name:SIPODEV USB Composite Device:dmi:bvn*:bvr*:bd*:svnVIOS:pnLTH17:*
 evdev:atkbd:dmi:bvn*:bvr*:bd*:svnINET:pnP325J:*
  KEYBOARD_KEY_76=f21                                    # Touchpad toggle
 
+###########################################################
+# Xiaomi
+###########################################################
+
+# Fix mapping of menu / home / back capacitive buttons on bottom bezel
+# Menu: LeftMeta + S   -> menu      (ignore LeftMeta, map S to menu)
+# 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_70016=menu       # S -> menu
+ KEYBOARD_KEY_70029=leftmeta   # Esc -> LeftMeta (Windows key / Win8 tablets home)
+ KEYBOARD_KEY_7002a=back       # Backspace -> back
+
 ###########################################################
 # Zepto
 ###########################################################