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
3e6bb7d1de
commit
fabe06337e
@ -56,8 +56,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…
x
Reference in New Issue
Block a user