LucidEye
Posts: 83
Joined: Sun Aug 04, 2013 2:20 pm

How do I completely exit from teh GUI in Raspbian?

Sat Aug 31, 2013 9:31 pm

I know this may seem like a dumb question to some, but to those of us who are somewhat new to these Pi distros this kind of thing can be very frustrating...

I am trying to run the game emulator "emulationstation". Any time I run it ti tells me that X is still running and I need to kill X... but I have no idea how to kill X and none of the methods I have found on Google work at all.

I would like to know how exactly do I completely exit from the LXDE GUI in raspbian and get back to a command prompt and also kill X?

I have tried logging out from LXDE, but that no longer drops me to a command prompt... it now takes me to what looks like a DE manager login screen. If I remember right it used to just exit to the command prompt, but after the latest update it no longer does that... anyone know why?
I have tried "ctrl+alt+F1", but thathow do i stop the gui in raspbian does not actually exit the GUI... X is still running in the background. I need to stop X from running.

What is the command to kill X and prevent it from auto-starting again?

I have tried "sudo pkill X" but I get errors using that and it doesn't work. I also tried "ctrl+alt+backspace" but that does nothing. I have tried "alt+printscreen+K" that does nothing. I've tried "init 3" and that doesn't work. I've tried "service dm stop" and it can't find the service.

How do you kill x?

LucidEye
Posts: 83
Joined: Sun Aug 04, 2013 2:20 pm

Re: How do I completely exit from teh GUI in Raspbian?

Mon Sep 02, 2013 12:51 am

OK... not the most graceful workaround as I am more often booting into the GUI to do things and only occasionally want to play games.... so there is no way to log out of the GUI and kill X?

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: How do I completely exit from teh GUI in Raspbian?

Mon Sep 02, 2013 1:22 am

To stop it, run this from a terminal window in X

Code: Select all

/etc/init.d/lxdm stop
And to start it back up again

Code: Select all

/etc/init.d/lxdm start
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

Return to “Raspberry Pi OS”