When i close my laptop screen and open it, the screen stays black, but i can see the cursor. I can switch to the other ttys using ctrl+alt+F1-F6, so computer isn't l0cked out or unresponsive, the gui just doesn't show anythimg other than the cursor. Does any one know the problem could be?
Edit: log/command output
From the symptoms, and having Intel video, it sounds like you're hitting bug 966744: "[i965] Resume from suspend leaves me with black screen..."
Update: a fix has been found! :-)
It is in Quantal and working for. For 12.04, it's in precise-proposed, as of now, 2012/10/10. All reports from there are good, too.
Upstream Intel developers are working with Ubuntu devs and users, there. You might be able to help by getting an xtrace. There are instructions in a bug comment here, but full disclosure, I couldn't get them to work. Others did.
Here's an update, from the ubuntu-devel list (the end of this email).
"For 966744, it seems a non-trivial mesa bug. Timo reported it upstream. Already present in precise, but doesn't seem to trigger as often as in quantal. Will need possibily some help from the unity team on that one to workaround it."
Here are the upstream X bug, and kernel bug reports. (Thanks to Launchpad's excellent bug linking.)
I have the same issue and when I go to tty1 (Ctrl+Alt+F1), log in, and run
startx
after logging in I get my full desktop back.I'm not sure why/how it works but seems like a fairly good workaround.