Possible Duplicate:
What should I do when Ubuntu freezes?
I have a laptop with Ubuntu Desktop 12.04 on it. About 1/4 of the times I open the lid of the laptop, the screen will turn on, I'll be able to move my mouse around, but clicking/typing is unresponsive. The only way to get out of this is to do a hard restart (hold power button down). Then, sometimes Ubuntu won't load after that, and will tell me that it's restarting (see this question).