Compiz Crash – How to Recover When Compiz Crashes

compizgdmxorg

Often compiz will crash and leave the keyboard useless. Normally I drop to the console and restart GDM.

Is there a solution where I can start Compiz back up without losing everything in the current session?

compiz --replace &

That's how I usually restart Compiz when it crashes and I can still use the keyboard.

(If you have a tip on how to prevent Compiz from crashing I've posted here https://askubuntu.com/questions/42096/fresh-install-of-11-04×64-displaycompiz-constantly-failing

??? – Am I right that Compiz is failing or is it X?

Best Answer

If it's "just" a compiz crash, you should be able to restore it from one of the TTYs, even if the keyboard isn't working in X.

  1. hit ctrl+alt+F1 to get to the console

  2. Login with your usual username and password

  3. Type the following:

    DISPLAY=:0.0 compiz --replace &

  4. If compiz is still really hanging, you may need to kill it with more authority and try again:

    killall -9 compiz

    DISPLAY=:0.0 compiz --replace &

  5. Then hit Alt+Left Arrow until you get to the screen where X is running.

Related Question