Skip to main content

Posts

Showing posts from October, 2018

How to mute/unmute microphone at HP EliteBook 820 G2 under Ubuntu

If you try to install Ubuntu at HP notebook, you will meet with some drawbacks. HP by default support Microsoft OSes only. You will find that some common things are working not as you expected. For example, you will lose your fingerprint or your touch-pad will work with limitation. But I didn't expect that such a common thing like Microphone mute/unmute key not work under Ubuntu. But it is so! To toggle mute of default microphone under Ubuntu at HP EliteBook you need an  pulseaudio and some scripting. Make sure that you have  pacmd  (from  pulseaudio-utils  package) and  notify-send  (from  libnotify-bin ). Use this script: #!/bin/sh pacmd list - sources | awk '\ BEGIN {default_found=0;} /^[\t ]*\*/ {default_found=1;} /^[\t ]*name:/ { if (default_found) { name=$2; gsub("[<>]", "", name); } } /^[\t ]*muted:/ { if (default_found) { if ($2=="yes") { mute=0; icon="mi