alsa-project / alsa-ucm-conf

ALSA Use Case Manager configuration
BSD 3-Clause "New" or "Revised" License
77 stars 222 forks source link

Mic mute LED only follows internal rather than selected #440

Open JL2210 opened 2 months ago

JL2210 commented 2 months ago

I have a laptop keyboard with a key to mute the microphone. Using this key mutes whichever mic is selected as default. However, the light on the key only changes with the internal microphone rather than the active mic.

Pressing the key when a headset is plugged in doesn't change the LED, but pressing it without a headset does.

alsa-info.txt

perexg commented 1 month ago

Unfortunately, the key mapping is handled in the user space, but LED state depends on the hardware state. It means that if we add headphones to the LED bindings, both internal and headphone microphones must be off. Unfortunately, sound servers do not turn unused outputs off at the moment.

You can try this as root: echo "Capture Switch" > /class/sound/ctl-led/mic/card0/attach (the card number must be correct)

JL2210 commented 1 month ago

Unfortunately, the key mapping is handled in the user space, but LED state depends on the hardware state. It means that if we add headphones to the LED bindings, both internal and headphone microphones must be off. Unfortunately, sound servers do not turn unused outputs off at the moment.

You can try this as root: echo "Capture Switch" > /class/sound/ctl-led/mic/card0/attach (the card number must be correct)

Thanks, that worked! I've put it in my /etc/tmpfiles.d for now