ThinkPad mute button: Difference between revisions

From ArchWiki
(flag page with Template:Style since it uses no standard sections and instead uses its own confusing ones)
(archive per ArchWiki:Archive)
Tag: Replaced
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Lenovo]]
[[ja:ThinkPad: ミュートボタン]]
[[zh-hans:ThinkPad mute button]]
{{Style|No standard sections. Maybe move page so it can be a /Troubleshooting one?}}
== Problem ==


The mute button does not work properly on most ThinkPads and IdeaPads with a newer kernel. Two different scenarios occur:
#redirect [[ArchWiki:Archive]]
 
[[Category:Archive]]
=== Nothing works ===
 
The Button does not react at all: no led flash (some ThinkPads have an LED, indicating the Mute-State) and no effect on Speakers Volume. It only mutes, if you first press the mute button and afterwards the Vol-Down-Key.
 
=== External Audio still on ===
 
Pressing the button causes the speakers to mute (LED also works), but external audio is still on.
 
== Solution ==
 
=== Older IBM ThinkPads ===
 
First try this: "http://www.thinkwiki.org/wiki/Mute_button"
 
=== Nothing works ===
 
Edit your {{ic|/etc/modprobe.d/modprobe.conf}} and add the following line:
 
{{hc|/etc/modprobe.d/modprobe.conf|2=
...
options thinkpad_acpi enabled=0 # enables Mute-Button on ThinkPads with IdeaPad-Firmware
}}
 
reboot, and go on.
 
=== External Audio still on ===
 
Install {{AUR|tpb}} from the [[AUR]] and create an file {{ic|/root/.tpbrc}}:
 
{{hc|/root/.tpbrc|
#tpb-Settings:
CALLBACK "/root/tp-key-handler"
OSD off
}}
 
Now create the file {{ic|/root/tp-key-handler}}:
 
{{hc|/root/tp-key-handler|2=
#!/bin/bash
echo $1 $2
if [ $1 = mute ]; then
if [ $2 = on ]; then
mset="off";
else
mset="on";
fi
sudo -u USERNAME amixer sset Master $mset; # I had to sudo to me, because I use PulseAudio
fi
}}
 
you'll have too add execute-rights to {{ic|/root/tp-key-handler}}:
 
chmod +x /root/tp-key-handler
 
Since tpb needs root-privileges as well as [[X]], you may start it by adding {{ic|sudo tpb}} in the {{ic|.xinitrc}} and editing your [[sudo]]-Settings (use {{ic|visudo}}) or addin {{ic|gksudo tpb}} in any X-Startscript (the last will ask for an password on startup).
 
=== External Audio still on (and you use XFCE) ===
 
Go to Applications->Settings->Keyboard->Application Shortcuts tab. Hit Add and for the command, use {{ic|amixer sset Master toggle}}. For the key, hit the mute button. Protip, to make sure the led state is correct, start with the led in the opposite state of your mutedness so that when you map the button, it starts out in the correct state. Alternatively, you could just reboot and make sure the led is off before you get into your [[Xfce]] session.

Latest revision as of 16:03, 4 December 2021

Redirect to: