]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: add support for Alienware graphics amplifier
authorMario Limonciello <mario_limonciello@dell.com>
Thu, 11 Jun 2015 03:01:51 +0000 (22:01 -0500)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 14 Jun 2015 12:32:19 +0000 (14:32 +0200)
Unplugging and plugging in the cable will create various scancodes
on the keyboard controller.

Userspace within X should be able to interact with these to show
interesting messages. Assign them to generic prog1/prog2.

(David: add comment to hwdb explaining that these keycodes are reserved)

hwdb/60-keyboard.hwdb

index 007c6a809eeec57a986b01cee2041c154f6ff40c..d0fc914d17ac64b887495e68d304a082bba9a50b 100644 (file)
@@ -144,6 +144,12 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAcer*:pnAOA*:pvr*
 evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAlienware*:pn*
  KEYBOARD_KEY_8a=ejectcd
 
+# Alienware/Dell reserves these keys; safe to apply on all their devices
+evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAlienware*:pn*:pvr*
+ KEYBOARD_KEY_bf=!prog1                                 #graphics amplifier, cable plug-in event
+ KEYBOARD_KEY_c1=!prog2                                 #graphics amplifier, undock-button event
+ KEYBOARD_KEY_c2=!power                                 #graphics amplifier, surprise undock event
+
 ###########################################################
 # Asus
 ###########################################################