2026-11-23
Raspberry Pi 5 Won't Power Back On After a Power Cut? The PoE and PSU Restore Problem
If your Raspberry Pi 5 stays dark after a power outage despite being on PoE, the most likely cause is a conflict between the PoE HAT and a USB-C wall PSU connected at the same time — the two power sources race on restore, and the Pi loses. The fix is straightforward: pick one power source, configure the EEPROM, and optionally put a UPS upstream.
What Actually Happens (and How I Found It)
My Raspberry Pi 5 (16 GB, Raspberry Pi OS / Debian 13 trixie) sits in a 10-inch 6U Lab Rax rack, powered exclusively by PoE from a UniFi USW Flex 2.5G 8 PoE switch. It runs 13 always-on services — trading bots, a content pipeline, monitoring, a dashboard — so an unexpected reboot that doesn't actually reboot is a real problem.
Early on I had both the PoE+ HAT and the official USB-C PSU connected. The logic was belt-and-braces: if the switch reboots, the wall PSU keeps the Pi alive. In practice, when a breaker tripped and mains returned, the Pi stayed off. The two sources raced on restore and the Pi never cleanly powered up. It took pulling the USB-C cable and cycling PoE (unplug the Ethernet cable, re-insert) to bring it back.
The fix was simple: remove the wall PSU entirely and run PoE only. Since then, pulling the network cable and re-inserting it boots the Pi by itself, every time. No more dead Pi after a power cut.
Why the Dual-Source Race Happens
The Pi 5's power path isn't designed for two independent supplies fighting to assert 5 V on the same rail. The PoE HAT's DC-DC converter and the USB-C PD negotiation operate on different timescales. When mains returns simultaneously to both, the PMIC can see an indeterminate state — voltage present but not stable enough to trigger a clean boot. The Pi doesn't crash; it simply never starts.
This isn't unique to any particular PoE HAT. Any setup where USB-C and PoE restore at the same instant can exhibit it. The Pi 5's PMIC is more complex than the Pi 4's, and anecdotally more sensitive to this race.
The EEPROM Power-On Setting
Even on a single power source, the Pi 5 defaults to staying off after power loss — it waits for a button press or a power cycle. You need to change the EEPROM configuration:
sudo rpi-eeprom-config --edit
Find or add:
POWER_OFF_ON_HALT=0
WAKE_ON_GPIO=0
The critical line is:
POWER_ON_WHEN_VBUS=1
This tells the PMIC: "When you see voltage appear on the power input, boot immediately." Save, reboot, and the Pi will now auto-start whenever power is applied — whether that's PoE coming up or a USB-C PSU being plugged in.
Note: If you're on PoE only, POWER_ON_WHEN_VBUS=1 means the Pi boots the moment the switch port comes up. That's exactly what you want for a headless server.
PoE-Only: What I Measured
With the wall PSU removed and the Pi running purely from PoE via the switch, I measured 5.16 V on the 5 V rail. No undervoltage warnings, no throttle flags. The Pi idles at 50.7 °C and reaches only 54.0 °C under sustained CPU load. That's with the PoE HAT's own fan running — not the active cooler.
For context, the Fanxiang S501Q 512 GB NVMe (via the M.2 HAT at PCIe gen 2) delivers 452 MB/s sequential read and 431 MB/s sequential write, with 104,978 random read IOPS at QD32. The 7-Zip benchmark scores 4,463 MIPS single-threaded and 16,011 MIPS across all four Cortex-A76 cores. None of those numbers change between PoE-only and dual-source power — the problem isn't performance, it's whether the Pi starts at all.
Protecting the Upstream: UPS Placement
The smarter long-term solution is to put a UPS before the switch, not before the Pi. If the switch stays up, PoE stays up, and the Pi never loses power in the first place.
A CyberPower BR1200ELCD UPS or similar line-interactive unit upstream of the switch protects everything the switch powers: the Pi, any access points (my rack includes a UniFi U7 Pro XG on PoE from the same switch), and the switch's own brain. The manufacturer spec-sheet maximums for my rack's contents — UCG Fiber at 29.4 W, the Flex switch at 17 W own draw, U7 Pro XG at 22 W — suggest a modest total, but I haven't measured actual wall draw, so I can't give a real runtime estimate. Size the UPS to your own measured load.
My rack also contains a UniFi U5G for 5G cellular WAN failover to the Cloud Gateway Fiber. It's powered by 802.3af PoE from the switch, so the same UPS covers it. I haven't measured its speeds, failover time, or signal — published specs list 220 Mbps down / 120 Mbps up on 5G and 195 Mbps on LTE fallback, but real-world results vary with carrier and signal. One US reviewer reported roughly 30–85 Mbps down on Google Fi indoors. The point for this article: it's one more device that benefits from the switch staying alive through a power cut.
The Physical Setup
The Pi sits in a 3D-printed rack mount that holds three Raspberry Pis, printed in PETG on a Bambu Lab P1S from a community design downloaded from Bambu Lab MakerWorld. The M720q (my Proxmox host, which nightly backs up the Pi) sits in its own 3D-printed rack mount, also a MakerWorld community design in PETG. Both mounts are assembled with nuts and bolts — no heat-set inserts. M3/M4 Metal Screw & Pin Assortment Box – 500 Pieces with Spanners PETG is commonly recommended for rack mounts because it handles the moderate heat inside an enclosed 10-inch rack better than PLA, though I didn't do any formal heat or strength testing on these prints.
Step-by-Step Fix
- Decide on one power source. For a rack with a PoE switch, PoE-only is cleaner. Remove the USB-C PSU.
- Set the EEPROM.
POWER_ON_WHEN_VBUS=1so the Pi boots when PoE voltage appears. - Test it. Pull the Ethernet cable, wait five seconds, re-insert. The Pi should boot unattended.
- Add a UPS upstream of the switch, not on the Pi itself. This prevents the whole scenario.
- Monitor from outside. If you run critical services on the Pi, a nightly backup to another machine (mine goes to the M720q's Proxmox host, and that backup has been restore-tested) means a dead SD card or corrupted NVMe isn't catastrophic.
Who Should NOT Do This
If your Pi must survive a switch reboot or switch firmware update (which cycles all PoE ports), PoE-only means it goes down with the switch. In that case, USB-C PSU only — no PoE HAT installed — is the safer choice, and you set the same EEPROM flag. The key is one source, not which one.
Also, if you're running from an SD card rather than NVMe, repeated unclean shutdowns from power cuts will eventually corrupt the filesystem regardless of boot configuration. A UPS or at least an overlayfs read-only root is worth considering.
Verdict
The Pi 5's dual-power-source race is a real and common failure mode — remove one source, set POWER_ON_WHEN_VBUS=1 in the EEPROM, and put a UPS before the switch. My Pi has been on PoE-only since I found this, drawing a stable 5.16 V with no throttling, and it boots unattended every time power returns.