Red Hat Bugzilla – Bug 21394
apmscript unloads sound module on resume instead of suspend
Last modified: 2007-04-18 12:30:03 EDT
/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.