Well, a picture is work 1k words:
Looks bad, huh?
I am using the 331-updates latest 331.67 drivers from NVidia's website on a Dell Latitude e6400. Everything else is up-to-date. This only happens when I resume from sleep, or I switch to a VT and back. It also doesn't ALWAYS happen, which I find odd. Graphics Card: Nvidia Quadro NVS160M
UPDATE AFTER TESTING: This problem only exists with KDE (specifically QT). I can go into Unity or Mint or any non QT-based GUI and it works perfectly with no resume errors.
UPDATE: This only happens when I use KWin (and KDE). I have upgraded to 14.04 and the problem is not occurring as frequently. Also, sometimes this effect doesn't happen, but instead the top menu bar simply goes out of focus with the rest of the screen goes blank.
This exact same bug was happening to me recently. Dell XPS M1330 with NVIDIA 8400M GS on Ubuntu Saucy with KDE from kubuntu-ppa/backports.
I found that simply toggling Desktop Effects off and on fixed it. The default key is
Alt+Shift+F12
. Also, if you leave Desktop Effects off, it doesn't happen. I usually leave them off because it lets my laptop run a little cooler.Hopefully future upgrades to KDE or the driver will fix this. I haven't upgraded this laptop to Trusty yet.
This for some reason no longer works!
I finally managed to figure it out by following the instructions of a few guides. I'm not sure what part was the magic bullet though.
nvidia-settings -a InitialPixmapPlacement=2 -a GlyphCache=1
pm-suspend --quirk-save-pci
to test sleep and restore. If it works successfully,pm-suspend --quirk-save-pci
to the/var/cache/pm-utils/last_known_working.quirkdb
file.Stuff to add to xorg.conf: