681a73
#
681a73
# Note that two different ALSA card state management schemes exist and they
681a73
# can be switched using a file exist check - /etc/alsa/state-daemon.conf .
681a73
#
681a73
681a73
[Unit]
681a73
Description=Save/Restore Sound Card State
681a73
ConditionPathExists=!/etc/alsa/state-daemon.conf
681a73
ConditionPathExistsGlob=/dev/snd/control*
681a73
ConditionPathExists=/var/lib/alsa/asound.state
681a73
681a73
[Service]
681a73
Type=oneshot
681a73
RemainAfterExit=true
681a73
ExecStart=-/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore
681a73
ExecStop=/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store