]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Prevent triple reporting of rfkill button on HP Elite x2 1013 G3, plus five other...
authorRussianNeuroMancer <russianneuromancer@ya.ru>
Sun, 27 Sep 2020 01:25:27 +0000 (09:25 +0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 28 Sep 2020 10:45:12 +0000 (12:45 +0200)
1. rfkill hotkey is reported from three source: keyboard, Intel HID and HP Wireless hotkeys. Let's block first two.
2. Correct mapping for calendar, micmute, display and brightness hotkeys.

hwdb.d/60-keyboard.hwdb

index 855b98f70c8425cf4bedeae23d242d89704deb86..343f2cb7fddf8c6f0342469d0aa982cf729e4f25 100644 (file)
@@ -541,6 +541,18 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHP*:pn*[sS][pP][eE][cC][tT][rR][eE]*x360Convert
 evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHP*:pnHPSpectrex360Convertible13*:pvr*
  KEYBOARD_KEY_82=f20                                    # Fn+F12; Microphone mute button, should be micmute
 
+# HP Elite x2 1013 G3
+evdev:atkbd:dmi:bvn*:bvr*:svnHP*:pnHPElitex21013G3:*
+  KEYBOARD_KEY_f8=unknown                               # rfkill is also reported by HP Wireless hotkeys
+  KEYBOARD_KEY_64=calendar
+  KEYBOARD_KEY_81=f20                                   # Microphone mute button
+  KEYBOARD_KEY_ee=switchvideomode                       # Switch display outputs
+  KEYBOARD_KEY_92=brightnessdown
+  KEYBOARD_KEY_97=brightnessup
+
+evdev:name:Intel HID events:dmi:bvn*:bvr*:svnHP*:pnHPElitex21013G3:*
+  KEYBOARD_KEY_08=unknown                               # rfkill is also reported by HP Wireless hotkeys
+
 # Elitebook
 evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHewlett-Packard*:pn*Compaq*:pvr*
 evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHewlett-Packard*:pn*EliteBook*:pvr*