Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to Make Mac Turn Off or On Automatically

I've been searching for the settings to turn my 2021 iMac on and off at a preset schedule.

All my previous Macs (1986 to 2021😁) had an "easy-to-find" setting for this. What the heck?

iMac, OS X 10.11

Posted on Dec 17, 2022 7:40 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 18, 2022 8:03 AM

That’s possible, I was referring to the link from @dialabrain which referred only to wake & sleep. It also contained a dead link to pmset, unfortunately.


Irrespective, here’s the pmset command with all the options, should work (prepend sudo):


pmset schedule [cancel] {sleep | wake | poweron | shutdown | wakeorpoweron}
               "MM/dd/yy HH:mm:ss" [owner]

      pmset repeat cancel

      pmset repeat {sleep | wake | poweron | shutdown | wakeorpoweron}
               weekdays "MM/dd/yy HH:mm:ss"
               Where weekdays is a subset of MTWRFSU ("M" and "MTWRF" are valid strings)


22 replies
Question marked as Top-ranking reply

Dec 18, 2022 8:03 AM in response to Randy Allen

That’s possible, I was referring to the link from @dialabrain which referred only to wake & sleep. It also contained a dead link to pmset, unfortunately.


Irrespective, here’s the pmset command with all the options, should work (prepend sudo):


pmset schedule [cancel] {sleep | wake | poweron | shutdown | wakeorpoweron}
               "MM/dd/yy HH:mm:ss" [owner]

      pmset repeat cancel

      pmset repeat {sleep | wake | poweron | shutdown | wakeorpoweron}
               weekdays "MM/dd/yy HH:mm:ss"
               Where weekdays is a subset of MTWRFSU ("M" and "MTWRF" are valid strings)


Dec 18, 2022 10:50 AM in response to Randy Allen

Here is an example using terminal. Change the times as you require:

Separately:


Shut down each day at 9:30 pm:


Sudo pmset repeat shutdown MTWRFSU 21:30:00  and hit return


Enter PW if required



Startup every day at 6:00AM:


Sudo pmset repeat wake MTWRFSU 6:00:00 and hit return


To have both startup and shutdown:


Sudo pmset repeat poweron MTWRFSU 6:00:00 shutdown MTWRFSU 21:30:00


To check if these were set:


Pmset -g sched




To cancel all settings:


Sudo pmset repeat cancel and hit return




Monday=M

Tuesday=T

Wednesday=W

Thursday=R

Friday=F

Saturday=S

Sunday=U

How to Make Mac Turn Off or On Automatically

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