16 lines
475 B
SYSTEMD
16 lines
475 B
SYSTEMD
|
|
|
||
|
|
# 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=Manage Sound Card State (restore and store)
|
||
|
|
Documentation=man:alsactl(1)
|
||
|
|
ConditionPathExists=!/etc/alsa/state-daemon.conf
|
||
|
|
After=sysinit.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
ExecStart=-/usr/sbin/alsactl -E HOME=/run/alsa -s -n 19 -c rdaemon
|
||
|
|
ExecStop=-/usr/sbin/alsactl -E HOME=/run/alsa -s kill save_and_quit
|