alsactl
Save and restore ALSA sound card settings.
TLDR
Store current sound card settings
SYNOPSIS
alsactl [options] command [card]
DESCRIPTION
alsactl is an ALSA soundcard control utility that manages sound card configuration state. It can save and restore mixer settings, volume levels, and other audio parameters.
The tool is typically called automatically during system startup and shutdown to preserve audio settings across reboots.
PARAMETERS
store [card]
Save current state to filerestore [card]
Restore state from fileinit [card]
Initialize card to default statenrestore [card]
Restore but don't fail on missing state filemonitor
Monitor driver events-f file
Configuration file (default: /var/lib/alsa/asound.state)-d
Debug mode-F
Force restore even if card is busy
CONFIGURATION
/var/lib/alsa/asound.state
Default state file where mixer settings and volume levels are saved and restored from. Can also be located at /etc/asound.state on some distributions.
CAVEATS
Requires root privileges for system-wide operations. State files are card-specific; moving a card to a different slot may cause issues. Some driver updates may invalidate saved state.
HISTORY
alsactl has been part of the ALSA (Advanced Linux Sound Architecture) project since ALSA replaced OSS (Open Sound System) as the standard Linux audio framework in the early 2000s.
