|
|
Set different startup times for different days
For those interested in really getting control over powering on and off or waking and sleeping, read the manual page for pmset. (Go to Terminal and type man pmset)
Instead of focusing on the "pmset repeat" option, consider the "pmset schedule" option. With "pmset schedule" you can set as many wake, sleep, shutdown, poweron and wakeorpoweron events as you like.
You do have to be root to do it (I use "sudo") and maybe one day someone will be nice enough to make a GUI app to keep you from having to muck with the command-line.
Here's how I'd get my computer to come on at 2:00 pm on Jan 2, 2006 and sleep at 3:10 pm on the same day:
sudo pmset schedule wakeorpoweron "01/02/06 14:00:00" password:****** sudo pmset schedule sleep "01/02/06 15:10:00" To verify the scheduling, type: pmset -g sched And get the following results: Scheduled power events: [0] wakeorpoweron at 01/02/06 14:00:00 [1] wakeorpoweron at 01/02/06 14:00:00 [2] sleep at 01/02/06 15:10:00Why is wakeorpoweron shown twice, you ask? Take a look at /Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist and you will see that one wake and one poweron event is scheduled for 2pm. In fact, if you are really brave and know XML, you can take your chances with editing this file by hand. That's not recommended, though.
Set different startup times for different days
the only thing about using schedue is its a one-shot thing, for a specific date/time, so you'd have to set a ton of them. and likely, there would eventually be a limit when you run out of room in the PMU
pmset allows you to schedule system sleep, shutdown, wakeup and/or power on. "schedule" is for setting up one-time power events, and "repeat" is for setting up daily/weekly power on and power off events.
Set different startup times for different days
To expand upon the suggestion above, you could write a script which set the schedule for the following week and put that in your cron to run weekly.
A script that set two wakes (6:30am and 5:30pm) and two sleeps (9am and 10:30pm) for each day would look something like this: (ruby)
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.39 seconds |
|