Page 1 of 1

Shutting Down/Turning Off

Posted: Fri Jun 22, 2012 3:40 pm
by spamurai
Hello,

Ok so i'm a COMPLETE newbie, but i wanted to check something before i go ahead and do it incase i break it :lol:

I've just logged out of the graphical interface and shut it down. The terminal has now stopped and it reads "System halted"...
I'm assuming its ok to pull out the power cable now(in order to turn it off)?

Sorry again for, what is probably a silly question. 8-)

Re: Shutting Down/Turning Off

Posted: Fri Jun 22, 2012 3:45 pm
by SN
yup - system halted is the right state for pulling the power with no after-effects

Re: Shutting Down/Turning Off

Posted: Fri Jun 22, 2012 3:46 pm
by spamurai
SN wrote:yup - system halted is the right state for pulling the power with no after-effects
Thank you sir :D

Re: Shutting Down/Turning Off

Posted: Fri Jun 22, 2012 4:14 pm
by alexeames
Yes. The Pi doesn't power down by itself. Once it says halted you can pull the plug safely :D

Re: Shutting Down/Turning Off

Posted: Sat Jun 23, 2012 6:22 pm
by Rodney Wertz
If you are using the command line type:

sudo shutdown -h now

unplug after it says the system is halted.

-Rodney

Re: Shutting Down/Turning Off

Posted: Sat Jun 23, 2012 6:48 pm
by spamurai
Rodney Wertz wrote:If you are using the command line type:

sudo shutdown -h now

unplug after it says the system is halted.

-Rodney
Oh cool, thats handy to know. Thanks (:

I'm still looking into a switch I can adapt/use to turn the power off without unplugging it everytime. Proving difficult.

Re: Shutting Down/Turning Off

Posted: Sat Jun 23, 2012 7:07 pm
by alexeames
spamurai wrote:
Rodney Wertz wrote:If you are using the command line type:

sudo shutdown -h now

unplug after it says the system is halted.

-Rodney
Oh cool, thats handy to know. Thanks (:

I'm still looking into a switch I can adapt/use to turn the power off without unplugging it everytime. Proving difficult.
And if you just want to reboot, you can change the -h for an -r
Actually I wrote a short blog post on shutting down properly earlier today (in case you're interested).

Re: Shutting Down/Turning Off

Posted: Tue Jun 26, 2012 9:41 am
by pbezza
I started mineu up to test it but dont have a usb keyboard to plug in. What happens if i disconnect the power now without shutting down?

Re: Shutting Down/Turning Off

Posted: Tue Jun 26, 2012 9:45 am
by RaTTuS
pbezza wrote:I started mineu up to test it but dont have a usb keyboard to plug in. What happens if i disconnect the power now without shutting down?
probably not a lot ...
it depends
it should recover

Re: Shutting Down/Turning Off

Posted: Thu Jun 28, 2012 11:45 pm
by spamurai
alexeames wrote: And if you just want to reboot, you can change the -h for an -r
Actually I wrote a short blog post on shutting down properly earlier today (in case you're interested).
Thats an interesting read. Thanks for posting the link :D

Re: Shutting Down/Turning Off

Posted: Tue Jul 03, 2012 6:17 pm
by Babbage6913
Hi all,

If you add -P to your shutdown command, it powers off, so try:

sudo shutdown -h -P now

I'm using the composit out atm, and with this command tv goes to a blue no signal screen. Not sure what happens with hdmi, so can someone test it and let us know?

Pat

Re: Shutting Down/Turning Off

Posted: Tue Jul 03, 2012 7:27 pm
by Nr90
Babbage6913 wrote:Hi all,

If you add -P to your shutdown command, it powers off, so try:

sudo shutdown -h -P now

I'm using the composit out atm, and with this command tv goes to a blue no signal screen. Not sure what happens with hdmi, so can someone test it and let us know?

Pat
It stays on system halted, does not power down.
Don't think you can power down from software in this case, it might just stop sending the composite signal.

Re: Shutting Down/Turning Off

Posted: Tue Jul 03, 2012 9:44 pm
by alexeames
Nr90 wrote:It stays on system halted, does not power down.
Don't think you can power down from software in this case, it might just stop sending the composite signal.
Correct. In fact the current draw increases slightly on shutdown. :D
Once halted you have to pull the plug to power down (or switch if you have one set up).

Re: Shutting Down/Turning Off

Posted: Tue Jul 03, 2012 10:19 pm
by dom
alexeames wrote: Correct. In fact the current draw increases slightly on shutdown. :D
Once halted you have to pull the plug to power down (or switch if you have one set up).
Actually I pushed an improvement at the weekend where "sudo poweroff" now will try to reduce power.
You should see the Network LEDs go off, 10 flashes on OK LED and a low power state.
I'd be interested. If someone can measure current on 5V line now.

Re: Shutting Down/Turning Off

Posted: Tue Jul 03, 2012 10:37 pm
by alexeames
dom wrote:
alexeames wrote: Correct. In fact the current draw increases slightly on shutdown. :D
Once halted you have to pull the plug to power down (or switch if you have one set up).
Actually I pushed an improvement at the weekend where "sudo poweroff" now will try to reduce power.
You should see the Network LEDs go off, 10 flashes on OK LED and a low power state.
I'd be interested. If someone can measure current on 5V line now.
Is that for both Squeeze and Wheezy?
Would a sudo apt-get update pull that one in in wheezy or does it need an rpi-update?
Once I get that sorted I can do a measurement :D

Re: Shutting Down/Turning Off

Posted: Tue Jul 03, 2012 10:42 pm
by dom
alexeames wrote: Is that for both Squeeze and Wheezy?
Would a sudo apt-get update pull that one in in wheezy or does it need an rpi-update?
Once I get that sorted I can do a measurement :D
You need an rpi-update. I don't believe Wheezy firmware package has been updated.

Re: Shutting Down/Turning Off

Posted: Wed Jul 04, 2012 6:00 pm
by D.E.L.B.
Raspberry Pi does not shut down like the Windows OS does, you have to bear in mind that the Pi runs on a type of Linux OS depending on which one you use (Debian Squeeze, Arch Linux, QtonPi). Windows halts and powers down the physical computer at the same time.

The Pi does not, it needs to be halted AND then shut down by just pulling the power out of the mains of the Pi.

All you have to do is type sudo su while logged into the Pi account or one you have created, and type: halt.

It's as easy as that.

Re: Shutting Down/Turning Off

Posted: Wed Jul 04, 2012 6:14 pm
by Mortimer
It's much easier to describe than that isn't it?

A PC or a Mac has a software controlled power switch, so the machine can turn itself off.
The Raspberry Pi does NOT have a software controlled switch, so you have to remove the power yourself.

Re: Shutting Down/Turning Off

Posted: Wed Jul 04, 2012 6:50 pm
by Nr90
Mortimer wrote:It's much easier to describe than that isn't it?

A PC or a Mac has a software controlled power switch, so the machine can turn itself off.
The Raspberry Pi does NOT have a software controlled switch, so you have to remove the power yourself.
Indeed, Linux on x86 will also power down.

Re: Shutting Down/Turning Off

Posted: Wed Jul 04, 2012 6:58 pm
by alexeames
dom wrote:
alexeames wrote: Correct. In fact the current draw increases slightly on shutdown. :D
Once halted you have to pull the plug to power down (or switch if you have one set up).
Actually I pushed an improvement at the weekend where "sudo poweroff" now will try to reduce power.
You should see the Network LEDs go off, 10 flashes on OK LED and a low power state.
I'd be interested. If someone can measure current on 5V line now.

OK Dom it goes from 5.00V 0.42A at cli idle
sudo halt
screen goes blank after "will now halt". LEDs go off apart from power
5.00-5.02V 0.12A

So that's a big power saving now from 0.42A to 0.12A - nice one. :D
About 2 watts at idle down to about half a watt.

Re: Shutting Down/Turning Off

Posted: Thu Jul 12, 2012 11:55 am
by ashbash
Has anyone actually designed and created a shutdown switch yet? :o

I see a lot of talk on the forums about it but no action. I am planning to put one into the GPIO and poll for the state then initiate a shutdown after neatly closing any running software etc.

Any thoughts/comments.

Ash

See the switch portion of the circuit designed here - http://www.raspberrypi.org/archives/1417