]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Add mapping for ACPI quickstart keys on Toshiba Z830
authorHans de Goede <hdegoede@redhat.com>
Sun, 24 Mar 2024 14:04:47 +0000 (15:04 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 25 Mar 2024 10:57:22 +0000 (10:57 +0000)
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.

hwdb.d/60-keyboard.hwdb

index 06411bf6204b390260e2c9785c3efffbf267c2fd..2e1838744ba1f8db430761a07b1f97137183a7bc 100644 (file)
@@ -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
 ###########################################################