Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Everyday, I usually start my Mac Mini at 16:00 and shutdown it at 2:00 using the Energy Saver schedule settings.

I would like to be able to set a different behavior on the Weekends starting Mac Mini at 9:00 for example. Do you know any way to achieve that (third party software, cron job, superuser trick)?

share|improve this question
add comment

4 Answers

up vote 9 down vote accepted

You don't need 3rd party software. The OS X utility pmset allows you to schedule sleep/wake taking day of week into effect. I haven't tested it, but it appears you cannot schedule multiple repeating events on different times. You'll need to use cron to complete this task.

from man pmset

Schedules the system to automatically wake from sleep on 
July 4, 2009, at 8PM.

pmset schedule wake "07/04/09 20:00:00"

Schedules a repeating shutdown to occur each day, Tuesday through 
Saturday, at 11AM.

pmset repeat shutdown TWRFS 11:00:00
share|improve this answer
1  
I fiddled with it and it can't be done even using pmset –  systempuntoout Dec 31 '10 at 11:03
1  
I think if you fiddle differently it can be done. You'll want to use pmset with StartupItems so that each time it starts it is correctly set for the next shutdown, and a new StartupItem is written for the next reboot. –  user588 Dec 31 '10 at 14:51
add comment

Consider using DssW Power Manager. With Power Manager, you can create multiple separate start up and shut down times for weekdays and weekends.

Power Manager goes far beyond the capabilities of pmset. How to schedule your Mac to shut down (screen recording on YouTube).

Power Manager for Mac OS X

Disclaimer: I work for DssW.

share|improve this answer
1  
Wow - that's a nice looking tool. Thank you for answering and disclosing your ties to the product. –  bmike Sep 19 '12 at 14:54
add comment

For the shutdown part I can suggest Mac Shutdown X (shareware 20$), It is customizable using an easy to use setting setup panel (no coding or editing of script required).

share|improve this answer
add comment

This seemed to work for me:

sudo pmset repeat shutdown MTWRF 16:00:00 

For shutting down every weekday. I bet amset instead of pmset would work for waking them up.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.