|
|
594167 |
From c064473f6993a04ad126770a3218da623316c543 Mon Sep 17 00:00:00 2001
|
|
|
594167 |
From: Hans de Goede <hdegoede@redhat.com>
|
|
|
594167 |
Date: Sat, 25 Dec 2021 11:19:03 +0100
|
|
|
594167 |
Subject: [PATCH] hwdb: 60-keyboard: Fix volume-button mapping on Asus TF103C
|
|
|
594167 |
|
|
|
594167 |
The Asus TF103C misses the home button in its PNP0C40 GPIO resources
|
|
|
594167 |
causing the button mappings for the volume buttons to be off by one,
|
|
|
594167 |
leading to the volume-up button sending home button presses and the
|
|
|
594167 |
volume-down button sending volume-up button presses.
|
|
|
594167 |
|
|
|
594167 |
Add a 60-keyboard hwdb entry to correct the mappings. Note this is
|
|
|
594167 |
split over 2 input devices because the soc_button_array driver
|
|
|
594167 |
creates separate input devices for power + home and vol up/down.
|
|
|
594167 |
This is done because power/home act as wakeup buttons where as
|
|
|
594167 |
the volume buttons do not.
|
|
|
594167 |
|
|
|
594167 |
This means that after this fixup the home -> volume-up button
|
|
|
594167 |
still acts as a wakeup button, there is nothing which can be done
|
|
|
594167 |
about this without adding a kludge to the kernel which is not
|
|
|
594167 |
worth the trouble (IMHO).
|
|
|
594167 |
|
|
|
594167 |
(cherry picked from commit 04b457d8ef9c93be3b2048c6f545cdbcf1b893a1)
|
|
|
594167 |
|
|
|
594167 |
Related: #2087778
|
|
|
594167 |
---
|
|
|
594167 |
hwdb.d/60-keyboard.hwdb | 8 ++++++++
|
|
|
594167 |
1 file changed, 8 insertions(+)
|
|
|
594167 |
|
|
|
594167 |
diff --git a/hwdb.d/60-keyboard.hwdb b/hwdb.d/60-keyboard.hwdb
|
|
|
594167 |
index b614a22c8c..3d6e56983b 100644
|
|
|
594167 |
--- a/hwdb.d/60-keyboard.hwdb
|
|
|
594167 |
+++ b/hwdb.d/60-keyboard.hwdb
|
|
|
594167 |
@@ -231,6 +231,14 @@ evdev:name:Asus Laptop extra buttons:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
|
|
|
594167 |
evdev:input:b0003v0B05p1869*
|
|
|
594167 |
KEYBOARD_KEY_ff31007c=f20 # Remap micmute to f20
|
|
|
594167 |
|
|
|
594167 |
+# Asus TF103C misses the home button in its PNP0C40 GPIO resources
|
|
|
594167 |
+# causing the volume-button mappings to be off by one, correct this
|
|
|
594167 |
+evdev:name:gpio-keys:phys:gpio-keys/input0:ev:3:dmi:*:svnASUSTeKCOMPUTERINC.:pnTF103C*:*
|
|
|
594167 |
+ KEYBOARD_KEY_1=volumeup
|
|
|
594167 |
+
|
|
|
594167 |
+evdev:name:gpio-keys:phys:gpio-keys/input0:ev:100003:dmi:*:svnASUSTeKCOMPUTERINC.:pnTF103C*:*
|
|
|
594167 |
+ KEYBOARD_KEY_0=volumedown
|
|
|
594167 |
+
|
|
|
594167 |
###########################################################
|
|
|
594167 |
# BenQ
|
|
|
594167 |
###########################################################
|