123456789101112131415161718 |
- #
- # Note that two different ALSA card state management schemes exist and they
- # can be switched using a file exist check - /etc/alsa/state-daemon.conf .
- #
- [Unit]
- Description=Save/Restore Sound Card State
- ConditionPathExists=!/etc/alsa/state-daemon.conf
- ConditionPathExistsGlob=/dev/snd/control*
- After=alsa-state.service
- ConditionPathExists=/var/lib/alsa/asound.state
- [Service]
- Type=oneshot
- RemainAfterExit=true
- ExecStart=-/usr/sbin/alsactl restore
- ExecStop=-/usr/sbin/alsactl store
- StandardOutput=syslog
|