Skip to content

Instantly share code, notes, and snippets.

@Calinou
Last active September 14, 2020 13:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Calinou/01f0b7ef5bd0ae09555e25147ea6d106 to your computer and use it in GitHub Desktop.
Save Calinou/01f0b7ef5bd0ae09555e25147ea6d106 to your computer and use it in GitHub Desktop.
Disable/bypass PulseAudio automatic gain control
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
while sleep 0.1; do
# Use `pacmd list-sources` to get the input source name.
# 65535 is 100% volume.
pacmd set-source-volume alsa_input.pci-0000_00_1f.3.analog-stereo 40000
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment