Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

While SSHing into my Raspberry Pi, I got distracted. I attempted to shut down my PC using sudo shutdown now, but because I was still connected, I accidentally shut down the Raspberry Pi instead. This closed the connection and left me unable to connect to it.

I was able to restart it by calling someone who was near the Raspberry Pi to pull the plug out and back in.

Is there a way I can restart it remotely without having to depend on someone to be physically present?

share|improve this question
    
You can probably disable shutdown, and only allow restart. For wheezy raspian, something like this but use "no" everywhere, and remove the restart action: superuser.com/a/461996/27510 –  ergosys Dec 18 '12 at 5:49
add comment

2 Answers 2

up vote 2 down vote accepted

In short, the answer is no. You could use something like wake-on-lan, but this isn't supported by the Pi.

share|improve this answer
2  
Without additional hardware? No. However, if you are creative and willing to get your hands dirty, you could rig up a small circuit that uses the output from a GPIO pin (use an alias that first writes to the pin, waits, and then initializes the real restart sequence), uses that to charge a capacitor, which controls a timing circuit connected to a relay controlling the power source of the Pi. –  InkBlend Dec 17 '12 at 1:29
    
@InkBlend Way beyond me; very innovative! –  Munkeh Dec 17 '12 at 1:32
    
Maybe two pi boards rigged so one can power cycle the other if needed :) –  XTL Dec 17 '12 at 8:28
add comment

I know this is an old question, but I just came across it. I did this using the P6 pin holes on the pi just to the left of the dvi plug. That is the reset switch. You can solder a dual pin connector on these holes and plug a pushbutton swith in. When the pi is shutdown, you can hit the switch and it will start back up.

the disclaimer is you will void the warranty if you solder on the board. I stole my pushbutton switch from an old computer and mounted it onto the plastic pi case.

share|improve this answer
    
I liked doing it this way because you're not canabalizing GPIO pins –  Impalanator Feb 20 at 19:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.