Update: I have installed fglrx 8-5 which allowed me to remove some of the chvt hacks that caused flashing. They're still in the enclosed scripts, but commented out. Please uncomment them if you're using an earlier version.
I cleaned up some stylistic things in /etc/pm/sleep.d/00compiz (attached here), and made it ignore any errors when killing the compiz parent process. Now it should work perfectly for users of fusion-icon as well as those launching compiz in other ways, although I've only tested it with fusion-icon.
N.B. you'll need the version of /etc/pm/config.d/00-compiz-stop.sh that I will attach in the next comment, as well.
Update: I have installed fglrx 8-5 which allowed me to remove some of the chvt hacks that caused flashing. They're still in the enclosed scripts, but commented out. Please uncomment them if you're using an earlier version.
I cleaned up some stylistic things in /etc/pm/ sleep.d/ 00compiz (attached here), and made it ignore any errors when killing the compiz parent process. Now it should work perfectly for users of fusion-icon as well as those launching compiz in other ways, although I've only tested it with fusion-icon.
N.B. you'll need the version of /etc/pm/ config. d/00-compiz- stop.sh that I will attach in the next comment, as well.