Contribute
Register

IMPORTANT Darkwake=0 Flag can break auto-sleep in 10.8.1!

Status
Not open for further replies.
How do I check what the background task is (activity monitor? Is there anyway in the terminal to check it out). Also, it isn't just autosleep that doesn't work, regular awake does not work either.
 
Well, I've been discovering the joys of the pmset command. pmset -g assertions can give a lot of useful information, and there's a depressing number of options, too... depressing for someone who likes to think that OSX is adequately powerful in the GUI.
 
Well, I've been discovering the joys of the pmset command. pmset -g assertions can give a lot of useful information, and there's a depressing number of options, too... depressing for someone who likes to think that OSX is adequately powerful in the GUI.


lol.. that's what I love about OS X, it's the best of both worlds.

I would like to think OS X is 'Posix on the desktop, done right'. While I love the Linux command line, I hate every GUI for it ever created.

Back on topic: I'm still using darkwake=0 on U1H UEFI for sleep.
 
Well, it's nice that I can find the info I need from a manual page. With windows I always have to find some forum... :rolleyes:

I got a new UPS and wanted to have the system wake and then shut down, but it wasn't an option. That seems like an oversight...

OSX may be the best desktop OS for general use, but that's not an especially high bar, when it comes down to it :lol:

Hopefully futzing with the settings will help with my various sleep issues, too!
 
Well, it's nice that I can find the info I need from a manual page. With windows I always have to find some forum... :rolleyes:

I got a new UPS and wanted to have the system wake and then shut down, but it wasn't an option. That seems like an oversight...

OSX may be the best desktop OS for general use, but that's not an especially high bar, when it comes down to it :lol:

Hopefully futzing with the settings will help with my various sleep issues, too!

You can always wake the system with 'Energy Saver > Schedule..'

I think APC UPSes have out-of-the-box support in Mac OS X but I'm sure others can be made to work with software.

OSX_EnergySaver.jpg

ups500x379.jpg
 
Here is my thought and test result for this Darkwake issue.

In Lion, we set darkwake=0 which worked perfectly for most of us. However this is broken in ML 10.8.1+. Thanks for NeXTguy's source code reference and his valuable investigations, the problem in ML is the flag "kDarkWakeFlagIgnoreDiskIOAlways = 0x08", if this is not set, auto-sleep won't happen.
My idea is we only need this flag to be set to fix the auto sleep and leave all others as same as they are in Lion which is 0.

So, I simply use darkwake=8 (instead of 10) which keeps lower 2 bits as zero and only set the kDarkWakeFlagIgnoreDiskIOAlways flag to fix the auto sleep only. Now my system (z68-ud3h) can auto sleep and wake up immediately with single mouse click or keyboard press.

Hope this help other ppl with ML 10.8.1+
 
Ok, I tried DarkWake=8 and it works for my Z77X-UP5-TH with an i7 3770.

Auto sleep and manual sleep both work.
Also, I used MB 5.2.1 (without the sensor plug-ins as I'm a bit worried they'll freeze me out)

YMMV :)
 
This also works for me with a GA-B75N and i3-3225!
 
As an experiment I tried darkwake=8,9,10. All worked perfectly with no disernable difference. In my case the 2 least signficant bits made no difference.
 
Status
Not open for further replies.
Back
Top