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)
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
###########################################################