Comment 21 for bug 95940

Revision history for this message
James Hogarth (jameshogarth) wrote :

I'm finding I'm losing sound after suspending on Hardy Beta and have not been able to restart it until finding this thread. I also need to kill pulseaudio to unload the modules so I use the script below which combines most things here. Thanks for all the help and suggestions - not sure I yet understand what is causing my problem but a good workaround...

alsa-base/hardy uptodate 1.0.16-0ubuntu4
kernel - 2.6.24-14-generic #1 SMP
-------------------------
#!/bin/sh

#Kill all processes using sound and restart them

ps ax | grep mixer_applet2 | grep -v grep | cut -d" " -f 1 | xargs kill -HUP

killall pulseaudio

rm /var/lib/alsa/asound.state

rmmod snd-hda-intel

modprobe snd-hda-intel

pulseaudio &