Support for microphone mute button on ThinkPad X220 et al

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a ThinkPad X220 there is a microphone mute button which generates
ACPI event "ibm/hotkey HKEY 00000080 0000101b" which
corresponds to scancode 0x1a.  By means of the appended patch to
the module-lenovo keymap file I map it to prog2 (and thus to
XF85Launch2 which I have configured to run a short amixer script).
There may be a better keyname to use, but I haven't seen anything
like "micmute".                           // Thomas Hood

$ diff -ur /lib/udev/keymaps/module-lenovo /etc/udev/keymaps/module-lenovo
--- /lib/udev/keymaps/module-lenovo 2011-04-07 14:43:35.000000000 +0200
+++ /etc/udev/keymaps/module-lenovo 2011-08-07 15:20:07.580033127 +0200
@@ -14,3 +14,4 @@
 0x15 volumedown
 0x16 mute
 0x17 prog1 # ThinkPad/ThinkVantage button (high keycode: "vendor")
+0x1a prog2 # Microphone mute
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux