My apartment experiences frequent power outages. After a power outage there is an about 50% chance of the pi not booting. Unplugging it and plugging it back in usually causes it to boot. Is there anything I can do in software? Like waiting a few seconds after connecting to power for booting or trying again after some time? Are there logs I can look at?

  • 1
    Is a UPS out of the question? – Seamus May 19 '19 at 11:58
  • If there is any way to easily fix it in software I'd very much prefer that. If there is not I will probably have to look into that for this one and a few other devices. – Hans May 19 '19 at 12:00
  • This has presumably happened more than once. What have you been doing to get the Pi booting again? – joan May 19 '19 at 13:25
  • Unplugging it and plugging it back in again. Works most of the time. if not: repeat. – Hans May 19 '19 at 13:42
  • I am thinking of DIYing an UPS for my 12V LiPo Power Bank for Rpi. I found the following discussion interesting. Viability of using a USB power bank as a UPS? - rpi.org Forum 2018jun15 raspberrypi.org/forums/… I might try it later, if the long paragraphs are not boring me to death. – tlfong01 May 20 '19 at 4:45

The Pi should boot when power is applied.

There is a hardware watchdog in the SOC which can be used to reboot of failure.

See https://raspberrypi.stackexchange.com/a/68332/8697 (NOTE the bug mentioned is fixed in Stretch)

  • I set this up. So far it booted every time. – Hans May 20 '19 at 8:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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