I got a brand-new Mac Mini and it came with an unexpected feature – it would reboot itself every night with no way to stop it. I called Apple support and did what they suggested: running hardware test, checking energy settings etc.; but in the end, the problem was still there. So I did some research and saw this in the “About This Mac” menu:
To see this in your machine, go to “ → About This Mac → System Report” and select “Power.” In my case, “AutoPowerOff Enabled” was set to “1”; “AutoPowerOff Delay” was set to “14400” seconds (or 4 hours). Essentially, these settings meant my Mac would reboot whenever it’s been idle for over 4 hours.
After calling Apple’s 2nd Tier Support, I finally got the problem fixed. Here is the solution:
- Open Terminal
- Type the following command at the prompt and press Enter. You’ll be asked to enter your password.
sudo pmset -a autopoweroff 0
- Root your computer
That’s it. No more mystery reboots.