naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
594167
From e8de40fbfab79cc86729e13b924251c1af8567ba Mon Sep 17 00:00:00 2001
594167
From: Lubomir Rintel <lkundrak@v3.sk>
594167
Date: Sun, 22 Jul 2018 00:25:51 +0200
594167
Subject: [PATCH] hwdb: 60-keyboard: Support the buttons on CZC P10T tablet
594167
594167
The machine has tree buttons connected to an EC that acts as a regular
594167
AT-compatible keyboard controller. It can be either in "Windows 7" or
594167
"Android" mode. It boots up with the earlier, but the Android build on
594167
the tablet switches it on bootup (Windows presumably leaves it as-is).
594167
594167
The "Windows 7" mode, the behavior is very inconvenient: the Home button
594167
emits multiple key presses that presumably do something in Windws 7 while
594167
the second button toggles the RF Kill Switch in addition to producing a
594167
scancode (it's labeled "Back" on Android version of the tablet).
594167
594167
The "Android" mode just sends the good ol' scan codes and this patch
594167
handles them. On mainline Linux, the "x86-android-tablets" driver makes
594167
sure we're in the correct mode.
594167
594167
(cherry picked from commit f2f11dfbb7f30d279ab3c9b3c84de5496407112d)
594167
594167
Related: #2087778
594167
---
594167
 hwdb.d/60-keyboard.hwdb | 14 ++++++++++++++
594167
 1 file changed, 14 insertions(+)
594167
594167
diff --git a/hwdb.d/60-keyboard.hwdb b/hwdb.d/60-keyboard.hwdb
594167
index 3d6e56983b..66561eac35 100644
594167
--- a/hwdb.d/60-keyboard.hwdb
594167
+++ b/hwdb.d/60-keyboard.hwdb
594167
@@ -1891,6 +1891,20 @@ evdev:input:b0003v1038p0310*
594167
  KEYBOARD_KEY_7002f=f11
594167
  KEYBOARD_KEY_70046=f6
594167
 
594167
+###########################################################
594167
+# CZC
594167
+###########################################################
594167
+
594167
+evdev:atkbd:dmi:bvn*:bvr*:bd*:svnCZC:pnODEON*TPC-10:*
594167
+ KEYBOARD_KEY_01=leftmeta                               # Home button held for 2s
594167
+ KEYBOARD_KEY_db=prog1                                  # Home button
594167
+ KEYBOARD_KEY_dd=rfkill                                 # Second button labeled Wi-Fi
594167
+
594167
+evdev:atkbd:dmi:bvn*:bvr*:bd*:svnViewSonic:pnVPAD10:*
594167
+ KEYBOARD_KEY_01=leftmeta                               # Home button held for 2s
594167
+ KEYBOARD_KEY_db=prog1                                  # Home button
594167
+ KEYBOARD_KEY_dd=back                                   # Second button labeled Back
594167
+
594167
 ###########################################################
594167
 # Other
594167
 ###########################################################