cyberry
Posts: 3
Joined: Wed Jul 16, 2014 2:13 am

shutdown problem

Wed Jul 16, 2014 2:32 am

I use pi module B and connect it via ssh. As I use command -sudo poweroff-to shutdown my pi, the ssh connection will be cut, but all the led on the board are still on, including ACT and LNK. But my laptop can't find its IP address. Is it normal? Will only the PWR led be on after shutdown? Is my problem possibly caused by some driver program for my sensors as I installed? Thanks for all!

cpc464
Posts: 239
Joined: Tue Jul 08, 2014 5:10 pm
Contact: Website

Re: shutdown problem

Wed Jul 16, 2014 11:15 am

Hi cyberry. That is normal behaviour. The shutdown command does not actually power off the system entirely, it just stops the operating system.

In this situation, you can safely remove the power from the Pi (pull the plug out). To bring up the Pi again, remove the power then attach it again (pull the plug out, wait a couple of seconds, then put it in again). The Pi should then boot normally.

Jim
Unix engineer since 1989

cyberry
Posts: 3
Joined: Wed Jul 16, 2014 2:13 am

Re: shutdown problem

Wed Jul 16, 2014 12:13 pm

cpc464 wrote:Hi cyberry. That is normal behaviour. The shutdown command does not actually power off the system entirely, it just stops the operating system.

In this situation, you can safely remove the power from the Pi (pull the plug out). To bring up the Pi again, remove the power then attach it again (pull the plug out, wait a couple of seconds, then put it in again). The Pi should then boot normally.

Jim
But the first few times I ran this command and all the LED except PWR turned off, probably I misremember :) It's there any commands to power off the system entirely? The flashing ACT LED just make me too nervous to pull the plug out.
Thanks, Jim!

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: shutdown problem

Wed Jul 16, 2014 12:16 pm

The only way to power off completely is to pull the power supply from the wall or pull the microUSB connector from the RPi.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
rpdom
Posts: 17170
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: shutdown problem

Wed Jul 16, 2014 12:19 pm

cpc464 wrote:Hi cyberry. That is normal behaviour. The shutdown command does not actually power off the system entirely, it just stops the operating system.

In this situation, you can safely remove the power from the Pi (pull the plug out). To bring up the Pi again, remove the power then attach it again (pull the plug out, wait a couple of seconds, then put it in again). The Pi should then boot normally.

Jim
Are you sure?

On all my Raspis the network LEDs always go off when I shut them down, and the ACT/OK LED flashes 10 times to signal that shutdown is complete, then goes off.

cpc464
Posts: 239
Joined: Tue Jul 08, 2014 5:10 pm
Contact: Website

Re: shutdown problem

Wed Jul 16, 2014 12:39 pm

I'm sure. The hardware does not contain the technology for a full power off from software.

The command I usually use for shut down is

shurtdown -h 0

(as root). Then wait a bit and pull the plug.
Unix engineer since 1989

cyberry
Posts: 3
Joined: Wed Jul 16, 2014 2:13 am

Re: shutdown problem

Wed Jul 16, 2014 12:48 pm

rpdom wrote:
cpc464 wrote:Hi cyberry. That is normal behaviour. The shutdown command does not actually power off the system entirely, it just stops the operating system.

In this situation, you can safely remove the power from the Pi (pull the plug out). To bring up the Pi again, remove the power then attach it again (pull the plug out, wait a couple of seconds, then put it in again). The Pi should then boot normally.

Jim
Are you sure?

On all my Raspis the network LEDs always go off when I shut them down, and the ACT/OK LED flashes 10 times to signal that shutdown is complete, then goes off.
Just as the first part when reboot it. And this is what I remember.

User avatar
rpdom
Posts: 17170
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: shutdown problem

Wed Jul 16, 2014 12:49 pm

cpc464 wrote:I'm sure. The hardware does not contain the technology for a full power off from software.

The command I usually use for shut down is

shurtdown -h 0

(as root). Then wait a bit and pull the plug.
I know the Power LED will stay on as long as power is connected, but the LAN/USB chip is usually shut down on halt and the LAN LEDs will go out.

(I use "halt", which is the same as "shutdown -h now")

Return to “Beginners”