Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Occasionally, with Ubuntu 12.04, I get a blank screen when I resume from suspend. I can see the mouse cursor, but that's all.

I can get TTY terminals, so is there a way to restart the graphical front-end from the command line? I know this was possible back with Gnome, but am not sure with Unity.

share|improve this question
You might wish to log into launchpad and mark that this bug affects you too, if you haven't already: – David Edwards Jun 15 '12 at 10:58

GDM is replaced by lightdm. If you haven't changed it manually.


sudo stop lightdm


sudo start lightdm

As far as I can remember, it has restart also. Try with following


sudo restart lightdm

share|improve this answer
Thanks - that seems to be what I was looking for. I'll try it next time the problem emerges – Ian Jun 15 '12 at 10:18
If anybody finds this with a similar problem, Web-E's solution works perfectly – Ian Sep 3 '12 at 17:53
Ups, it destroys my settings. Is there another command to reset by maintaining my settings? Or is there anything I can do to load my settings back? – armanke13 Dec 7 '13 at 21:22
unity --reset is the command that causes resetting all values. Try without it. :) – Web-E Dec 8 '13 at 7:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.