Blame alsa-restore.service
|
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 |
8293f4 |
[Unit]
|
|
Jaroslav Kysela |
be787e |
Description=Save/Restore Sound Card State
|
|
Jaroslav Kysela |
09e283 |
ConditionPathExists=!/etc/alsa/state-daemon.conf
|
|
Jaroslav Kysela |
09e283 |
After=alsa-state.service
|
|
Jaroslav Kysela |
8293f4 |
|
|
Jaroslav Kysela |
8293f4 |
[Service]
|
|
Jaroslav Kysela |
8293f4 |
Type=oneshot
|
|
Jaroslav Kysela |
be787e |
RemainAfterExit=true
|
|
Jaroslav Kysela |
8293f4 |
ExecStart=-/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore
|
|
Jaroslav Kysela |
be787e |
ExecStop=/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store
|
|
Jaroslav Kysela |
09e283 |
StandardOutput=syslog
|