scottnichols
Posts: 18
Joined: Wed Oct 17, 2012 7:28 pm
Location: Upper NY State USA

Wheezy 9-18-2012 shut down procedure

Thu Nov 01, 2012 7:10 pm

Hello
Is their a specific procedure to shutting down the Pi other then log out and then power off system. Should something else be done to save files or other.??
Thank you
Scott

User avatar
billb
Posts: 177
Joined: Wed Sep 19, 2012 10:27 pm

Re: Wheezy 9-18-2012 shut down procedure

Thu Nov 01, 2012 7:12 pm

On the terminal:

Code: Select all

sudo halt

scottnichols
Posts: 18
Joined: Wed Oct 17, 2012 7:28 pm
Location: Upper NY State USA

Re: Wheezy 9-18-2012 shut down procedure

Thu Nov 01, 2012 7:15 pm

billb wrote:On the terminal:

Code: Select all

sudo halt
Thank you billb for the quick response
So it goes like this log out then input sudo hault at the prompt then I can power off correct?
Scott

User avatar
billb
Posts: 177
Joined: Wed Sep 19, 2012 10:27 pm

Re: Wheezy 9-18-2012 shut down procedure

Thu Nov 01, 2012 8:06 pm

scottnichols wrote:So it goes like this log out then input sudo hault at the prompt then I can power off correct?
Right -- you'll see the shutdown procedure going past and the screen will go blank, leaving only the red power led on the Pi -- then you can turn off the power.

User avatar
SN
Posts: 1014
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
Contact: Website

Re: Wheezy 9-18-2012 shut down procedure

Thu Nov 01, 2012 8:32 pm

billb wrote:
scottnichols wrote:So it goes like this log out then input sudo hault at the prompt then I can power off correct?
Right -- you'll see the shutdown procedure going past and the screen will go blank, leaving only the red power led on the Pi -- then you can turn off the power.
erm no.
you can't do a sudo halt if you're not logged in
so when you're ready to shut down your pi, either from the console or remotely logged in over ssh/putty on a logged in session, then you type sudo halt <RETURN>
and you will be logged out a split second after you see some kind of shutdown message
Steve N – binatone mk4->intellivision->zx81->spectrum->cbm64->cpc6128->520stfm->pc->raspi ?

User avatar
alexeames
Forum Moderator
Forum Moderator
Posts: 2869
Joined: Sat Mar 03, 2012 11:57 am
Location: UK
Contact: Website

Re: Wheezy 9-18-2012 shut down procedure

Thu Nov 01, 2012 10:20 pm

SN wrote:
billb wrote:
scottnichols wrote:So it goes like this log out then input sudo hault at the prompt then I can power off correct?
Right -- you'll see the shutdown procedure going past and the screen will go blank, leaving only the red power led on the Pi -- then you can turn off the power.
erm no.
you can't do a sudo halt if you're not logged in
so when you're ready to shut down your pi, either from the console or remotely logged in over ssh/putty on a logged in session, then you type sudo halt <RETURN>
and you will be logged out a split second after you see some kind of shutdown message
I think he meant log out of LXDE, but I may be wrong. :D
Alex Eames RasPi.TV, RasP.iO

User avatar
billb
Posts: 177
Joined: Wed Sep 19, 2012 10:27 pm

Re: Wheezy 9-18-2012 shut down procedure

Thu Nov 01, 2012 11:51 pm

alexeames wrote:I think he meant log out of LXDE
Let's hope so. ;)

User avatar
penguintutor
Posts: 386
Joined: Tue May 08, 2012 9:11 am
Location: UK
Contact: Website

Re: Wheezy 9-18-2012 shut down procedure

Fri Nov 02, 2012 10:18 am

That's one of the anomalies of running a GUI from a text based login.

LXDE (like other window managers) assumes you have come from a graphical login prompt. As such on most systems the Log Out normally returns you to the GUI login prompt (eg lightdm). That is not the case on the Raspberry Pi - where choosing log out from the Raspberry Pi returns you to the shell where you are still logged in.

If you configure the Raspberry Pi to "Boot to Graphical Desktop", then you get additional options to reboot / halt from within LXDE.

Return to “Beginners”