LinuxCommandLibrary

alsactl

Save and restore ALSA sound card settings.

TLDR

Store current sound card settings

$ sudo alsactl store
copy
Restore saved settings
$ sudo alsactl restore
copy
Store settings for specific card
$ sudo alsactl store [0]
copy
Initialize sound cards to default
$ sudo alsactl init
copy
Restore with debug output
$ sudo alsactl -d restore
copy

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 file
restore [card]
Restore state from file
init [card]
Initialize card to default state
nrestore [card]
Restore but don't fail on missing state file
monitor
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.

SEE ALSO

alsamixer(1), amixer(1), aplay(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community