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.

pmset

Does pmset allow me to enter multiple times to wake mac monterey?

If it does, once entered, how do I get it back in terminal to edit the command or delete what I entered?

I assume the following would work to wake daily at 6a:


sudo pmset repeat wake MTWRFSU 06:00:00


The man page quoted below refers to file locations that I cannot find on the mac, and since it says it modifies the same file that System Preferences Energy Saver modifies, makes me wonder if multiple wake times could be entered.


Many thanks

     

FILES

     All changes made through pmset are saved in a persistent preferences file

     (per-system, not per-user) at

     /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist

 

     Scheduled power on/off events are stored separately in

     /Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist

 

pmset modifies the same file that System Preferences Energy Saver modi-

     fies.

iMac

Posted on Aug 27, 2022 2:28 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 29, 2022 10:16 AM

Conceptually, the OS does support multiple wake schedules - there could be multiple apps on your machine that are configured to wake the machine. The main issue is that there is no user-level documentation on how to configure it.


OMM, at least, the com.apple.AutoWake.plist file does exist. Notably, it contains the following entry:


<key>WARNING</key>
        <string>Do not edit this file by hand. It must remain in sorted-by-date order.</string>


This not only implies that multiple events can be scheduled ("... must remain in sorted-by-date order" doesn't make sense if there's only ever one event), but that you should leave it to the OS to maintain this file.


Typically application developers that are using the scheduled wake will call an Apple-provided API that is ultimately responsible for writing this file. Changes you make may not comply with the API's expectations, and a mistake could lead to unpredictable results. You have been warned :)

Similar questions

4 replies
Question marked as Top-ranking reply

Aug 29, 2022 10:16 AM in response to mrokloricred37

Conceptually, the OS does support multiple wake schedules - there could be multiple apps on your machine that are configured to wake the machine. The main issue is that there is no user-level documentation on how to configure it.


OMM, at least, the com.apple.AutoWake.plist file does exist. Notably, it contains the following entry:


<key>WARNING</key>
        <string>Do not edit this file by hand. It must remain in sorted-by-date order.</string>


This not only implies that multiple events can be scheduled ("... must remain in sorted-by-date order" doesn't make sense if there's only ever one event), but that you should leave it to the OS to maintain this file.


Typically application developers that are using the scheduled wake will call an Apple-provided API that is ultimately responsible for writing this file. Changes you make may not comply with the API's expectations, and a mistake could lead to unpredictable results. You have been warned :)

Aug 30, 2022 11:06 AM in response to mrokloricred37

Yes, 'OMM' means On My Mac (or On My Machine for those that don't have the benefit of working on Macs :) )


I'm assuming the file is only created when needed - if there are no app-scheduled events then there's no need for the file to exist.


Since there are two files listed in the man page, it seems there are multiple avenues through which wake can be schedule. Maybe pmset is using the other file.


Either way, it doesn't change the fact multiple wakes can be set, there's just not much documentation around it.

pmset

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