Comment 7 for bug 450652

Revision history for this message
A. Tombol (atombol) wrote :

Daniel, what has been changed in this new alsa-utils? I needed a script which restarted alsa-utils after suspend/resume, it was quite simple:
~$ cat /etc/pm/sleep.d/99sound
#!/bin/sh
# Restarts sound

start ()
{
 exec /etc/init.d/alsa-utils restart
}

stop ()
{
 exec /etc/init.d/alsa-utils stop
}

case "$1" in
 hibernate|suspend) stop;;
 thaw|resume) start;;
 *) exit $NA ;;
esac

and now it blocks suspend, and when i comment out the stop part, it doesn't bring back sound, not even with alsa-utils restart