Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mic mute LED only follows internal rather than selected #440

Open
JL2210 opened this issue Sep 11, 2024 · 2 comments
Open

Mic mute LED only follows internal rather than selected #440

JL2210 opened this issue Sep 11, 2024 · 2 comments

Comments

@JL2210
Copy link

JL2210 commented Sep 11, 2024

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
Copy link
Member

perexg commented Oct 14, 2024

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
Copy link
Author

JL2210 commented Oct 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants