Page 1 of 1

RPi B+ automatically restart after a shutdown through SSH

Posted: Thu Aug 28, 2014 2:04 pm
by Gael_G
Hello,
I received my Raspberry Pi B+ today and everything seems to work fine except one thing.
I connect to my RPi via SSH, and to shutdown it safely, I run sudo shutdown -h now (or sudo halt) command. SSH window (I use PuTTY) closes but after a few seconds of waiting, I can reconnect to RPi (it restarts itself), which does not happen when I execute the command directly on the RPi (without SSH), with a screen plugged-in.
Someone would have a solution to this problem?
Thank you in advance for your answers!

Edit: This is a very strange problem, if the RPi is not connected to the display with HDMI, a single contact with a support (here, the antistatic packaging) make it restart. When I hold it in the air, it stays off, someone encountered the same problem?

Re: RPi B+ automatically restart after a shutdown through SS

Posted: Thu Aug 28, 2014 10:59 pm
by FTrevorGowen
Gael_G wrote:Hello,
I received my Raspberry Pi B+ today and everything seems to work fine except one thing.
I connect to my RPi via SSH, and to shutdown it safely, I run sudo shutdown -h now (or sudo halt) command. SSH window (I use PuTTY) closes but after a few seconds of waiting, I can reconnect to RPi (it restarts itself), which does not happen when I execute the command directly on the RPi (without SSH), with a screen plugged-in.
Someone would have a solution to this problem?
Thank you in advance for your answers!
Edit: This is a very strange problem, if the RPi is not connected to the display with HDMI, a single contact with a support (here, the antistatic packaging) make it restart. When I hold it in the air, it stays off, someone encountered the same problem?
This seems similar to an "early B+ issue" discussed in this thread: http://www.raspberrypi.org/forums/viewt ... 28&t=84800
How up-to-date is your installed O.S. (firmware)?
Trev.

Re: RPi B+ automatically restart after a shutdown through SS

Posted: Fri Aug 29, 2014 4:36 pm
by Gael_G
FTrevorGowen wrote:
Gael_G wrote:Hello,
I received my Raspberry Pi B+ today and everything seems to work fine except one thing.
I connect to my RPi via SSH, and to shutdown it safely, I run sudo shutdown -h now (or sudo halt) command. SSH window (I use PuTTY) closes but after a few seconds of waiting, I can reconnect to RPi (it restarts itself), which does not happen when I execute the command directly on the RPi (without SSH), with a screen plugged-in.
Someone would have a solution to this problem?
Thank you in advance for your answers!
Edit: This is a very strange problem, if the RPi is not connected to the display with HDMI, a single contact with a support (here, the antistatic packaging) make it restart. When I hold it in the air, it stays off, someone encountered the same problem?
This seems similar to an "early B+ issue" discussed in this thread: http://www.raspberrypi.org/forums/viewt ... 28&t=84800
How up-to-date is your installed O.S. (firmware)?
Trev.
Thank you for your reply,
Sure, I had seen this thread, so I made all the recommended updates, but nothing to do, if the RPi + B is close to a surface (below), it restarts automatically, the only solutions that I 've found to stop it are:
- Connect to a monitor with HDMI
- Keep it away from any surface
I did a test: I ran the "sudo halt" command via SSH, then I kept the RPi away from the box. When I try to put it again (the card does not even touch the bottom of the case!) : it reboots...
I can't even leave it in a box if I want to shutdown it!
Thank you in advance for your answer.

Re: RPi B+ automatically restart after a shutdown through SS

Posted: Fri Aug 29, 2014 5:39 pm
by klricks
sudo rpi-update fixed that problem on my B+

Try this instead of sudo halt:
sudo shutdown -h now

Re: RPi B+ automatically restart after a shutdown through SS

Posted: Fri Aug 29, 2014 5:46 pm
by Gael_G
klricks wrote:sudo rpi-update fixed that problem on my B+

Try this instead of sudo halt:
sudo shutdown -h now
Thanks for your reply, I already tried that, my B+ is up-to-date and all is working fine except that problem : I can't shutdown it except when I connect a screen with HDMI or when I hold it away from a surface...

Re: RPi B+ automatically restart after a shutdown through SS

Posted: Fri Aug 29, 2014 6:08 pm
by Gael_G
Stupid question: is that the steel case of my computer can interfere with the RPi if I put it on? (the RPi is protected with a cardboard box)
I ask this because if I move the RPi away from the computer case, it no longer reboots.
Reassure me, am I the only one to have problems as strange?

Edit: Nevermind, I moved the RPi, it didn't restart, everything seemed ok and by moving it slightly, it restarts ... What can I do?

Re: RPi B+ automatically restart after a shutdown through SS

Posted: Fri Aug 29, 2014 7:42 pm
by jojopi
Gael_G wrote:I made all the recommended updates
my B+ is up-to-date
Are you sure? The fix for this issue went into bootcode.bin. If you are using NOOBS, the active copy of bootcode.bin is the one in the NOOBS recovery partition, not the Raspbian boot partition. As far as I know, neither apt-get nor rpi-update will affect this.

So, if using NOOBS, you may need:

Code: Select all

sudo mount /dev/mmcblk0p1 /mnt
sudo cp /boot/bootcode.bin /mnt/
sync
sudo reboot

Re: RPi B+ automatically restart after a shutdown through SS

Posted: Fri Aug 29, 2014 8:08 pm
by Gael_G
jojopi wrote:
Gael_G wrote:I made all the recommended updates
my B+ is up-to-date
Are you sure? The fix for this issue went into bootcode.bin. If you are using NOOBS, the active copy of bootcode.bin is the one in the NOOBS recovery partition, not the Raspbian boot partition. As far as I know, neither apt-get nor rpi-update will affect this.

So, if using NOOBS, you may need:

Code: Select all

sudo mount /dev/mmcblk0p1 /mnt
sudo cp /boot/bootcode.bin /mnt/
sync
Thank you so much! It seems to work! Indeed, I used NOOBS because it seemed convenient and easy to use. It would be nice NOOBS automatically handles the synchronization of updates.
Thank you again, I will return to you if the problem come back!
Out of curiosity, would you explain to me what was the source of the problem?

Re: RPi B+ automatically restart after a shutdown through SS

Posted: Wed Oct 29, 2014 9:04 am
by Gaurav Harchwani
I am dealing with the same problem now.My B+ is upto date and i dnt knw suddenly frm nowhere how this started.Its the problem only when i shutdown frm ssh.