Skip to content

Instantly share code, notes, and snippets.

@n1kk
Last active September 13, 2021 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n1kk/647f8f2b4ce84116d6f5019183e34986 to your computer and use it in GitHub Desktop.
Save n1kk/647f8f2b4ce84116d6f5019183e34986 to your computer and use it in GitHub Desktop.
How to crank input mic volume beyond max on linux

Find the index of the input device

Run alsamixer (or alsamixer -c 1 if you get errors) and set mic boost there to some unique value, like 96% (-1,00 db).

You can also change a setting in the gnome menu and try to find it in the listing of pactl list.

Now run this command but replace the value with yours

export VAL=96%; pactl list | sed -n "/^Source #/{x; /$VAL/p; d; }; /$VAL/H;"

You should see smth like this

Source #4
	Volume: mono: 63069 /  96% / -1,00 dB

That is your device index, 4 in this case, it can change between reboots so saving it is not recommended.

Set the volume over max 150%

Default value should be 65536 / 100% / 0,00 dB so if you want 200% multiply it by 2, so 131072

# 150%
pacmd set-source-volume 4 98304
# 200%
pacmd set-source-volume 4 131072 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment