@wastedfluid

Sorry, I should have named the info text  "80alsa_restart".
As I described I put it into "/etc/pm-utils/sleep.d".

It has to be executable, so do: "chmod 755 /etc/pm-utils/sleep.d/80alsa_restart"
The script does exactly what solutions mentioned in the last post 
(ubuntuforums.org #9) suppose to do).

You can edit this file and put e.g. "alsa force-reload" into it if this
solves you problem. But be aware, the "alsa force-reload" really kills
__all__ applications that are using the sounddriver !!!

On the other side you better should use the official script syntax of
the "pm-utils" scripts, what is decribed in [ubuntuforums.org #10] is a
very very bare "pm-utils" script, has no error handling at all and does
not differ between suspend and resume. So look into the default scripts
located in "/usr/lib/pm-utils/sleep.d" - it is really easy to write one.

REMEMBER: 
1. Scripts in "/etc/pm-utils/sleep.d" will not be overridden on system updates.
2. Scripts in "/etc/pm-utils/sleep.d" have higher priority, so a script in 
there with the same name as in "/usr/lib/pm-utils/sleep.d/" will be executed, 
the default one NOT.

** Attachment added: "/etc/pm-utils/sleep.d/80_alsa_restart - make executable 
with chmod 755"
   http://launchpadlibrarian.net/15545430/80alsa_restart

-- 
[hardy] After suspsend sound isnt working anymore
https://bugs.launchpad.net/bugs/198218
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to