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.

deleting "power on" using pmset

Now that we must use pmset in Terminal to set scheduled events, and not System Settings / Energy Saver on a Mac, I have been unable to stop my computer from waking at 6AM.


From pmset "-g sched" the following is displayed:


Repeating power events:

wakepoweron at 6:00AM every day

sleep at 10:00PM every day


I get an error saying " Badly formatted date" when I type "pmset sched cancel wake MTWRFSU “6:00AM"


What would be the correct format to delete that power event?


iMac 27 inch 2019, Ventura

iMac 27″, macOS 13.2

Posted on Mar 23, 2023 9:03 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 23, 2023 1:07 PM

Try cancelall?

sudo pmset schedule cancelall

Similar questions

16 replies

Mar 23, 2023 11:09 AM in response to hcsitas

Thanks, but I think I typed this correctly and it didn't work.


pmset schedule cancel wake “03/24/23 06:00:00”


I don't understand why the date and time are required if you are only allowed a single 'wake' to be scheduled, but I put in the date and time the next 'wake' was scheduled.


Here's the output from terminal:


Swans@Swans-2019-iMac ~ % Pmset schedule cancel wake “03/24/23 06:00:00”

Error: Badly formatted date (2)

Error parsing scheduled event.

Mar 23, 2023 1:27 PM in response to hcsitas

I'm sure that will work, and probably the only way to delete the wake power manager, but I didn't want to delete all the other power events that run at night.


Here are all my power events:


Swans@Swans-2019-iMac ~ % pmset -g sched

Repeating power events:

wakepoweron at 6:00AM every day

sleep at 10:00PM every day

Scheduled power events:

[0] wake at 03/23/2023 21:05:00 by 'com.apple.alarm.user-visible-com.apple.donotdisturb.server.ScheduleLifetimeMonitor.timer' User visible: true

[1] wake at 03/24/2023 00:04:40 by 'com.bombich.ccchelper'

[2] wake at 03/24/2023 03:34:47 by 'IDriveDaemon'

[3] wake at 03/24/2023 03:34:47 by 'IDriveDaemon'

[4] wake at 03/24/2023 03:34:47 by 'IDriveDaemon'

[5] wake at 03/24/2023 03:34:47 by 'IDriveDaemon'

[6] wake at 03/24/2023 12:25:08 by 'com.apple.alarm.user-visible-com.apple.acmd.alarm'


Thanks very much for your help. It seems that Apple didn't do well by deleting the ability to set up sleep and wake in Energy Savings.

Mar 25, 2023 10:07 AM in response to hcsitas

I worked up my courage and tried cancelall.


No errors were displayed:


Swans@Swans-2019-iMac ~ % sudo pmset schedule cancelall


Then I tried to confirm that no events at all were scheduled. The power events remained, but the events for Carbon Copy Cloner and iDrive disappeared, which is exactly the opposite of what I originally wanted to do. Nuts.


Also, "schedule" wasn't valid, but "sched" was, which is not what I read in the manual. I'll study the 'man' again.


Swans@Swans-2019-iMac ~ % sudo pmset -g schedule

Error: unhandled argument schedule

Usage: pmset <options>

See pmset(1) for details: 'man pmset'

Swans@Swans-2019-iMac ~ % sudo pmset -g sched

Repeating power events:

wakepoweron at 6:00AM every day

sleep at 10:00PM every day


I did open CCC and iDrive, and they indicate that the schedules remain intact. I'll confirm that they actually run as scheduled.

Mar 25, 2023 11:38 AM in response to hcsitas

Thank you. I don't have an issue with disabling Sleep, but with disabling Wake. I don't think I understand your post.


I think I have done everything correctly, but nothing I can think of to try helps. So, I don't think you or anyone else can help other than Apple. I thought for sure that 'cancelall' would do the trick, but it didn't.


I have confirmed that Carbon Copy Cloner scheduled events still take place, even though they no longer show up after executing sudo pmset -g sched, so at least that went well. Maybe cancelall no longer works at all.


I certainly do appreciate your attempts to help, and want to thank you again.

Mar 25, 2023 11:58 AM in response to hcsitas

Thanks, I get it now. Actually, I would be happy disabling Sleep (and Wake) from the System settings screen and doing away with Terminal/schedules/wakes&sleeps altogether, but you can no longer do that from System Settings / Energy Saver in Ventura. Those options have been removed, which was why I was forced to try Terminal commands. Recent online articles had explained how to add Wake and Sleep times using Terminal, but did not mention how to delete them. Probably because you can't.


So, I'm half-happy. I guess I could tell the computer to Wake, just before it goes to Sleep.


Cheers!


Mar 26, 2023 10:43 AM in response to BiknSwans

I think I have the best answer now. You have to use Terminal to define new Sleep and/or Wake schedules, but, when done, the old ones are deleted. I specified a new (actually the same) Sleep schedule, and the old Wake schedule was deleted.


Last login: Sun Mar 26 12:45:42 on ttys000

You have new mail.

Swans@Swans-2019-iMac ~ % Sudo pmset repeat sleep MTWRFSU 22:00:00

Password:

Swans@Swans-2019-iMac ~ % sudo pmset -g sched

Repeating power events:

sleep at 10:00PM every day

Scheduled power events:

[0] wake at 03/26/2023 15:51:19 by 'com.apple.alarm.user-visible-com.apple.CalendarNotification.EKTravelEngine.periodicRefreshTimer'

[1] wake at 03/26/2023 21:05:00 by 'com.apple.alarm.user-visible-com.apple.donotdisturb.server.ScheduleLifetimeMonitor.timer' User visible: true

[2] wake at 03/27/2023 00:04:40 by 'com.bombich.ccchelper'

[3] wake at 03/27/2023 03:34:47 by 'IDriveDaemon'

[4] wake at 03/27/2023 03:34:47 by 'IDriveDaemon'

[5] wake at 03/27/2023 03:34:47 by 'IDriveDaemon'

[6] wake at 03/27/2023 13:04:40 by 'com.apple.alarm.user-visible-com.apple.acmd.alarm'

Swans@Swans-2019-iMac ~ %

deleting "power on" using pmset

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