On Monday 12 February 2007, Carlos E. R. wrote:
Obviously, the service has not been restarted, but it was left in memory, thus the error on wake up. Why? How to force it to be stopped and restarted with suspend/wakeup?
You might be able to force a restart by replicating one of the scripts in /etc/pm/hooks/ Simply having a script there that knows how to do what you do manually seems to do the trick. You can copy one of the existing scripts, change the names to protect the guilty and file it with a leading number to indicate a rough order. I was having problems with sound not working upon resume and this little script seems to have fixed it for me. I suspect something similar might work for you. This one has no shutdown logic, only resume logic. Sample script: Remember to chmod 755 /etc/pm/hooks/##YourScriptName Script starts below #!/bin/bash # # Hack by John Andersen jsa@pen.homeip.net # mostly taken from the powersave project # Probably way more brute force than is needed. ############################################################# # Trigger alsasound upon resume, needed on some intel # high definition audio systems or any other time you find # alsa now working upon resume. # kick-alsa() { /etc/init.d/alsasound restart } case $1 in thaw|resume) kick-alsa ;; esac exit 0 -- _____________________________________ John Andersen