Screen messed up when resumes from suspend

When ubuntu resumes from suspend the screen messed up!, I have installed correct drivers for the graphics card (nVidia geforce 6200 128mb agp) and updated to the latest. This also happens when switching user accounts without login off, I use Ubuntu 12.04 32 bit and my pc is intel p4 3.06Ghz HT 1mb cache LGA,1GB ddr1 400mhz, asus p5pe-vm MB, here are some screenshots. Please help

enter image description hereenter image description here


Suggested steps to get back to a working desktop when you have graphics issues regardless of driver.

The steps I usually try are first CtlAltF1 followed by CtlAltF7. In some cases this will get it working.

After that, if you're using unity-3d(the default) try unity --replace & in a terminal. Basically that means launch a new unity to replace the old one.


Same problem with Ubuntu 16.10, GTX 750 Ti and 4K monitor. killall compiz and waiting for it to respawn fixes it.