rcolonescu

Q: MBA mid-2013 wakes from sleep every minute on Mavericks

After upgrading to Mavericks my MBA mid-2013 constantly wakes up from sleep every minute during the night draining battery to 0%.I did syslog | grep -i "Wake reason" and the result is "?" for each logged wake event. There are few more reports on this all over the Internet with slight variations. This happens

while on battery and I did try SMC reset. Any tips? It's gettig quite frustrating. Screenshot 2013-10-30 13.58.55.png

MacBook Air, OS X Mavericks (10.9)

Posted on Oct 30, 2013 6:03 AM

Close

Q: MBA mid-2013 wakes from sleep every minute on Mavericks

  • All replies
  • Helpful answers

first Previous Page 4 of 9 last Next
  • by rcolonescu,

    rcolonescu rcolonescu Nov 22, 2013 6:22 AM in response to fskirschbaum
    Level 1 (0 points)
    Nov 22, 2013 6:22 AM in response to fskirschbaum

    Most of us have done this right?

     

    I just finished a chat session myself. We skipped the PRAM and SMC resets and finally he suggested I reinstall the OS via the recovery partition without losing files and settings. Will probably have to try this soon. I also have a case number.

  • by dr-grim,

    dr-grim dr-grim Nov 22, 2013 6:30 AM in response to rcolonescu
    Level 1 (10 points)
    Nov 22, 2013 6:30 AM in response to rcolonescu

    Well, I've reset PRAM & SMC; also (by accident rather than design) had to reinstall Mavericks to a fresh partition - and it still triggered the 1 minute wake-up cycle.

     

    However.

     

    I've recently just stopped Google Drive & DropBox (still installed, just exited the programs)...

     

    ...and my MBA has successfully hibernated for several days now without triggering battery loss. Approx. 6 sleep/wake cycles so far, and all OK.

     

    I'm now reinstating Google Drive and will keep testing... if that succeeds, I'll try and bringing back in DropBox.

     

    Still yet to 100% certain find out exactly what is causing this tho'... hopefully my continued logging will help someone else!

  • by fskirschbaum,

    fskirschbaum fskirschbaum Nov 22, 2013 6:54 AM in response to dr-grim
    Level 1 (0 points)
    Nov 22, 2013 6:54 AM in response to dr-grim

    I will point out that I followed the instructions of removing the SystemConfiguration folder from /Library/Preferences and that have since set the hibernation to a low time (sudo pmset -b stanbydelay 15) and then have slept the machine on battery quite a few times now and have not had it wake up like it had been. (pmset -g stats says, "Dark Wake Count: 10").

     

    I will point out and I don't know that it has anything to do with anything but when I first changed my standbydelay I got warnings from pmset that my Display sleep should be lower than system sleep. Also, when I did pmset -g stats I saw that my 'sleep' was set to 1 and followed by (sleep prevented by apsd, apsd) which seemed a little strange to me. So, I did sudo pmset -b sleep 3 and sudo pmset -b displaysleep 2 and now I no longer have that (sleep prevented by apsd, apsd) (which is odd because that's the apple push service daemon...) is no longer in my list of settings. I doubt that's really anything but I figured I'd not it here. I will update if I see any changes now.

     

    I hope some of this might help.

  • by roninXpl,

    roninXpl roninXpl Nov 22, 2013 9:21 AM in response to rcolonescu
    Level 1 (0 points)
    Nov 22, 2013 9:21 AM in response to rcolonescu

    Same here with brand new RMBP 15". Haven't got this with previous version of retina… Trying to resolve with Apple support.

  • by jasonlancaster,

    jasonlancaster jasonlancaster Nov 23, 2013 3:53 AM in response to rcolonescu
    Level 1 (0 points)
    Nov 23, 2013 3:53 AM in response to rcolonescu

    There seems to be some sort of magic combination that makes the computer sleep properly. A combination of closing Dropbox and "sudo pmset -b standbydelay 604800" made my computer sleep successfully last night. @dr-grimm you might want to give that a try this evening and see what happens.

  • by dr-grim,

    dr-grim dr-grim Nov 23, 2013 7:28 AM in response to jasonlancaster
    Level 1 (10 points)
    Nov 23, 2013 7:28 AM in response to jasonlancaster

    Hi Jason,

     

    Thanks for the thought - I can see why your machine no longer wakes;

     

    sudo pmset -n standbydelay 604800

     

    Basically this will prevent the mac from entering full hibernate mode - it will remain in "sleep" and just nibble the battery.

     

    The problem seems to be when full hibernation triggers (i.e. standbydelay is hit) - and then 1 minute repeated dark wake (for me, problem was to do with "PID 17(powerd) Created InternalPreventSleep "PM configd - Wait for Device enumeration" 00:00:00  id:0xe000028a4 [System: No Assertions]" appearing in the log - check "pmset -g log").

     

    Oddly enough, my machine is now behaving. I have rebooted (fully) a few times, and after initially quitting DropBox & Google Drive [which removed the 1 minute wake problem], I restarted Google Drive, and the 1 minute wake was still fixed. I then restarted DropBox, everything still working. I have had numerous sleep cycles now with no power loss. For instance, the latest log looks like:

     

    23/11/2013 10:24:57 GMT  Sleep                         Clamshell Sleep: Using BATT (Charge:53%)                                             17323 secs

    23/11/2013 10:25:02 GMT  SlowResponse                  PMConnection: Response from com.apple.apsd is slow (powercaps:0x0)                             4162 ms   

    23/11/2013 10:25:02 GMT  WakeRequests                  Clients requested wake events: None                                                           

    23/11/2013 15:13:40 GMT  Wake                          Wake from Standby [CDNVA] due to EC.LidOpen/Lid Open: Using BATT (Charge:53%)                   

    23/11/2013 15:13:40 GMT  HibernateStats                hibmode=25 standbydelay=5                                                                      rd=408 ms 

     

    ...so nothing random waking it up (my standbydelay is set to 5 minutes).

     

    Maybe shutting down Google Drive and/or DropBox may fix this for someone? I then re-introduced them & the system remained stable... I'm still carefully watching the battery tho'

     

    Hope that helps!

  • by roninXpl,

    roninXpl roninXpl Nov 23, 2013 7:58 AM in response to rcolonescu
    Level 1 (0 points)
    Nov 23, 2013 7:58 AM in response to rcolonescu

    I pinnpointed my issue (RMBP 15" late 2013 + Mavericks) to external display. I have two connected: Apple Thunderbolt Display 27" (+ FW GoFlex 2TB) and Dell U2713H (via Mini Display Port). I also have USB 3 drive connected. After trying out different configuration of connected devices and enabled interfaces (WiFi, BT etc) it appears that for me the cause is the Dell display. It's strange though as the same configuration hadn't caused any problems with RMBP 15" 2012.

    In my pmset logs I can see a lot of `Sleep Dark Wake Thermal Emergency: Using AC (Charge:100%)` messages when the display is connected.

  • by xes13,

    xes13 xes13 Nov 23, 2013 4:36 PM in response to rcolonescu
    Level 1 (0 points)
    Nov 23, 2013 4:36 PM in response to rcolonescu

    Quiting Google Drive does not solve this issue for me ... after standbydelay is over my mac still goes into 1 minute wakeups instead of hibernate. Setting standbydelay to a very high value is still the best option for now in my case.

     

    XES

  • by dr-grim,

    dr-grim dr-grim Nov 24, 2013 6:34 AM in response to xes13
    Level 1 (10 points)
    Nov 24, 2013 6:34 AM in response to xes13

    One thing to bear in mind:

     

    If you set standbydelay to something small (e.g. 2 minutes), it makes life a lot easier when testing for the 1 minute dark wake issue. Otherwise I had to wait for the 3 hours before dark wake kicked off... not ideal when trying lots of alternatives.

     

    Try safe mode - did that fix it for you? i.e. if you boot in safe mode, does hibernation work after standbydelay? It did for me - other people have had the dark wake issue during safe boot...

     

    If so, you then have to narrow down (ouch) which application is causing the issue... for me, dropbox/google drive were the problem. Allegedly.

     

    I can only assume DropBox & GoogleDrive were somehow confused by the Mavericks upgrade and possibly conflicted with each other (e.g. if they masquerade as a hardware driver)... but I'm not convinced

  • by xes13,

    xes13 xes13 Nov 24, 2013 8:52 AM in response to rcolonescu
    Level 1 (0 points)
    Nov 24, 2013 8:52 AM in response to rcolonescu

    I have tried to reduce standbydelay for testing purposes but I could not find a proper reason for this 1minute wakeups .... deleting SystemConfiguration folder as fskirschbaum sugested helped ... but after two days 1minute wakeups are back ... As far as I can tell it is something very very wrong with MacOS X Mavericks .... I started with Mavericks on both of my two macs, but used other macs with mountain lion in the past and did not have this 1minute wakeup issue. Other people on this forum have also noticed that this battery drainage problem occured when they switched to Mavericks. Hopefully we will see a fix soon ... utill then a very long standbydelay is the only workarround (it is not a fix) that will for sure prevent battery drainage over night!

     

    XES

  • by Swedish Frog,

    Swedish Frog Swedish Frog Nov 24, 2013 11:36 AM in response to jasonlancaster
    Level 1 (0 points)
    Nov 24, 2013 11:36 AM in response to jasonlancaster

    I don't think it was the combination that did it.  We've pretty well established now that the problems happen when the machine tries to hibernate... changing standbydelay to a huge number prevents that from happening.

  • by xes13,

    xes13 xes13 Nov 24, 2013 12:30 PM in response to Swedish Frog
    Level 1 (0 points)
    Nov 24, 2013 12:30 PM in response to Swedish Frog

    Yes, postponing hibernation is a workarround ... mac sleeps, but does not try to hibernate after standbydelay is over (to save even more battery). I have done a lot of testing, and so did other users of this forum and we are unable to pinpoint exact reason why this 1minute wakeup happens. pmset -g log does not reveal a real culprit for this issue. Since this did not happen on Mountain Lion we can only come to a conclusion it is a Mavericks bug that should be fixed by Apple.

  • by dr-grim,

    dr-grim dr-grim Nov 24, 2013 12:41 PM in response to xes13
    Level 1 (10 points)
    Nov 24, 2013 12:41 PM in response to xes13

    Bottom line - check the output of:

     

    pmset -g log

     

    I kept getting device enumerations which implied a piece of hardware wasn't behaving... such as:

     

    19/11/2013 16:44:21 GMT  Assertions                    PID 17(powerd) Created InternalPreventSleep "PM configd - Wait for Device enumeration" 00:00:00  id:0xe000027b5 [System: No Assertions]                   

    19/11/2013 16:44:21 GMT  DarkWake                      DarkWake [CDN]  : Using BATT (Charge:20%)                                            45 secs  

    19/11/2013 16:44:21 GMT  SlowResponse                  Kernel: Response from powerd is slow

     

    For some wierd reason, these have now stopped. Safe mode caused the issue to go away, which suggests it was either a driver or a piece of software I had installed... but other people's problems may be caused by another reason. If you get the same issues in the log, try safe mode & check if that clears up the issue...

  • by roninXpl,

    roninXpl roninXpl Nov 24, 2013 12:55 PM in response to rcolonescu
    Level 1 (0 points)
    Nov 24, 2013 12:55 PM in response to rcolonescu

    One could also try to create another administrator profile, log out of the current one, log in to the new one and check if this happens. For me it didn't change much.

    What I haven't tried is to make a fresh install and create a freash profile there.

  • by Hermespdx,

    Hermespdx Hermespdx Nov 30, 2013 9:49 AM in response to rcolonescu
    Level 1 (0 points)
    Nov 30, 2013 9:49 AM in response to rcolonescu

    Same problem with Late 2013 rMBP 13". Syslog shows when hibernation attempted, machine gets woken up every minute, draining battery.

     

    I tend to agree with the suggestion that a user program is a likely culprit. I stopped dropbox and google drive, but no change. I then uninstalled Avast and this problem is solved for me.

     

    If you have Avast or Sophos, try uninstalling to see if it corrects the problem.

first Previous Page 4 of 9 last Next