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.


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

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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