Mic mute button not detected in Asus TUF Series

I have installed manjaro kde in Asus TUF FX505GT. All the function keys are working except the one with microphone mute button

So to mute/unmute the mic the button is Fn + F4. When i click it nothing happens but when i click F4 button it works.

Try looking at

Settings —> configure shortcuts

See if those keys are set as the shortcut for muting.

Please provide the output of lsmod | grep -i asus. Moreover, install acpid (sudo pacman -Syu acpid), then start it (sudo systemctl start acpid) then start acpi_listen, and see if anything appears when you press Fn+F4.

It is not detected only

$ lsmod | grep -i asus
asus_nb_wmi            32768  0
asus_wmi               45056  1 asus_nb_wmi
sparse_keymap          16384  1 asus_wmi
rfkill                 28672  10 asus_wmi,bluetooth,cfg80211
wmi                    36864  3 asus_wmi,wmi_bmof,mxm_wmi
asus_wireless          20480  0
battery                20480  1 asus_wmi
i8042                  32768  1 asus_nb_wmi

Yes the button is detected

button/mute MUTE 00000080 00000000 K
button/mute MUTE 00000080 00000000 K
button/volumedown VOLDN 00000080 00000000 K
button/volumeup VOLUP 00000080 00000000 K
button/micmute MICMUTE 00000080 00000000 K
 PNP0C14:04-0B3 000000ff 00000000
button/micmute MICMUTE 00000080 00000000 K
 PNP0C14:04-0B3 000000ff 00000000

Please start evtest, select your keyboard, and then press Fn+F4 and check if you see KEY_MUTE appear. If evtest lists “Asus WMI hotkeys” (or similar), please run evtest again, and select that, and test again.

Testing ... (interrupt to exit)
Event: time 1599844648.615526, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7c
Event: time 1599844648.615526, type 1 (EV_KEY), code 248 (KEY_MICMUTE), value 1
Event: time 1599844648.615526, -------------- SYN_REPORT ------------
Event: time 1599844648.615565, type 1 (EV_KEY), code 248 (KEY_MICMUTE), value 0
Event: time 1599844648.615565, -------------- SYN_REPORT ------------
Event: time 1599844649.742287, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7c
Event: time 1599844649.742287, type 1 (EV_KEY), code 248 (KEY_MICMUTE), value 1
Event: time 1599844649.742287, -------------- SYN_REPORT ------------
Event: time 1599844649.742315, type 1 (EV_KEY), code 248 (KEY_MICMUTE), value 0
Event: time 1599844649.742315, -------------- SYN_REPORT ------------
Event: time 1599844653.488820, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7c
Event: time 1599844653.488820, type 1 (EV_KEY), code 248 (KEY_MICMUTE), value 1
Event: time 1599844653.488820, -------------- SYN_REPORT ------------
Event: time 1599844653.488854, type 1 (EV_KEY), code 248 (KEY_MICMUTE), value 0
Event: time 1599844653.488854, -------------- SYN_REPORT ------------

Did you find the fix? @tbhaxor

I think that problem is that the key code of KEY_MICMUTE is 248, which is more than 247, so it cannot be used in X11, which means it’s probably fully ignored by the X server. A workaround could be to remap it to KEY_F20 somehow, which is understood as the “microphone mute” key in many desktop environments. I think it might just be doable with hwdb, but I’m not sure.

same problem with tuf 505DY i think its a X bug i have also installed wayland session mic toogle works fine there. I hope there’s someone fix this issue

well i got a work around it’s not ideal i hope X devs fix this issue

the action command is specifically for kde for other DE’s u have to find
Also u have to install kmix application by kde it to work

in your /etc/acpi/events/mic-toggle :
event=button/micmute
action=sudo -u user XDG_RUNTIME_DIR=/run/user/1000 qdbus org.kde.kglobalaccel /component/kmix invokeShortcut “mic_mute”

things u should have installed are acpid and kmix
replace user after sudo with your username