In this entry I will show you how to change ALSA mixer settings using
alsamixer and how to save them using
alsactl so that the changes remain in place after reboot. First things first, while there are many graphical audio mixer tools, such as
kmix, ALSA does come with a neat command based tool for adjusting mixers settings. ALSA mixer is called simply that,
alsamixer. It is easy to operate. Simply use the left/right arrow keys to move between devices, and up/down keys (or numeric keys) to adjust their volumes. A screenshot of
alsamixer is shown below.
After adjusting the settings for the playback and capture devices, advanced controls for ALSA soundcard driver utility,
alsactl, can be used to store them permanently. For the default audio device this can be done as follows.
However, you do have to run the above command as the root user, or the write access to
/var/lib/alsa/asound.state will fail with the following error message.
alsactl: save_state:1280: Cannot open /var/lib/alsa/asound.state for writing: Permission denied
alsactl as root or use sudo.
sudo alsactl store
Further information on both ALSA mixer and device control utility can be found in the man pages.
man alsamixer man alsactl
Did you find the above information useful and interesting? If so, please support this site by using the blog directory links at the bottom of this page. Thanks for your support!
If you have any Linux related problems or questions then please feel free to post them on our Linux Forums: http://linux.dsplabs.com.au/forums.