martin-ueding / thinkpad-scripts

Screen rotation, docking and other scripts for ThinkPad® X220 and X230 Tablet
Other
133 stars 23 forks source link

think-mutemic-acpi-hook is never called #14

Open jturner314 opened 11 years ago

jturner314 commented 11 years ago

On my machine, there are no ACPI events when pressing the mute button, so think-mutemic-acpi-hook is never called. However, the mute button does issue keypress events (keycode 190) and GNOME 3.10 responds properly by muting the microphone. The indicator light integrated into the mute button still doesn't work, though.

I assume the missing ACPI events are due to my more recent version of the thinkpad-acpi kernel module. I'll be interested to hear if think-mutemic-acpi-hook works properly with Ubuntu 13.10. I'm creating this issue so that I don't forget about it.

jturner314 commented 10 years ago

I just noticed that there is a mapping in /lib/udev/hwdb.d that maps the mute button from the thinkpad_acpi driver to a keycode. The relevant mapping is:

keyboard:name:ThinkPad Extra Buttons:dmi:bvn*:bvr*:bd*:svnIBM*:pn*:pvr*
<snipped lines>
 KEYBOARD_KEY_16=mute

Since this only affects udev >=196, possibly this is causing the difference. More investigation is needed, though.

sniffer commented 8 years ago

x220t mute button

acpi_listen button/f20 F20 00000080 00000000 K

key scancode 0x5a 0xda

martin-ueding commented 7 years ago

Is this still an issue? Shall we keep it open or can it be closed?

jturner314 commented 7 years ago

On my system, thinkpad-mutemic-acpi-hook is not getting called because the ACPI event is button/f20 F20 00000080 00000000 K (what @sniffer posted above).

However, the microphone mute button works correctly without thinkpad-mutemic:

@martin-ueding Does the your microphone mute button work correctly without thinkpad-mutemic? If not, we should add another hook for the new ACPI event. If it does, we should consider removing thinkpad-mutemic since the problem it was meant to solve now appears to be fixed.

martin-ueding commented 7 years ago

My microphone-mute button does not work at all. My speaker-mute button works, though. I am not sure how much of the problem is Awesome WM with KMix to bind the keys or our suite of scripts :-/.