How to turn on r.Pi after shutdown?

13 posts
by koci » Fri Apr 05, 2013 7:02 pm
I finally got my Pi and tried it with raspbmc, and openelec on two separate cards.
Within each of those, there is a Reboot, and a shutdown button, and they both work fine.

My question is, once it has completed shutdown, how do you turn it back on?
I essentially just unplug the power, and plug it back on to get the pi to turn on.
Is that the normal way or might that mess up the SD card?
I see things on the forums how you can reboot or shutdown remotely with SSH, but nothing on how to turn it back on after shutdown.
Please note that I do not want to reboot, I just want to shut it down for the night, and turn it on next day.

Posts: 2
Joined: Fri Apr 05, 2013 6:55 pm
by pjc123 » Fri Apr 05, 2013 8:56 pm
Yes, you just pull the plug once shutdown is complete, and re-insert it to start the boot process again. The critical thing is to make sure that the shutdown procedure is complete, especially the last few lines where the file systems are unmounted. As long as you do that, you will be OK. Rather than wearing out or breaking the micro-usb plug or receptacle, I have my pi connected to a power strip with an on/off button.
My Raspberry Pi Project Page:
Posts: 911
Joined: Thu Mar 29, 2012 3:37 pm
by Joe Schmoe » Fri Apr 05, 2013 10:18 pm
I have a vague memory of there being a way to power it on (from the "off but still plugged in" state). I think you short some pair of pins - in P5 or something like that.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm
by rpdom » Sat Apr 06, 2013 5:05 am
Joe Schmoe wrote:I have a vague memory of there being a way to power it on (from the "off but still plugged in" state). I think you short some pair of pins - in P5 or something like that.

From shutdown you can briefly short pins 5 and 6 on P1 to cause a restart.
User avatar
Posts: 11024
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK
by koci » Sat Apr 06, 2013 12:55 pm
Thank you guys.
No wonder I could not find anything about how to turn it on.
I have the r.Pi plugged in a Kindle USB charger, so I just disconnect the usb cable from the wall charger (not from the pi itself), so it should not wear out the micro-USB port on the pi.

Maybe I will buy one of those wall plugs with a on/off switch.

Thanks for your answers.
Posts: 2
Joined: Fri Apr 05, 2013 6:55 pm
by Casalor » Mon Mar 17, 2014 2:14 pm
Sorry for the thread necromancy - and I bet it's answered more fully elsewhere - but I sort of stumbled on the solution to this over the weekend.

I've built an internet radio where one of the buttons shorts pins 5 and 6 initiates a 'sudo shutdown -h now' command. This is all well and good (and works) but I found to my surprise that it also restarted the pi once it had been halted. This is on a Rev 1 board.

A happy accident indeed.
User avatar
Posts: 67
Joined: Wed Feb 15, 2012 11:14 am
Location: Nantwich, UK
by mahjongg » Mon Mar 17, 2014 10:40 pm
The (revision 2) PI has a reset header, (P6) shorting it will reset the PI, and will take it out of shutdown.
User avatar
Forum Moderator
Forum Moderator
Posts: 9292
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands
by Enkidu » Wed Jan 28, 2015 11:30 pm
Posts: 1
Joined: Wed Jan 28, 2015 10:37 pm
by expandables » Thu Jan 29, 2015 12:14 am
Enkidu wrote:this is what you need to do ... spberry-pi

Can this work with the model b+?
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.
User avatar
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson
by klricks » Thu Jan 29, 2015 1:48 am
expandables wrote:
Enkidu wrote:this is what you need to do ... spberry-pi

Can this work with the model b+?

Yes the pin holes are near the LED's and are labeled RUN.
Go here for my RPi writeup. Basic config, Serial Port add-on etc: Click web icon on right side --->
Posts: 4478
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
by claggierk » Fri Nov 13, 2015 2:16 pm
So far, I am aware of only two ways to "turn on" the Raspberry Pi:
1) disconnect the Raspberry Pi from power, then restore power
2) Add a "reset" switch as you described and press the "reset" switch while the Raspberry Pi is off (but still connected to power)

I can turn off the Raspberry Pi safely by responding to a button in software (issuing whatever bash command I would like to issue). I want to know if it is possible to have a "turn on" button. Below is a description:
- Raspberry Pi is off; Press the "turn on" button; Raspberry Pi turns on
- Raspberry Pi is on; Press the "turn on" button; Raspberry Pi does absolutely nothing

Any ideas? Is there some way to use the "turn on" behavior you discovered coupled with the "reset" functionality to effectively have a "turn on" behavior alone (without the "reset")?
Posts: 4
Joined: Fri Sep 12, 2014 9:11 pm
by gordon77 » Fri Nov 13, 2015 3:50 pm
If you aren't using GPIO pins 5&6, eg an RTC or other I2C device, then connect a switch between pins 5 & 6.

It will restart the Pi but not shut it down if running.

(Remember never to set pin 5 as an output or presumably enable I2C, or maybe fit a resistor in series just in case.)
Posts: 2907
Joined: Sun Aug 05, 2012 3:12 pm
by DougieLawson » Fri Nov 13, 2015 5:50 pm
If you want to do it in a controlled way you need an external processor. The WittyPi seems to be the best of breed for add-on boards to control your system. It includes an RTC so startups and shutdowns can be done on a timed/wall clock schedule.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.
User avatar
Posts: 28442
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK