How can i start up automatically after connecting to a power source, Mac mini M4 (2025) with Sequoia 15.4.1. ?

Hi. I want to avoid pressing the start button on my Mac Mini. What can i do to configure it ? Any terminal command ?

I've tried these commands but not working.

  • sudo nvram AutoBoot=%03
  • sudo nvram BootPreference=%03


Mac mini (M4)

Posted on Sep 5, 2025 11:33 AM

Reply
8 replies

Sep 7, 2025 12:57 PM in response to MrHoffman

MrHoffman wrote:

• https://macreports.com/how-to-set-up-automatic-restart-of-your-mac-after-an-unexpected-shutdown/


Emphasis added.


The system logs a specific shutdown code corresponding to an unexpected loss of power. If you shut down a Mac in the usual manner followed by disconnecting its power source, it cannot be programmed to start on its own merely upon restoration of power. Using pmset repeat wake — which isn't the same — might suffice for OP's needs. If the Mac is already awake it would have no effect, and it will certainly minimize button wear.


Personally I just let them sleep. Like iPhones.


This is the question I alluded to earlier: Terminal command for automatic power on (Mac Mini) - Apple Community


I do like the automated button-presser idea though...


"Physically push a button, seriously? Is there no other way?"


Yup.

Sep 7, 2025 1:30 PM in response to John Galt

John Galt wrote:
I do like the automated button-presser idea though...

"Physically push a button, seriously? Is there no other way?"

Yup.


Apple Xserve had integrated lights-out management (page 22), but not much else Apple has / had anything similar.


But sleep with recent Mac models sips power as compared with the Xeon-based electric room heaters.


For some few hard-to-access and flaky boxes, I use a mix of remote-switched-access “uninterruptible” power supplies, and cheap Matter-based remote power switches.

Sep 5, 2025 11:50 AM in response to ChurchSasami

You can configure a Mac to start up on its own following an unexpected power interruption, but I suggest that you consider the reason you find it necessary to shut it down to begin with.


Change Energy settings on a Mac desktop computer - Apple Support


If you just let it sleep according to those settings you never have to press its power button. I do not believe the feature you seek is available.

Sep 5, 2025 5:04 PM in response to ChurchSasami

There was a similar question posted a while ago in which the proposed workaround was to shut off the circuit breaker supplying the receptacle rather than the usual way. Not ideal but it works.


An unexpected power loss results in a specific shutdown code, different from a normal shutdown, which results in it starting up when power returns (assuming that option was selected).


Wake on LAN won't start a Mac that has been shut down. It can only wake it from sleep.


It’s very unlikely, but it’s not the first time a Mac has shut down on me for no apparent reason.


If the Mac is shutting down on its own for no apparent reason, that's a different story. When it does that, does it report a problem upon starting it up again?


Another possibility is to program that Mac to start up on its own at a particular time of day: Schedule your Mac to turn on or off in Terminal - Apple Support. That might be a workaround to cope with a Mac spontaneously shutting down for reasons that cannot be determined.

Sep 5, 2025 1:04 PM in response to John Galt

I agree, it’s unlikely that the power button will be necessary. This is for a fixed installation where the Mac is mounted in a hard-to-reach place. The software running could cause the Mac to shut down. It’s very unlikely, but it’s not the first time a Mac has shut down on me for no apparent reason. I will look into other remote startup methods (WOL, mechanical remote devices, etc.).

Thanks John.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can i start up automatically after connecting to a power source, Mac mini M4 (2025) with Sequoia 15.4.1. ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.