lentinj / tp-compact-keyboard

Fn-Lock switcher for ThinkPad Compact Bluetooth Keyboard with TrackPoint
GNU General Public License v2.0
350 stars 33 forks source link

Mutte mic button doesn't work #43

Open rcdeoliveira opened 6 years ago

rcdeoliveira commented 6 years ago

I am running Debian Buster with kernel version 4.13.0 and mic off / on button doesn't work. How can enable it?

P.D: Thanks for share this code, it's awesome

lentinj commented 6 years ago

This isn't a problem specific to these keyboards I don't think, by default the Mic mute key doesn't do anything.

Have a look at: http://www.thinkwiki.org/wiki/Microphone_Mute_Button

rcdeoliveira commented 6 years ago

I read that same page before create the issue, but my t440s keyboard works just fine, even the on/off mic button.

El lun., 11 de dic. de 2017 11:47, Jamie Lentin notifications@github.com escribió:

This isn't a problem specific to these keyboards I don't think, by default the Mic mute key doesn't do anything.

Have a look at: http://www.thinkwiki.org/wiki/Microphone_Mute_Button

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lentinj/tp-compact-keyboard/issues/43#issuecomment-350763508, or mute the thread https://github.com/notifications/unsubscribe-auth/AGs3awkDR2gzKn1dm-HrePC1OpZzwv_nks5s_U6BgaJpZM4Q9aEo .

--

Saludos, Roberto De Oliveira

mrPjer commented 6 years ago

To confirm this - the mic mute button on my X220 works, but it doesn't work on the USB Compact Keyboard.

lentinj commented 6 years ago

If it's working in one not the other, then you're probably experiencing a bug with the systemd keymaps. See the "F20" section at the bottom of that page. Your internal keyboard has probably got it's MICMUTE key remapped to F20, but the external keyboard is still mapped to MICMUTE.

Either report it with systemd or use hwdb to change your keymap locally.

mrPjer commented 6 years ago

Using showkey, my internal mute button gives a scancode 0x5a 0xda and a keycode 190. The external keyboard gives a keycode 248, but no scancode, while all the other keys give a scancode.

Can I remap this without a scancode?

lentinj commented 6 years ago

No, you can't have no scancode. It just means it's been filtered somewhere along the line. Heed the warnings in showkey's manpage, evtest is a better tool to use.