Originally Posted by artie505
Originally Posted by plantsower
I finally found a terminal command that is supposed to put my MacBook to sleep at the time I want it to everyday.

It's: sudo pmset repeat shutdown MTWRFSU 01:00:00

If I want to undo this or change it because I need a change or because this didn't work, how do I do that?

Thanks.
I'm not your expert, but I'll note that "shutdown" is not the same as "sleep." I didn't notice it said shut down so I will change it to sleep.

I just looked at the pmset man page, and - and this assumes that your command is correct - it looks like you can undo your command by changing the time to "0" (no quotes) or change its schedule by changing or eliminating days. And you may also want to change "shutdown" to "sleep."
My question is how do I find my terminal command to undo it in the future? Does this sound right? I found it online. You can check to see what commands are in your history at any time by running the history command. When you type history and press Return, Terminal displays a list of the commands in the history list.

Last edited by plantsower; 02/26/23 04:39 AM.

MacBook Pro - M2, Ventura 13.6
Safari Tech Prev 17.0
Safari 16.6
Firefox 116.0.2
iPhone 7 Version 15.8