* The ALSA job shouldn't be started until udevtrigger has finished.

Otherwise the sound card drivers may not have been loaded yet, and
  restoring the mixer settings will fail.  Also, since the ALSA job
  itself will fail, it won't save the mixer settings on shutdown.

svn path=/nixos/trunk/; revision=23245
This commit is contained in:
Eelco Dolstra 2010-08-19 11:55:52 +00:00
parent e87a298c33
commit c55f496c52

View File

@ -53,14 +53,13 @@ in
};
jobs.alsa =
{ startOn = "started udev";
{ startOn = "stopped udevtrigger";
preStart =
''
mkdir -m 0755 -p $(dirname ${soundState})
# Load some additional modules.
${optionalString config.sound.enableOSSEmulation
''
for mod in snd_pcm_oss; do
@ -70,7 +69,7 @@ in
}
# Restore the sound state.
${alsaUtils}/sbin/alsactl -f ${soundState} restore
${alsaUtils}/sbin/alsactl -f ${soundState} restore || true
'';
postStop =