alsa-restore.service 506 B

123456789101112131415161718
  1. #
  2. # Note that two different ALSA card state management schemes exist and they
  3. # can be switched using a file exist check - /etc/alsa/state-daemon.conf .
  4. #
  5. [Unit]
  6. Description=Save/Restore Sound Card State
  7. ConditionPathExists=!/etc/alsa/state-daemon.conf
  8. ConditionPathExistsGlob=/dev/snd/control*
  9. After=alsa-state.service
  10. ConditionPathExists=/var/lib/alsa/asound.state
  11. [Service]
  12. Type=oneshot
  13. RemainAfterExit=true
  14. ExecStart=-/usr/sbin/alsactl restore
  15. ExecStop=-/usr/sbin/alsactl store
  16. StandardOutput=syslog