Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

staticfloat

macrumors newbie
Original poster
Hey guys, I'm a fairly new developer to mac, and this may not be the best forum to ask this on, but here goes;

I need to write an application that will wake my macbook pro up from sleep every so often, and then put it to sleep again. Something very similar to the SleepX program that is included with the Xcode dev tools. I tried using the Power Management DDK sample "wakein", but it seems it cannot find a PMU in my macbook pro, therefore there must be some other way of doing this. Does anyone know how SleepX does this/can anyone point me to a place where someone might know?

Thanks!
 
I don't know about true programatic access, but from the command line you can do this with 'pmset'. 'man pmset' for more information.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.