5e4e586032
Resolves: RHEL-36276,RHEL-45020,RHEL-50672,RHEL-5950
48 lines
1.9 KiB
Diff
48 lines
1.9 KiB
Diff
From f4d6f3eb583c6eae3c1bb62e30b787ae11a6aebe Mon Sep 17 00:00:00 2001
|
|
From: Hans de Goede <hdegoede@redhat.com>
|
|
Date: Sun, 24 Mar 2024 15:04:47 +0100
|
|
Subject: [PATCH] hwdb: Add mapping for ACPI quickstart keys on Toshiba Z830
|
|
|
|
The Toshiba Z830 has 3 hotkeys which use the ACPI PNP0C32 quickstart spec:
|
|
https://archive.org/details/microsoft-acpi-dirapplaunch
|
|
|
|
These devices have an ACPI method called GHID() which suggests
|
|
it returns a value from the "HID Usage Tables" document, but these
|
|
methods simple returns a follow number for the button (1, 2 and 3).
|
|
|
|
The first 2 buttons are for what the manual calls "TOSHIBA eco button"
|
|
and "TOSHIBA Presentation button", since there is no good match for
|
|
these simply map them to KEY_PROG1 and KEY_PROG2.
|
|
|
|
The third button is intended to toggle the touchpad on/off, map
|
|
this to F21 which GNOME/KDE will interpret as touchpad toggle.
|
|
|
|
(cherry picked from commit 93cc8de05ca0b5f533d0b646a3cd3824b9ae2e89)
|
|
|
|
Related: RHEL-5950
|
|
---
|
|
hwdb.d/60-keyboard.hwdb | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
diff --git a/hwdb.d/60-keyboard.hwdb b/hwdb.d/60-keyboard.hwdb
|
|
index 06411bf620..2e1838744b 100644
|
|
--- a/hwdb.d/60-keyboard.hwdb
|
|
+++ b/hwdb.d/60-keyboard.hwdb
|
|
@@ -1941,6 +1941,16 @@ evdev:name:Toshiba*input*device:dmi:bvn*:bvr*:bd*:svnTOSHIBA*:pnSatellite*P75-A:
|
|
KEYBOARD_KEY_13f=f21 # Touchpad toggle
|
|
KEYBOARD_KEY_9e=wlan
|
|
|
|
+# Portege Z830 ACPI quickstart buttons
|
|
+evdev:name:Quickstart Button 1:dmi:bvn*:bvr*:bd*:svnTOSHIBA*:pnPORTEGEZ830:*
|
|
+ KEYBOARD_KEY_1=prog1 # TOSHIBA eco button
|
|
+
|
|
+evdev:name:Quickstart Button 2:dmi:bvn*:bvr*:bd*:svnTOSHIBA*:pnPORTEGEZ830:*
|
|
+ KEYBOARD_KEY_1=prog2 # TOSHIBA Presentation button
|
|
+
|
|
+evdev:name:Quickstart Button 3:dmi:bvn*:bvr*:bd*:svnTOSHIBA*:pnPORTEGEZ830:*
|
|
+ KEYBOARD_KEY_1=f21 # Touchpad toggle
|
|
+
|
|
###########################################################
|
|
# VIA
|
|
###########################################################
|