OS X Mavericks wakes my Mac from sleep every hour or so

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?


Solution 1:

Turns out it was because I had "File sharing" enabled in my "Sharing" System Preferences pane. I've always had this setting enabled, and I could sleep my Mac just fine before Mavericks. However starting with Mavericks, if I sleep my Mac with "File sharing" enabled, then the Mac won't sleep.

Solution 2:

Since I started to share files on my Mac, I had the insomnia issue as well. There is a great little tool called PleaseSleep which is freeware and supports Mavericks. It will help your Mac to stay asleep.

Direct download link

Unfortunately, the product is not maintained anymore, as the developer Dragonone.com stopped.