/etc/sysconfig/apm-scripts/apmscript unloads the sound modules on resume.
This leads to a crash on a Dell Latitude CPx J650GT. Unloading the module
on suspend fixes this.
I made a quick patch which can be e-mailed upon request.
Created attachment 5749 [details]
quick and dirty patch
Fixed in 3.0final-26.
I've had to redo large parts of your patch because it introduces a couple of
nice ways to get a root shell...
SOUNDUSER=`perl -e 's/\000/\n/g;' -p /proc/$SOUNDPID/environ|grep USER=|cut -d=
Applications can overwrite the USER variable, or just set an AUSER variable that
would be matched first, so you could "re"start any program as root.