iMac won't sleep after Mavericks upgrade

After installing the Mavericks upgrade, I notice that my late 2012 iMac computer does not enter sleep mode, while my monitor does. The Energy saver settings are the same as before the upgrade (computer and monitor sleep after 10 minutes, i.e., system default settings). Has anyone else experienced this?


Thanks for any comments.


LB

iMac (27-inch, Late 2012), OS X Mavericks (10.9)

Posted on Oct 24, 2013 8:47 AM

Reply
30 replies

Nov 14, 2013 4:58 PM in response to old™

As of a few days ago Adobe Creative Cloud Clod was not compatible with Mavericks in that it conflicted with iCloud. It may be the problem or at least a contributing factor. Adobe may have updated it since then, or not.


I don't have it on any of my Macs and they all sleep predictably.


Pressing the power button for about 1.5 seconds will sleep all Mavericks - running Macs as easily as the key combination. Holding it down longer than that will summon the sleep / shutdown dialog.


Try posting the results of Etrecheck. It stands to reason that if all of mine are sleeping, so should yours, unless you have a model I don't and the sleep problem really is an OS X bug associated with certain models. It has been so in the past.

Nov 14, 2013 5:38 PM in response to John Galt

John, Thanks for all your suggestions. I tried your diagnostic suggested above and got the same "Sleep prevented by UserEventAgent" message as old did. I suspect that the failure to auto-sleep may be related to the 3 TB WD Thunderbolt external drive I have connected for Time Machine backups and photo storage. I tried checking the box in Energy Saver called "Enable Power Nap", and voila, my iMac now auto-sleeps just fine! The power nap option is new with Mavericks and is unchecked by default. I'm not sure if this is the answer to all the others having auto-sleep issues under Mavericks, but it has worked for me. To be precise, my monitor enters sleep exactly at the energy saver time, and after some external hard drive activity, the external drive and the iMac itself enter total sleep exactly 1 min, 22 seconds later (very reproducible) and remain in sleep. 🙂


L.B.

Nov 18, 2013 9:28 AM in response to John Galt

I may have the actual answer here.

http://www.tonymacx86.com/mavericks-desktop-support/114881-spotlight-problems-ma vericks-not-before-mountain-lion.html


After John Galt's suggestion to use pmset -g I took the time to look at the man page for pmset and found the option for "pmset -g assertions" which showed that the real culprit appeared to be : "com.apple.metadata.mds_stores.maintenance"


That process is associated with Spotlight, but I wasn't sure what it was doing or how to make it go away until I found the URL above. Am now reindexing my primary HD and we will see what happens next. Note that the author on that URL had the problem return after 2 days, so it might or might not be a permanent solution.

Nov 18, 2013 1:23 PM in response to old™

OK, the issue is definitely Spotlight related and the problem is definitely with com.apple.metadata.mds_stores.maintenance, but in my case it was not the primary HD, but rather an external FW drive. So, sleep is working normally for now.


$ pmset -g assertions

11/18/13, 2:20:08 PM MST

Assertion status system-wide:

BackgroundTask 0

PreventDiskIdle 0

ApplePushServiceTask 0

UserIsActive 0

PreventUserIdleDisplaySleep 0

InteractivePushServiceTask 0

PreventSystemSleep 0

ExternalMedia 1

PreventUserIdleSystemSleep 0

NetworkClientActive 0

Listed by owning process:

pid 16(powerd): [0x000000090000012c] 01:52:11 ExternalMedia named: "com.apple.powermanagement.externalmediamounted"

Kernel Assertions: 0x4=USB

id=500 level=255 0x4=USB mod=11/18/13, 12:37 PM description=EHC1 owner=AppleUSBEHCI

id=501 level=255 0x4=USB mod=11/18/13, 12:37 PM description=EHC2 owner=AppleUSBEHCI


The exernal media mounted does not actually prevent sleep, and Background Task = 0, sleep works normally unless some normal task (Time Machine, iTunes etc.) prevents it. With luck this will last.

Nov 26, 2013 4:38 PM in response to killhippie

In order to begin examining why my iMac didn't fall asleep after a proscribed interval of inactivity with Mavericks, I set up a new user account to test various components of my system. The new account's sleep function worked perfectly. Then I opened my original account and sleep work here too. If I logged off the new user account my original account still went to sleep as before. I found sleep works correctly as long as I boot up from the new user account—this properly would work with a guest account as well. I decided not to investigate further as I was more than happy at this accidental discovery


Hope this works for you; others.

Dec 1, 2013 5:36 AM in response to bodyvisual

As noted above, in my case it was a Spotlight issue, though it must be acknowledged that it was a Spotlight issue on an external drive. Rebuilding the Spotlight databse on all of my drives has completely resolved the issue for me. Disconnecting the externals certainly would hve resolved the issue, but I need those external drives (3 two terrabyte external drives). Fixing the Spotlight databases did totally resolve the issue for me, and it stuck. To find out if that is an issue for you, typing "pmset -g assertions" in the terminal will tell you quite directly. If "com.apple.metadata.mds_stores.maintenance" is running continuously, that is what is preventing sleep, and it can be made to go away as described above. If "com.apple.metadata.mds_stores.maintenance" is not running, then it is something else.

Dec 19, 2013 10:56 AM in response to old™

...Me too.


Just when I thought my Mavericks headaches were gone (I had the Time Machine problem where backups were taking forever - it went away eventually). Now my iMac won't sleep due to the "com.apple.metadata.mds_stores.maintenance" issue. I have a NAS drive over WiFi, so not only is my Mac staying awake, the NAS drive is too. I'm almost afraid to try the fix above in case in re-introduces the TM problem.


Too many issues on these boards and never a response from Apple. Yes, I know they dont respond here (or anywhere else for that matter) but maybe they should. At least Microsoft have some representation on their boards. I feel like we're collectively talking to the wall...


(...and Yes, I've done the "FeedBack" thing for all my issues)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

iMac won't sleep after Mavericks upgrade

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