If your PC runs as a home server, a NAS, a Plex box or a remote-access machine, a power cut can leave it switched off until someone presses the power button. Most desktop motherboards have a BIOS setting that controls what happens when mains power comes back, usually called Restore AC Power Loss or Restore after AC Power Loss. This guide explains what the options do, how to find the setting, and why it sometimes doesn't seem to work. It's based on ASUS and MSI official documentation.
What the setting does
ASUS describes Restore AC Power Loss as an option that controls the system's startup behaviour when power is restored. If it's enabled, the motherboard powers the system back on automatically when power returns after a failure. On ASUS boards there are three options, and the default is Power Off:
Power Off: the PC stays off when power returns. You'll need to press the power button.
Power On: the PC boots automatically when power returns.
Last State: the PC returns to the state it was in before the power cut. ASUS says that if the system was on, asleep (S3) or hibernating (S4), it will be on when power returns. If it was shut down (S5), it stays off.
MSI's BIOS user guide for its X570 and B550 motherboards describes the same three choices for Restore after AC Power Loss: Power Off leaves the system off after AC power is restored, Power On boots the system, and Last State restores the previous on or off state.
Power On suits a machine that should always be running. Last State is better if you sometimes shut the PC down on purpose and don't want it to start by itself after a power cut.
How to change it
Restart the PC and enter the BIOS. On MSI boards, MSI's guide says to press the Delete key during start-up; other makers may use a different key. If you're not sure how, our guide to changing the boot order in the BIOS explains how to get into the firmware.
Find the power settings. On ASUS boards, ASUS's example (a ROG MAXIMUS Z790 HERO) uses Advanced Mode > Advanced > APM Configuration > Restore AC Power Loss. On MSI's X570 and B550 boards, MSI's guide puts it under SETTINGS > Advanced > Power Management Setup in Advanced Mode.
Choose Power On or Last State.
Save your changes and exit. The PC will restart.
Names and menus vary between manufacturers and BIOS versions, so if you can't find it, check your motherboard manual for "AC power loss" or "power loss".
Why it doesn't work after a quick flicker
The most common complaint is that the PC doesn't turn itself back on after a very short power cut. ASUS explains that Restore AC Power Loss only works from the full AC-off state (G3). In other words, the board needs to see power fully removed. ASUS recommends testing by turning the power supply switch off and leaving it off for 30 seconds before switching it back on. MSI similarly advises waiting a few seconds before switching AC power back on, and says the time needed depends on the power supply.
For short dips and flickers, a UPS is the more reliable answer, because it's designed to keep the PC powered through them. You can also set up a UPS to shut the PC down safely during a longer outage.
On MSI's X570 and B550 boards, the same Power Management Setup menu also has ErP Ready. MSI says that when ErP Ready is enabled, the system won't support waking from S4 or S5 through USB, PCI and PCIe devices. Bear that in mind if you also use Wake-on-LAN to start the PC remotely from shutdown. MSI's guide also lists System Power Fault Protection, which keeps the system shut down if it detects abnormal voltage input.
If the PC turns on but won't stay on
Restore AC Power Loss only decides whether the PC starts when power returns. If your PC is switching off or restarting on its own while mains power is fine, that's a different problem. Start with our guide to fixing a PC that randomly restarts or shuts down and check whether your PSU is failing.