alex27riva
Posts: 16
Joined: Mon Aug 04, 2014 1:27 pm

Raspberry Pi B+ doesn't turn off

Mon Aug 18, 2014 8:37 am

Hi, i have a Raspberry Pi B+, with the command "sudo halt" via SSH, my PI shut down, but after a few seconds it restarts...
how can I turn off my PI properly without unplugging the power supply?
Thanks

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Raspberry Pi B+ doesn't turn off

Mon Aug 18, 2014 8:39 am

I believe rpi-update will fix that.

alex27riva
Posts: 16
Joined: Mon Aug 04, 2014 1:27 pm

Re: Raspberry Pi B+ doesn't turn off

Mon Aug 18, 2014 8:56 am

ShiftPlusOne wrote:I believe rpi-update will fix that.
It's a command "built in" or I have to download some files?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Raspberry Pi B+ doesn't turn off

Mon Aug 18, 2014 8:57 am

Depends on how you installed your OS. Just try running 'sudo rpi-update' and if it's not there, we can go about installing it.

_abo_
Posts: 3
Joined: Fri Aug 15, 2014 1:39 pm

Re: Raspberry Pi B+ doesn't turn off

Mon Aug 18, 2014 8:58 am

sudo shutdown -h 0

sudo shutdown -h now
_abo_

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13100
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Raspberry Pi B+ doesn't turn off

Mon Aug 18, 2014 8:59 am

its a built in command.

from the command-line simply give the command:

Code: Select all

sudo rpi-update
and the pi will download and install the latest pi-specific updates.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspberry Pi B+ doesn't turn off

Mon Aug 18, 2014 9:02 am

_abo_ wrote:sudo shutdown -h 0

sudo shutdown -h now
+1

Code: Select all

sudo shutdown -h now
I regularly run on Raspbian Wheezy

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update
sudo reboot
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

alex27riva
Posts: 16
Joined: Mon Aug 04, 2014 1:27 pm

Re: Raspberry Pi B+ doesn't turn off

Mon Aug 18, 2014 9:30 am

fruitoftheloom wrote:
_abo_ wrote:sudo shutdown -h 0

sudo shutdown -h now
+1

Code: Select all

sudo shutdown -h now
I regularly run on Raspbian Wheezy

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update
sudo reboot
Thank you, now "sudo halt" works!
But "rpi-update" upgrades the firmware on sd card or the firmware in the usb/ ethernet chip of the pi?

SteveSpencer
Posts: 357
Joined: Thu Mar 28, 2013 9:19 am
Location: Nottingham, UK

Re: Raspberry Pi B+ doesn't turn off

Mon Aug 18, 2014 9:44 am

On the micro-SD card, so if you have more than one card, you may want to boot that and update it too.
Steve S
No, I can't think of anything funny that won't offend someone if they want it to...

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspberry Pi B+ doesn't turn off

Mon Aug 18, 2014 2:39 pm

alex27riva wrote:But "rpi-update" upgrades the firmware on sd card or the firmware in the usb/ ethernet chip of the pi?
That will only update the firmware in the SD Card residing in the Bootloader Partition (unlike "standard" PC's the Pi has no BIOS Chip, so those functions are in the software)

http://thekandyancode.wordpress.com/201 ... i-boots-up
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Raspberry Pi B+ doesn't turn off

Mon Aug 18, 2014 6:12 pm

fruitoftheloom wrote:I regularly run on Raspbian Wheezy

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update
sudo reboot
To be on the safe side, you ought to do a 'sudo reboot' between running apt-get and rpi-update. On the off-chance that apt-get installs a new kernel, rpi-update will 'break' if you don't reboot (to activate the new kernel) first.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13100
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Raspberry Pi B+ doesn't turn off

Tue Aug 19, 2014 5:22 pm

alex27riva wrote: But "rpi-update" upgrades the firmware on sd card or the firmware in the usb/ ethernet chip of the pi?
The LAN9512/4 chip has no built in firmware.

beta-tester
Posts: 1382
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

Re: Raspberry Pi B+ doesn't turn off

Wed Oct 29, 2014 9:28 am

alex27riva wrote:Hi, i have a Raspberry Pi B+, with the command "sudo halt" via SSH, my PI shut down, but after a few seconds it restarts...
you mean like this?
http://www.youtube.com/watch?v=PV8P-KnGXGg

( found here: http://www.raspberrypi.org/forums/viewt ... 63&t=82188 )
{ I only give negative feedback }
RPi B (256MB), B (512MB), B+, ZeroW; 2B; 3B, 3B+; 4B (4GB)

Return to “Troubleshooting”