|
Jaroslav Kysela |
09e283 |
#
|
|
Jaroslav Kysela |
09e283 |
# Note that two different ALSA card state management schemes exist and they
|
|
Jaroslav Kysela |
09e283 |
# can be switched using a file exist check - /etc/alsa/state-daemon.conf .
|
|
Jaroslav Kysela |
09e283 |
#
|
|
Jaroslav Kysela |
09e283 |
|
|
Jaroslav Kysela |
09e283 |
[Unit]
|
|
Jaroslav Kysela |
09e283 |
Description=Manage Sound Card State (restore and store)
|
|
Jaroslav Kysela |
09e283 |
ConditionPathExists=/etc/alsa/state-daemon.conf
|
|
Jaroslav Kysela |
09e283 |
DefaultDependencies=no
|
|
Jaroslav Kysela |
09e283 |
After=sysinit.target
|
|
Jaroslav Kysela |
09e283 |
Before=shutdown.target
|
|
Jaroslav Kysela |
09e283 |
Conflicts=shutdown.target
|
|
Jaroslav Kysela |
09e283 |
|
|
Jaroslav Kysela |
09e283 |
[Service]
|
|
Jaroslav Kysela |
09e283 |
Type=simple
|
|
Jaroslav Kysela |
09e283 |
ExecStart=-/usr/sbin/alsactl -s -n 19 -c -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main rdaemon
|
|
Jaroslav Kysela |
09e283 |
ExecStop=-/usr/sbin/alsactl -s rkill save_and_quit
|