# Automatic Pi reboot after a power loss

**URL:** <https://forum.core-electronics.com.au/t/automatic-pi-reboot-after-a-power-loss/8725>\
**Category:** Raspberry Pi\
**Created:** [2 November 2020 04:44 UTC](https://forum.core-electronics.com.au/t/automatic-pi-reboot-after-a-power-loss/8725 "2020-11-02T04:44:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter92542](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@Peter92542](https://forum.core-electronics.com.au/u/Peter92542)\
**Post date:** [2 November 2020 04:44 UTC](https://forum.core-electronics.com.au/t/automatic-pi-reboot-after-a-power-loss/8725/1 "2020-11-02T04:44:30Z")

</div>

I’m currently running a Pi 3+ Desktop with Pi-Hole, and PiVPN for external access. I would like the Pi to automatically reboot when household power returns after a power loss. Tried to configure watchdog, but without success. Can the PiJuice UPS HAT (or similiar) be configured to start up automatically? Or is there another alternative? Remote booting possible? POE HAT? Thanks.

---

<div class="post-metadata">

**Author:** ![Bryce](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/bryce/32/3631_2.png) [@Bryce](https://forum.core-electronics.com.au/u/Bryce)\
**Post date:** [2 November 2020 23:29 UTC](https://forum.core-electronics.com.au/t/automatic-pi-reboot-after-a-power-loss/8725/2 "2020-11-02T23:29:12Z")

</div>

Hey Peter,

I’m not sure about whether you’d be able to have the Pi auto-reboot when the power is cut then restored, although if you take a look at the two forums below, you may be able to set up an auto reboot every so often and use one of the battery pack hats to keep the Pi running through outages.

> [@Raspberry Pi UPS HAT (DFR0494)](https://forum.core-electronics.com.au/t/raspberry-pi-ups-hat-dfr0494/5277/17):
>
> Hi Everyone, Came across this link. Leaving it here in case it’s handy for someone in future slight_smile Regards, Oliver Support | Core Electronics

[https://www.raspberrypi.org/forums/viewtopic.php?t=126106](https://www.raspberrypi.org/forums/viewtopic.php?t=126106)

Have a great day!

Bryce  
Core Electronics | Support

---

<div class="post-metadata">

**Author:** ![Peter92542](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@Peter92542](https://forum.core-electronics.com.au/u/Peter92542)\
**Post date:** [2 November 2020 23:42 UTC](https://forum.core-electronics.com.au/t/automatic-pi-reboot-after-a-power-loss/8725/3 "2020-11-02T23:42:40Z")

</div>

Thanks Bryce. I shall follow them up, and do a bit more research. Cheers, Peter.

---

<div class="post-metadata">

**Author:** ![Bryce](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/bryce/32/3631_2.png) [@Bryce](https://forum.core-electronics.com.au/u/Bryce)\
**Post date:** [3 November 2020 00:02 UTC](https://forum.core-electronics.com.au/t/automatic-pi-reboot-after-a-power-loss/8725/4 "2020-11-03T00:02:09Z")

</div>

You’re welcome Peter,

Make sure to put up a post here if you are able to figure it out or if you have any questions about it. It’ll be extremely useful for people that’re looking for that solution. Have a great day!

Bryce  
Core Electronics | Support

---

<div class="post-metadata">

**Author:** ![Mitchell](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/mitchell/32/3564_2.png) [@Mitchell](https://forum.core-electronics.com.au/u/Mitchell)\
**Post date:** [3 November 2020 00:37 UTC](https://forum.core-electronics.com.au/t/automatic-pi-reboot-after-a-power-loss/8725/5 "2020-11-03T00:37:25Z")

</div>

Hi Peter,

Like Bryce, I couldn’t find anything on rebooting the pi when power is restored, but potentially there may be a setting in this [guide](https://github.com/PiSupply/PiJuice/tree/master/Software) that may help you out. Specifically under the heading **System Task Menu**. You may be able to get a voltage change or charge change to initiate a restart.
