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:
parent
00e19c91e5
commit
97c74bf050
@ -54,8 +54,9 @@ in
|
|||||||
''
|
''
|
||||||
mkdir -m 0755 -p $(dirname ${soundState})
|
mkdir -m 0755 -p $(dirname ${soundState})
|
||||||
|
|
||||||
# Restore the sound state.
|
# Try to restore the sound state.
|
||||||
${alsaUtils}/sbin/alsactl --ignore -f ${soundState} restore
|
${alsaUtils}/sbin/alsactl --ignore init || true
|
||||||
|
${alsaUtils}/sbin/alsactl --ignore -f ${soundState} restore || true
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postStop =
|
postStop =
|
||||||
|
Loading…
Reference in New Issue
Block a user