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

Gary King

macrumors 6502
Original poster
Jun 14, 2004
495
1
Ever since upgrading to Mavericks, it looks like my Mac Mini wakes from sleep about once an hour or so. In the Console, I get the following message:

Oct 30 02:12:06 gary-mac WindowServer[93]: CGXDisplayDidWakeNotification [89885620192550]: posting kCGSDisplayDidWake
Oct 30 02:12:06 gary-mac WindowServer[93]: handle_will_sleep_auth_and_shield_windows: Deferring.

Anyone know why it's doing this?

Usually when the computer wakes from sleep, whether manually or automatically, there is a "Wake Reason" line, but in this case there isn't one. My guess is that this is because since Mavericks, "Sleep" doesn't actually put the Mini to sleep. It seems to be more "on" than it used to be. Is there a way to revert the behavior to how it was before Mavericks?
 
Last edited:
Oct 30 02:12:06 gary-mac WindowServer[93]: CGXDisplayDidWakeNotification [89885620192550]: posting kCGSDisplayDidWake
Oct 30 02:12:06 gary-mac WindowServer[93]: handle_will_sleep_auth_and_shield_windows: Deferring.

Anyone know why it's doing this?

You could go ahead and try to find out by opening the terminal and enter
pmset -g log that might give you some detailed insight into why your mac is waking up.
 
I thought this had ben cleared up in Mavericks...It was well known in ML. First thing to do is to check your activity monitor to see what's running...If that's clean, then I guess the instructions in the link to my old post will still work, preventing the Mac from hibernating, but I re-set mine and it hasn't done this since Mavericks was installed.

The old thread link :

https://forums.macrumors.com/threads/1529750/

There does seem to be few newer postings in there, but my bet would still be on something running that's causing this..."Wake for Network access" may be ticked etc. I'd do a little digging before using Terminal commands to prevent hibernation.
 
happening to me too. every hour or so, all my drives spin up (including external and superdrive). my display doesn't light up, but there is definitely something interrupting the sleep.
this did happen to me a long time ago (can't remember for sure which version of OSX but definitely pre-Lion) but i haven't had the problem in years until the Mavericks update.
i'll run that terminal command and see what is in the logs...
 
happening to me too. every hour or so, all my drives spin up (including external and superdrive). my display doesn't light up, but there is definitely something interrupting the sleep.
this did happen to me a long time ago (can't remember for sure which version of OSX but definitely pre-Lion) but i haven't had the problem in years until the Mavericks update.
i'll run that terminal command and see what is in the logs...

Yes indeed, every hour my external drives spin up, but my display remains asleep. I have two USB external drives, and they are louder than my Mac Mini (because it has an SSD), so that's how I know it keeps waking up. Frankly if I didn't have external drives, I probably wouldn't notice the problem, then I wouldn't care.

I had this problem about a month ago when OS X 10.8.4 or 10.8.5 was released, because it didn't properly sleep external drives. They fixed it a few weeks ago, but it looks like a similar problem is back now in Mavericks.
 
Same here. I noticed that my mavericks installation set new parameters in some preferences. Check your energy saving preferences. Is your Mac configured to wake on incoming network traffic? As I don't have an English system I can't tell you the correct phrase for this setting.
Anyway, since turning that off, my Mac sleeps well again. And so do I.
 
I have always had "Wake for network access" OFF for me, and still have it off. So no, that is not the problem in my case.
 
I have always had "Wake for network access" OFF for me, and still have it off. So no, that is not the problem in my case.

In that case, run the terminal commands in the link I posted above. Your Mac will still sleep, it just won't hibernate...That's how we solved it under ML and it worked fine. To re-instate hibernation at any time should you wish to, just replace the zeros in the commands with ones.
 
What's the difference between autopoweroff and standby? And what's the difference between autopoweroffdelay and standbydelay? Seems like the same thing
 
I have always had "Wake for network access" OFF for me, and still have it off. So no, that is not the problem in my case.

It sounds like you have Powernap turned on. Look in the Energy Saver System Pref to see if it is on. Powernap checks Mail etc hourly when even when the system is asleep.
 
It sounds like you have Powernap turned on. Look in the Energy Saver System Pref to see if it is on. Powernap checks Mail etc hourly when even when the system is asleep.

I have Power Nap disabled. I have everything on the Energy Saver page unchecked.
 
Turns out it's because I had "File sharing" enabled on my "Sharing" Preferences pane. This prevents Mavericks from sleeping. However, this did NOT prevent any OS before Mavericks from sleeping, which leads me to believe this may be a bug in Mavericks. I'll have to disable File sharing before I sleep my Mac now.

Also, "pmset -g assertions" is what ultimately helped me find the problem, which was due to "com.apple.smbd" that was causing "DenySystemSleep".
 
same problem, but only when sharing to windows clients

I see this thread is already a bit outdated, but I have the same problem, and can't seem to fix it.

My mac mini also stays awake when samba sharing is turned on in Mavericks. But it only has this problem when i enable sharing to (at least one) windows user.

If I (samba)share to macs only, it just goes to sleep after the time set in energy preferences (and wakes up when file access is needed). I have afp disabled, so i know it's using smb, even when other macs connect.

It's really annoying, because i only need to access it maybe once a day from a windows computer. Now my mac mini needs to stay awake all the time, just for that.

In what way does sharing to windows computers change the behaviour of the samba daemon?

Does anyone have a solution to this?
 
Dealing with the same problem. If you use smb2 (connect from Mavericks) com.apple.smbd stays active (even after disconnecting) and prevents sleep. If you use cifs:// (smb1) and unmount, com.apple.smbd dissapears.
 
Wake for Network Access

Someone above mentioned this setting. I updated from SL to ML last year and noted the absence of this setting in its usual place. It does not seem to be in Mavericks either.

I had always thought this would prevent unwanted intrusions, for example, overnight. Was I wrong and it was removed due to being ineffective, or is it now somewhere else?

Thanks,
Bart
 
I think it works like this:

If you have something enabled in Sharing, and you have Wake for network access enabled, and there is a Bonjour Sleep Proxy available (Apple TV, Airport, etc.), then your Mac will wake up every two hours or so to refresh the proxy with its state. If you do not have Wake for network access enabled, this should not be happening and hopefully is fixed in 10.9.2.

A.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.