Comment 29 for bug 197209

Dave:

The script you attached on 2008-05-01 (25-compiz-stop.sh) seems to have fixed the problem. I have suspended and resumed greater than 15 times without a hiccup. Interestingly enough, fusion-icon seemed to cause problems, so I simply removed it and now things seem to be working perfectly. I don't have to reload compiz or anything. Thanks so much for your contribution; I really really appreciate it.

For anyone else, here are the commands (assuming you downloaded the script into your home directory):

chmod +x ~/25-compiz-stop.sh
sudo cp ~/25-compiz-stop.sh /etc/acpi/suspend.d/25-compiz-stop.sh

You may or may not have to restart after running these. I do not know.