linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix micmute remap for Lenovo Thinkpads
@ 2011-10-25  5:22 Jerone Young
  2011-10-26  5:40 ` Martin Pitt
  0 siblings, 1 reply; 2+ messages in thread
From: Jerone Young @ 2011-10-25  5:22 UTC (permalink / raw)
  To: linux-hotplug

Micmute keypress coming from Thinkpads via thinkpad-acpi are being
remapped to prog2 via udev. 

Linux Kernel 3.1 now has proper support for a mic mute button:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h3009557bd

This patch resolves the issue.

Signed-off-by: Jerone Young <jyoung@redhat.com>

diff --git a/extras/keymap/keymaps/module-lenovo b/extras/keymap/keymaps/module-lenovo
index 81b8fea..8e38883 100644
--- a/extras/keymap/keymaps/module-lenovo
+++ b/extras/keymap/keymaps/module-lenovo
@@ -14,4 +14,4 @@
 0x15 volumedown
 0x16 mute
 0x17 prog1 # ThinkPad/ThinkVantage button (high keycode: "vendor")
-0x1A prog2 # Microphone mute
+0x1A micmute # Microphone mute


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix micmute remap for Lenovo Thinkpads
  2011-10-25  5:22 [PATCH] Fix micmute remap for Lenovo Thinkpads Jerone Young
@ 2011-10-26  5:40 ` Martin Pitt
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Pitt @ 2011-10-26  5:40 UTC (permalink / raw)
  To: linux-hotplug

Hello Jerone,

Jerone Young [2011-10-25  0:22 -0500]:
> Micmute keypress coming from Thinkpads via thinkpad-acpi are being
> remapped to prog2 via udev. 
> 
> Linux Kernel 3.1 now has proper support for a mic mute button:
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h3009557bd

Thanks, applied. This will cause "make distcheck" to fail on older
kernels, though, as KEY_MICMUTE does not exist there yet. But that
shouldn't hurt too much, I think.

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-26  5:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-25  5:22 [PATCH] Fix micmute remap for Lenovo Thinkpads Jerone Young
2011-10-26  5:40 ` Martin Pitt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).