ThinkPad: ミュートボタン

提供: ArchWiki
2017年10月27日 (金) 16:56時点におけるKusanaginoturugi (トーク | 投稿記録)による版 (ページの作成:「Category:Lenovo == 問題: == ほとんどのThinkPadおよびIdeaPadで、新しいカーネルを使用している場合、ミュートボタンが正しく機能...」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動

問題:

ほとんどのThinkPadおよびIdeaPadで、新しいカーネルを使用している場合、ミュートボタンが正しく機能しません。2つの異なるシナリオが発生します。

何も動かない

ボタンは反応しません。LEDの点滅がない(一部のThinkPadにはLEDがあり、ミュート状態を示しています)、スピーカーの音量には影響しません。最初にミュートボタンを押してから、Vol-Downキーを押すとミュートされます。

外部オーディオがオンのまま

ボタンを押すとスピーカーがミュート(LEDも機能します)しますが、外部オーディオはオンのままです。

解決方法:

古い IBM ThinkPads

まず、これを試してください: "http://www.thinkwiki.org/wiki/Mute_button"

何も動かない:

/etc/modprobe.d/modprobe.conf を編集し、次の行を追加します。

 options thinkpad_acpi enabled=0 # enables Mute-Button on ThinkPads with IdeaPad-Firmware

再起動します。

外部オーディオがオンのまま:

AUR から tpbAUR をインストールして、"/root/.tpbrc" を作成します:

 #tpb-Settings:
 CALLBACK "/root/tp-key-handler"
 OSD off

次に、 "/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

/root/tp-key-handler に実行権限を追加します

 chmod +x /root/tp-key-handler

tpbにはXと同様にroot権限が必要なので、.xinitrcに "sudo tpb"を追加し、sudo-Settings(visudoを使う) や X-Startscript に "gksudo tpb" を追加することで起動することができます(起\ 動時にパスワードを尋ねる)。

それだけです。あなたが良いアイデアを持っているなら、このページを編集するのをためらわないでください。

外部オーディオがオンのまま (XFCE使用時):

Go to Applications->Settings->Keyboard->Application Shortcuts tab. Hit Add and for the command, use '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.