]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Add quirk to fix mapping of T-bao Tbook air touchpad toggle key 8223/head
authorHans de Goede <hdegoede@redhat.com>
Mon, 19 Feb 2018 17:24:09 +0000 (18:24 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 19 Feb 2018 19:20:40 +0000 (20:20 +0100)
The touchpad toggle key (Fn + Esc) on the T-bao Tbook air sends CTRL +
META + scancode 0x76 without this quirk. With this quirk it sends CTRL +
META + F21, with F21 mapping to XF86TouchpadToggle, which is what we want.

Note that the CTRL + META modifiers being send together with the F21 are
still somewhat unusual, userspace will need to be thought to deal with
this as there is nothing we can do about this at the hwdb level. Note at
least one other laptop also sends CTRL + META + F21 instead of just F21.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hwdb/60-keyboard.hwdb

index 02c31e2307fc81fd310d418a21607c84cb497ed9..2e76dce8653d673e7bd1729c50c9030caccd0041 100644 (file)
@@ -1203,6 +1203,13 @@ evdev:name:Sony Vaio Keys:dmi:bvn*:bvr*:bd*:svnSony*:pnVPC*:pvr*
  KEYBOARD_KEY_0d=down                                   # Fn+F9 zoomout
  KEYBOARD_KEY_0e=up                                     # Fn+F10 zoomin
 
+###########################################################
+# T-bao
+###########################################################
+
+evdev:atkbd:dmi:bvn*:bvr*:bd*:svnT-bao:pnTbookair:pvr*
+ KEYBOARD_KEY_76=f21                                    # Touchpad toggle
+
 ###########################################################
 # Toshiba
 ###########################################################