PMSET issues

yjian
New Contributor III

Hi,

When I issued a sudo pmset repeat wakeorpoweron MTWRFSU 08:00:00

when I check it will show the correct.

Repeating power events:

  wakepoweron at 8:00AM weekdays only

When I issue command sudo pmset repeat shutdown MTWRFSU 18:00:00 it shows only but missing the wakepoweron. Am I missing anything?

Repeating power events:

  wakepoweron at 8:00AM weekdays only

1 ACCEPTED SOLUTION

sdagley
Esteemed Contributor II

@yjian The pmset command is not additive, whatever is in the last pmset command will overwrite whatever was previously set, so if you want to schedule both repeating shutdown and startup events it must be done as a single pmset command like this:

sudo pmset repeat shutdown MTWRFSU 18:00:00 wakeorpoweron MTWRFSU 08:00:00

 

View solution in original post

3 REPLIES 3

yjian
New Contributor III

Correction, after I issue sudo pmset repeat shutdown MTWRFSU 18:00:00. 

It shows only the shutdown everyday 18:00:00 but wakepoweron at 8:00AM weekdays only is missing.

 

sdagley
Esteemed Contributor II

@yjian The pmset command is not additive, whatever is in the last pmset command will overwrite whatever was previously set, so if you want to schedule both repeating shutdown and startup events it must be done as a single pmset command like this:

sudo pmset repeat shutdown MTWRFSU 18:00:00 wakeorpoweron MTWRFSU 08:00:00

 

yjian
New Contributor III

Thank you. It works perfectly. All my "&&" and ";" didn't work too.