From: Hans de Goede Date: Mon, 19 Feb 2018 17:24:09 +0000 (+0100) Subject: hwdb: Add quirk to fix mapping of T-bao Tbook air touchpad toggle key X-Git-Tag: v238~86^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8223%2Fhead;p=thirdparty%2Fsystemd.git hwdb: Add quirk to fix mapping of T-bao Tbook air touchpad toggle key 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 --- diff --git a/hwdb/60-keyboard.hwdb b/hwdb/60-keyboard.hwdb index 02c31e2307f..2e76dce8653 100644 --- a/hwdb/60-keyboard.hwdb +++ b/hwdb/60-keyboard.hwdb @@ -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 ###########################################################