![]() Let's create the script first: /etc/acpi/lenovo-mutemic.sh should be as in section c-1, with the following additions: This will require compiling a patched thinkpad_acpi module and has been verified to work with Ubuntu Precise 12.04 and Quantal 12.10, kernels 3.2.0-23 and 3.2.0-24 and 3.5.0-21.Please do not use this method if you are not familiar with the terminal/shell.Mic-mute with official Mic-mute Indicator Light Setting up the script Jump to the Testing section (d) to confirm that it works.Ĭ-2. ![]() Sudo chmod x /etc/acpi/lenovo-mutemic.sh ![]() Now run the following (from the terminal):.Replace value of YOUR_USERNAME variable with the account name of the user you want to send notifications to.Replace value of INPUT_DEVICE variable with Capture if that is your input device name (leave all the ticks intact). i microphone-sensitivity-high-symbolic "Mic ON"' i microphone-sensitivity-muted-symbolic "Mic MUTED"' Su $YOUR_USERNAME -c 'DISPLAY=":0.0" notify-send -t 50 \ If amixer sget $INPUT_DEVICE,0 | grep '\' then Open terminal, type gksudo gedit /etc/acpi/lenovo-mutemic.sh.Do this if you want an easy solution and do not want to use the patched kernel module (see C-2).Mic-Mute script with Power Button indicator In the editor, paste in the following, where the first line should be the code shown in the previous section by acpi_listen:Ĭhoosing either the Power Light or Mic Mute indicatorsĬ-1.Open terminal, type gksudo gedit /etc/acpi/events/lenovo-mutemic to open the editor.Then run amixer scontrols, you should see one of the following in the output:ĭepending on what you see, "Internal Mic" or "Capture" is your input device. Note the result, which should be something like: Run acpi_listen, and press the mute key.Determining the Mic-Mute hotkey code and Mic input device This is because the patch is not included by the thinkpad_acpi developers by default, ( See this discussion for more details).Ī. Solution 2 requires a patched thinkpad_acpi kernel module, and is only recommended for advanced users who know what they are doing. ![]() The Mic mute button light (orange) will be on or off to show mute status (just like in Windows) The Power button light (green) will blink to show when mute is on.There are two possible "hardware" indicators (to show that mute is on or off): This solution should work for all Thinkpads with a mute button which also has a built-in light. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |