Bug 757365

Summary: Microphone-mute-key does not work in X11
Product: [Fedora] Fedora Reporter: tuxor <acc-bugz-redhat>
Component: xorg-x11-drv-keyboardAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: peter.hutterer, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-29 04:46:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description tuxor 2011-11-26 17:37:21 UTC
Description of problem:
My ThinkPad's "microphone mute" key doesn't work in X anymore (used to work in Fedora 15). Doesn't produce any output in "xev" and I thus can't use it as Gnome shortcut in Control Center.

Version-Release number of selected component (if applicable):
xorg-x11-drv-keyboard.x86_64                1.6.0-2.fc16

How reproducible:
always

Steps to Reproduce:
1. start xev in terminal
2. press microphone-mute-key
3. notice the missing output in terminal window
  
Actual results:
No response from xev in terminal window.

Expected results:
A key-pressed-event. Used to be Keycode 248 in Fedora 15, and still is in Ubuntu 11.10 and Linux Mint 12 (Beta).

Additional info:

The key is managed by /dev/input/event6 (ThinkPad Extra Buttons). Other keys managed by this device (e.g. Fn+F8 - touchpad toggle) are working as expected. 

In tty (Ctrl-Alt-F3), I'm not getting any response in "showkey -s", but I'm getting "Keycode 248" when using "showkey -k". Strangely enough, in Fedora 15 "showkey -k" used to yield "Keycode 240".

I tried the tool "getscancodes" from http://keytouch.sourceforge.net/dl-getscancodes.html and applied it on /dev/input/event6. It yields scancode 26 (0x1a), when mic-mute-button is pressed.

Comment 1 Peter Hutterer 2011-11-29 04:46:09 UTC
from linux/input.h:
#define KEY_MICMUTE             248     /* Mute / unmute the microphone */
and
#define KEY_UNKNOWN             240

so my guess was that it was simply unknown in f15 but it is known now. the problem you're running into though is the 255 keycode limit in X. Anything that's (kernel keycode + 8 >= 255) cannot be routed by X. sorry.

See the upstream bug here: https://bugs.freedesktop.org/show_bug.cgi?id=11227