Every application where uses microphone (Discord, Google Hangouts, Microsoft Teams, etc.) changes the current settings of alsamixer without your permission. Example:
The alsactl.sh
script listens alsactl monitor
events. When an event is trigger, it means something tried to change
the configuration and this script runs automatically alsactl restore
to return the custom configuration.
# Install
sudo make install
# Uninstall
sudo make uninstall
# Pause
sudo make stop
# Start
sudo make start
- Ubuntu 20.04
- Ubuntu 21.04
- alsactl
- stdbuf
- systemctl
- It stops after system suspend
- If you have multiple microphones (headset, laptop's microphone, etc.) and change from one to another, it stops