You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Can't schedule both startup and shutdown in Terminal macos ventura- it's either or

Apple did a boneheaded thing by removing Scheduling from Energy Saver.

I have a "smartswitch" on my power supply, so that when my Mac shuts down, all the other devices connected to it shut down as well. I'd think a lot of other folks do this too.

What's going on Apple?


Anyway, I know how to schedule and startup using Terminal. But it only takes one command. So if I schedule shutdown, I check the schedule and it takes. And the computer shuts down when the time comes. So I know it works.


The problem is, when I put in the startup, it appears to wipe out the shutdown schedule.When I use the command to check the schedule, it only will show the startup schedule.


What am I doing wrong?


Thanks

Posted on May 17, 2023 8:50 AM

Reply
Question marked as Top-ranking reply

Posted on May 17, 2023 10:32 AM

The startup and shut down terminal commands need to be on one line combined. You cannot make separate terminal commands. here sis an example:


Using Terminal to set start up and shut down each day

 

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


9 replies
Question marked as Top-ranking reply

May 17, 2023 10:32 AM in response to Tony Jillson

The startup and shut down terminal commands need to be on one line combined. You cannot make separate terminal commands. here sis an example:


Using Terminal to set start up and shut down each day

 

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


May 17, 2023 9:07 AM in response to Tony Jillson

Tony Jillson wrote:

Apple did a boneheaded thing by removing Scheduling from Energy Saver.
I have a "smartswitch" on my power supply, so that when my Mac shuts down, all the other devices connected to it shut down as well. I'd think a lot of other folks do this too.
What's going on Apple?

Anyway, I know how to schedule and startup using Terminal. But it only takes one command. So if I schedule shutdown, I check the schedule and it takes. And the computer shuts down when the time comes. So I know it works.

The problem is, when I put in the startup, it appears to wipe out the shutdown schedule.When I use the command to check the schedule, it only will show the startup schedule.

What am I doing wrong?

Thanks



ref: Schedule your Mac to turn on or off in Terminal - Apple Support



you can read more from the man page in the Terminal, copy and paste:

 man pmset | more



May 17, 2023 9:43 AM in response to Tony Jillson

Just to be clear, you are using pmset repeat, not pmset schedule, right?


pmset schedule adds a one-off event (wake/sleep/etc.), and once the timestamp passes it's removed from the schedule (since it no longer applies).


pmset repeat adds recurring events (which sounds like what you want).


On that basis, man pmset states:


Note that you may only have one pair of repeating events scheduled - a "power on" event and a
     "power off" event.


which says you should be able to repeat both a power on and a power off event. What you can't do is set two shutdown schedules (e.g. every Monday at 5pm and every Tuesday at 6pm)

May 17, 2023 11:37 AM in response to tbirdvet

tbirdvet gets the Kewpie doll! This was the answer. I consulted several different websites, as well as Apple's support doc, and if it was even mentioned I didn't see it.


Thanks for your (speedy) help!


How long do you think it will take Apple to re-introduce the feature and tout it as "New"? They always do that. I can't understand why they did this. They had it all the way back to Os 9 I believe.

May 17, 2023 6:20 PM in response to Tony Jillson

I consulted several different websites, as well as Apple's support doc, and if it was even mentioned I didn't see it.

Sometimes, the manual pages are helpful. While not exactly the schedules you were using, the man page has an example of entering two schedules

Schedules a repeating wake or power on event every tuesday at 12:00 noon, and 
a repeating sleep event every night at 8:00 PM.

     pmset repeat wakeorpoweron T 12:00:00 sleep MTWRFSU 20:00:00

In Terminal,

man pmset


Not all of them are that complete, but sometimes they are very handy.

Oct 29, 2023 4:01 AM in response to tbirdvet

tbirdvet,

I had my iMac set to power down at 10 PM and start up at 5 AM every day. I just want to cancel it all and as of OS 14.1 I see no way.

I opened terminal and entered Pmset -g sched and the shutdown & startup times were there. I then entered

Sudo pmset repeat cancel

It asked for my password I then entered Pmset -g sched and this came up:


Scheduled power events:


 [0]  wake at 10/29/2023 07:00:00 by 'com.apple.alarm.user-invisible-com.apple.calaccessd.alarmEngine.alarm.name'


 [1]  wake at 10/29/2023 17:46:18 by 'com.apple.alarm.user-invisible-com.apple.acmd.alarm'


 [2]  wake at 10/30/2023 05:40:25 by 'com.apple.alarm.user-invisible-com.apple.acmd.alarm'


Did I do the right thing to cancel it completely ?


Thanks, John

Can't schedule both startup and shutdown in Terminal macos ventura- it's either or

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