Difference between revisions of "ThinkPad: Mute button"

From ArchWiki
Jump to: navigation, search
(External Audio still on:: update)
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
[[Category:Laptops]]
 
== Problem: ==
 
== Problem: ==
 
Mute button does not work properly on most ThinkPads and IdeaPads with a newer kernel. Two different scenarios occur:
 
Mute button does not work properly on most ThinkPads and IdeaPads with a newer kernel. Two different scenarios occur:
Line 14: Line 15:
 
:reboot, and go on:<br>
 
:reboot, and go on:<br>
 
=== External Audio still on: ===
 
=== External Audio still on: ===
:Install tpb from AUR (with yaourt, just do: "yaourt -Sy tpb") and create an file "/root/.tpbrc":
+
:Install {{aur|tpb}} from the [[AUR]] and create an file "/root/.tpbrc":
 
  #tpb-Settings: <br>
 
  #tpb-Settings: <br>
 
  CALLBACK "/root/tp-key-handler" <br>
 
  CALLBACK "/root/tp-key-handler" <br>
Line 31: Line 32:
 
:you'll have too add execute-rights to /root/tp-key-handler:
 
:you'll have too add execute-rights to /root/tp-key-handler:
 
  chmod +x /root/tp-key-handler <br>
 
  chmod +x /root/tp-key-handler <br>
:To test it, run "tpb" as root, if everything works, add the following line to "/etc/rc.locale" (if you have to crate it type "#!/bin/bash" as the first line):
+
:Since tpb needs root-privileges as well as X, you may start it by adding "sudo tpb" in the .xinitrc and editing your sudo-Settings (use visudo) or addin "gksudo tpb" in any X-Startscript (the last will ask for an password on startup).
tpb
+
it should look like this now:
+
#!/bin/bash
+
tpb
+
  
That's it - if you have a better Idea, please don't hesitate to edit this page!
+
That's it - if you have a better Idea, please do not hesitate to edit this page!

Revision as of 09:59, 5 December 2012

Problem:

Mute button does not work properly on most ThinkPads and IdeaPads with a newer kernel. Two different scenarios occur:

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 /etc/modprobe.d/modprobe.conf and add the following line:
options thinkpad_acpi enabled=0 # enables Mute-Button on ThinkPads with IdeaPad-Firmware 
reboot, and go on:

External Audio still on:

Install tpbAUR from the AUR and create an file "/root/.tpbrc":
#tpb-Settings: 
CALLBACK "/root/tp-key-handler"
OSD off
Now create the file "/root/tp-key-handler":
#!/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 /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 "sudo tpb" in the .xinitrc and editing your sudo-Settings (use visudo) or addin "gksudo tpb" in any X-Startscript (the last will ask for an password on startup).

That's it - if you have a better Idea, please do not hesitate to edit this page!