Every application that uses microphone (Discord, Google Hangouts, Microsoft Teams, etc.) changes the current settings of alsamixer without any permission. Example:
The alsactl.py
script listens alsactl monitor
events. When an event is fired, it means something tried to changed the configuration and this script runs automatically alsactl restore
to return the custom configuration.
# Cloning the repository and running install.sh script
git clone https://github.com/Kafels/AlsaMixerFreeze.git
cd AlsaMixerFreeze && chmod +x ./install.sh && ./install.sh
chmod +x ./uninstall.sh && ./uninstall.sh
- Ubuntu 20.04
- Python 3.8
- os (inbuilt)
- subprocess (inbuilt)
- alsactl
- stdbuf
- Script dies after system suspend