• subscribe
  • twitter

Switching Gnome On and Off from the Command Line

Gnome Display Manager

What happens when you’re Gnome Display Manager(GDM) crashes? It could happen when playing 3d games or when running an automation software or for some other reason. When it happen you’re keyboard and mouse could get blocked. If you can still get to the command line then the easiest way to affront this issue is restarting the GDM.

To turn off and on again the GDM use these commands that work on Ubuntu and its many derivatives.

sudo /etc/init.d/gdm restart - This command simply restarts gdm

sudo /etc/init.d/gdm stop - This command stop gdm
sudo /etc/init.d/gdm start - This command stars gdm

Note that stopping the GDM shuts down Gnome and all other graphical applications, and takes you to the login screen, where you’ll have insert you’re username and password to get in.


  1. Becks
    11:31 am on February 13th, 2008

    nice tip, rewinding the GDM gets things rolling faster

  2. Sew
    11:33 am on February 13th, 2008

    What about using keyboard short cuts…

  3. Phoppybox
    3:20 am on April 8th, 2009

    mm. really like it 🙂

  4. Donald Livesay
    6:24 pm on October 5th, 2009

    this no longer works in 9.10 can any one held

  5. Donald Livesay
    6:24 pm on October 5th, 2009