alsa.nix: initialize the sound card before restoring previously stored settings

The sound card in my ThinkPad won't work unless "init" is run explicitly.
This commit is contained in:
Peter Simons 2012-09-23 22:26:49 +02:00
parent 00e19c91e5
commit 97c74bf050

View File

@ -54,8 +54,9 @@ in
''
mkdir -m 0755 -p $(dirname ${soundState})
# Restore the sound state.
${alsaUtils}/sbin/alsactl --ignore -f ${soundState} restore
# Try to restore the sound state.
${alsaUtils}/sbin/alsactl --ignore init || true
${alsaUtils}/sbin/alsactl --ignore -f ${soundState} restore || true
'';
postStop =