Comment 100 for bug 118605

Revision history for this message
jacob019 (a-launchpad-jacobstoner-com) wrote :

My compiz.real locks up with a black screen any time I switch virtual terminals or try to suspend. Nothing mentioned worked for me. I've created a workaround which is working very well.

1. I've created a modified fusion-icon. Download it here:
http://www.jacobstoner.com/fusion-hacked.tar.gz
2. Add this like to your /etc/sudoers (your user account should be able to run sudo fgconsole without a password)
ALL ALL=NOPASSWD: ALL fgconsole
3. Add this line to the top of /usr/sbin/pm-suspend (under the comments):
killall -9 compiz.real

install the modified fusion-icon by extracting, opening the directory and running:
sudo make install

The modifications will only work with the GTK interface. So if you're using KDE you'll probably need to force GTK by altering the code.

The modifications will monitor your active virtual terminal, kill it as needed, and relaunch as needed.
It will also relaunch compiz after 5 seconds if it dies, this helps with the restore after a suspend.

I am using gnome and debian. I'd be happy to modify it if someone needs any help for their particular setup. As far as I'm concerned these modifications will make a fine permanent solution.