Page 1 of 1


Posted: Sat Jan 04, 2014 10:13 pm
by phree
I know how to start the desktop gui from the command line, but how do you stop the desktop ? I dont mean open a cline window but actually revert to a command line only.

Re: desktop

Posted: Sat Jan 04, 2014 10:22 pm
by Nr90
In the command line:

Code: Select all

pkill x
Or easier: if you run raspi-config and select your keyboard layout, you are asked if you want to set ctrl + alt + backspace to kill the desktop

Re: desktop

Posted: Sat Jan 04, 2014 10:40 pm
by FTrevorGowen
For the raspbian LXDE desktop there's also the logout/exit button on the far right end of the (bottom) task bar (this is different to the similar, larger button on the desktop itself - that provides a "clean shutdown" option instead.)

Re: desktop

Posted: Sun Jan 05, 2014 9:52 am
by phree
Thankyou both.

Re: desktop

Posted: Sun Jan 05, 2014 11:22 am
by Joe Schmoe
There's a thing worth learning here - and that is that Ctrl/Alt/Fn (where n is a number, from 1 to 6, or so) will switch you between "virtual consoles". Many new users don't know this.

So, two ideas/solutions related to the OP, which use virtual console switching:

1) From the GUI (desktop), if you press Ctrl/Alt/F2, you will get to virtual console #2 and it will look for all the world as if you have exited the GUI. This actually should suffice for most people's desire to "kill the desktop". You can then get back to the GUI (which is, in fact, still running), by pressing Ctrl/Alt/F7.

2) Or, if you really do need to kill it, you can press Ctrl/Alt/F1, which switches you to virtual console #1, and you'll see a bunch of messages that are the output from having run "starts" on that console. If you now press Ctrl/C, it will (gently) "crash" the GUI, returning you to the command prompt on that virtual console.