Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

System keeps waking from sleep every 2 hours

Since Yosemite update, system keeps waking from sleep approx. every 2 hours. It goes back to sleep on its own but keeps waking up again. I have "wake for network access" in System Preferences turned off. Here are samples of the console messages:


10/19/14 1:02:43.000 AM kernel[0]: Wake reason: RTC (Alarm)

10/19/14 1:02:43.000 AM kernel[0]: RTC: Maintenance 2014/10/19 08:02:43, sleep 2014/10/19 06:14:45

10/19/14 3:00:41.000 AM kernel[0]: Wake reason: RTC (Alarm)

10/19/14 3:00:41.000 AM kernel[0]: RTC: Maintenance 2014/10/19 10:00:41, sleep 2014/10/19 08:12:51


I have no idea what "Wake reason: RTC (Alarm)" means. Any help would be appreciated.

iMac, OS X Yosemite (10.10), 2011 iMac Intel Core i5 12GB RAM

Posted on Oct 19, 2014 5:20 PM

Reply
109 replies

Oct 23, 2014 5:29 PM in response to seduc

Would you mind explaining what exactly those commands do? If the "before sleep" command prevents waking up while sleeping, what does the second one do?


And clarifying "before sleep" and "after sleep"? Before Sleep I have to assume would be anytime the computer is awake. But After Sleep I'm not clear on - I mean, you can't enter a command after the computer is asleep, can you? So running it "after sleep" would have to be once the machine is again awake - which would be the same state the machine is in when you run the "before sleep" command. What am I missing here?

Oct 25, 2014 12:23 AM in response to James Brust

before sleep (before you put the computer to sleep):

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist

after sleep (after you woke it up – next time you use it):

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist


This turns a system component off/on.


Better would be if you raise logging and maybe find the cause of this behavior.


Immediately before sleep:

This will discoveryd log every thing it does.

sudo discoveryutil log level Everything


after sleep:

Go back to normal logging

sudo discoveryutil loglevel 1

Oct 26, 2014 4:08 AM in response to James Brust

I have the same problem. I updated to Yosemite on my mid-2010 iMac two days ago. Ever since then it has been partially waking from sleep throughout the night- just the discs but not the display. It shuts itself down again after about 20 seconds but is in our bedroom and wakes us up...

Last night it it woke at 23.40, 01.29, 02.18, 04.07, 05.56 and 07.45. The previous night was a similar story...

Wake for network access is off and I don't think this machine supports Power Nap or App Nap.


I have not encountered this problem with previous versions of OS X


It is driving me nuts...!

System keeps waking from sleep every 2 hours

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.