mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-14 06:35:41 +01:00
f72a296d23
Ensures soundcard is ready before restoring state. sound.target added to systemd in v18: https://cgit.freedesktop.org/systemd/systemd/commit/?id=88dfa2938af Simplify dependencies: - After=alsa-state.service is not needed because both units test for @daemonswitch@ with opposite outcomes. - After=sysinit.target is automatically added by systemd. First proposed by Tom Yan. Signed-off-by: Chris Mayo <aklhfex@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 lines
376 B
SYSTEMD
13 lines
376 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)
|
|
ConditionPathExists=@daemonswitch@
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=-@sbindir@/alsactl -s -n 19 -c rdaemon
|
|
ExecStop=-@sbindir@/alsactl -s kill save_and_quit
|