You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

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. User uploaded file

MacBook Air, OS X Mavericks (10.9)

Posted on Oct 30, 2013 6:03 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 30, 2013 1:01 PM

I'm suffering from the same thing - MBA 2013, wakes every 1 minute and drains the battery overnight. Very odd. Mountain Lion didn't do this! 😟


pmset -g log

Also produced a repeated set of info, every ~1 minute, the following is repeated. Anyone any thoughts? I've reset PRAM and SMC...


30/10/2013 10:51:24 GMT DarkWake DarkWake [CDN] : Using BATT (Charge:0%) 22 secs

30/10/2013 10:51:24 GMT HibernateStats hibmode=3 standbydelay=10800 rd=1548 ms

30/10/2013 10:51:24 GMT SlowResponse Kernel: Response from powerd is slow (powercaps:0x0) 28209 ms

30/10/2013 10:51:29 GMT Assertions PID 16(powerd) Released InternalPreventSleep "PM configd - Wait for Device enumeration" 00:00:05 id:0xe00002767 [System: PushSrvc kCPU]

30/10/2013 10:51:46 GMT Sleep Maintenance Sleep: Using BATT (Charge:0%) 51 secs

30/10/2013 10:51:48 GMT SlowResponse PMConnection: Response from com.apple.apsd is slow (powercaps:0x0) 1992 ms

30/10/2013 10:52:14 GMT Timedout PMConnection: Response from CMacPowerHelper timed out (powercaps:0x0) 28150 ms

30/10/2013 10:52:14 GMT Timedout PMConnection: Response from CMacPowerHelper timed out (powercaps:0x0) 28151 ms

30/10/2013 10:52:14 GMT WakeRequests Clients requested wake events: None

30/10/2013 10:52:37 GMT Assertions PID 16(powerd) Created InternalPreventSleep "PM configd - Wait for Device enumeration" 00:00:00 id:0xe00002779 [System: No Assertions]

134 replies

Dec 18, 2013 8:54 AM in response to rcolonescu

Hi, been experiencing this wake issue as well, and I may have narrowed it down in my case to the headphones being plugged into the jack; at least removing them seems to have stopped the waking up after 1 minute


Have this in console:

12/18/2013 8:37:43.000 AM kernel[0]: Wake reason: EHC1

...

12/18/2013 8:38:13.000 AM kernel[0]: The USB device HubDevice (Port 1 of Hub at 0x1d000000) may have caused a wake by issuing a remote wakeup (2)

12/18/2013 8:38:13.000 AM kernel[0]: The USB device HubDevice (Port 8 of Hub at 0x1d100000) may have caused a wake by issuing a remote wakeup (3)

12/18/2013 8:38:13.000 AM kernel[0]: The USB device BRCM20702 Hub (Port 1 of Hub at 0x1d180000) may have caused a wake by issuing a remote wakeup (3)

12/18/2013 8:38:13.000 AM kernel[0]: The USB device Bluetooth USB Host Controller (Port 3 of Hub at 0x1d181000) may have caused a wake by issuing a remote wakeup (3)


Note that Port 1 is repeated twice, and according to this page that may line up with the headphone jack for my iMac: http://support.apple.com/kb/HT5522


Just want to throw this into the thread

Dec 19, 2013 1:40 AM in response to rcolonescu

I have the same problem, MBA 2013 with mavericks 10.9.1


This is a part of the log from this night (I set it to sleep and by morning the battery was drained):


2013-12-19 02:59:49,000 kernel[0]: sleep 2013-12-19 02:59:49,000 kernel[0]: hibernate_rebuild started 2013-12-19 02:59:49,000 kernel[0]: hibernate_rebuild_pmap_structs done: last_valid_compact_indx 408343 2013-12-19 02:59:49,000 kernel[0]: hibernate_rebuild completed - took 63 msecs 2013-12-19 02:59:49,000 kernel[0]: Wake reason: ? 2013-12-19 02:59:49,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340 2013-12-19 02:59:49,000 kernel[0]: AppleCamIn::wakeEventHandlerThread 2013-12-19 02:59:49,000 kernel[0]: Previous Sleep Cause: -113 2013-12-19 02:59:49,000 kernel[0]: AppleHSSPIController::HandleMessage Device Wake by Host 2013-12-19 02:59:49,000 kernel[0]: **** [IOBluetoothHostControllerUSBTransport][SuspendDevice] -- Resume -- suspendDeviceCallResult = 0x0000 (kIOReturnSuccess) -- 0xc400 **** 2013-12-19 02:59:49,000 kernel[0]: ARPT: 3827.757952: si_survive_perst_war: bar0win before 18003000, bar0win after 18001000 2013-12-19 02:59:49,419 hidd[70]: MultitouchHID: device bootloaded 2013-12-19 02:59:49,000 kernel[0]: ARPT: 3827.978830: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake 2013-12-19 02:59:49,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340 2013-12-19 02:59:49,000 kernel[0]: AppleCamIn::wakeEventHandlerThread 2013-12-19 02:59:49,752 UserEventAgent[11]: Captive: CNPluginHandler en0: Inactive 2013-12-19 02:59:49,762 WindowServer[102]: _CGXHWCaptureWindowList: No capable active display found. 2013-12-19 02:59:49,768 configd[18]: network changed: v4(en0-:192.168.0.107) DNS- Proxy- 2013-12-19 02:59:54,000 kernel[0]: AppleCamIn::handleWakeEvent_gated 2013-12-19 02:59:54,000 kernel[0]: AppleCamIn::handleWakeEvent_gated 2013-12-19 02:59:54,857 SystemUIServer[279]: Menu Extra: is over retained. 2013-12-19 02:59:57,000 kernel[0]: ARPT: 3835.863507: MacAuthEvent en0 Auth result for: 28:10:7b:ce:37:72 MAC AUTH succeeded 2013-12-19 02:59:57,000 kernel[0]: wlEvent: en0 en0 Link UP virtIf = 0 2013-12-19 02:59:57,000 kernel[0]: AirPort: Link Up on en0 2013-12-19 02:59:57,000 kernel[0]: en0: BSSID changed to 28:10:7b:ce:37:72 2013-12-19 02:59:57,000 kernel[0]: AirPort: RSN handshake complete on en0 2013-12-19 02:59:57,634 configd[18]: network changed: DNS* Proxy 2013-12-19 02:59:57,640 mDNSResponder[62]: mDNS_RegisterInterface: Frequent transitions for interface en0 (FE80:0000:0000:0000:8638:35FF:FE48:DB2A) 2013-12-19 02:59:57,640 mDNSResponder[62]: mDNS_RegisterInterface: Frequent transitions for interface en0 (192.168.0.107) 2013-12-19 02:59:57,641 UserEventAgent[11]: Captive: [CNInfoNetworkActive:1655] en0: SSID 'gerthkhan' making interface primary (cache indicates network not captive) 2013-12-19 02:59:57,642 UserEventAgent[11]: Captive: CNPluginHandler en0: Evaluating 2013-12-19 02:59:57,646 configd[18]: network changed: v4(en0!:192.168.0.107) DNS+ Proxy+ SMB 2013-12-19 02:59:57,646 UserEventAgent[11]: Captive: en0: Not probing 'gerthkhan' (cache indicates not captive) 2013-12-19 02:59:57,647 UserEventAgent[11]: Captive: CNPluginHandler en0: Authenticated 2013-12-19 02:59:57,000 dnsmasq[254]: ignoring nameserver 127.0.0.1 - local interface 2013-12-19 02:59:57,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1 2013-12-19 02:59:58,328 apsd[82]: Unrecognized leaf certificate 2013-12-19 02:59:58,393 airportd[84]: _doAutoJoin: Already associated to “gerthkhan”. Bailing on auto-join. 2013-12-19 03:00:23,000 kernel[0]: ARPT: 3862.148153: AirPort_Brcm43xx::powerChange: System Sleep 2013-12-19 03:00:23,000 kernel[0]: ARPT: 3862.148158: wl0: powerChange: *** BONJOUR/MDNS OFFLOADS ARE NOT RUNNING. 2013-12-19 03:00:23,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340 2013-12-19 03:00:24,000 kernel[0]: hibernate image path: /var/vm/sleepimage 2013-12-19 03:00:24,000 kernel[0]: efi pagecount 63 2013-12-19 03:00:24,000 kernel[0]: hibernate_page_list_setall(preflight 1) start 0xffffff80e4c33000, 0xffffff80e4c73000 2013-12-19 03:00:24,000 kernel[0]: hibernate_page_list_setall time: 220 ms 2013-12-19 03:00:24,000 kernel[0]: pages 1199084, wire 412017, act 259403, inact 98934, cleaned 0 spec 409, zf 462, throt 0, compr 271324, xpmapped 99652 2013-12-19 03:00:24,000 kernel[0]: could discard act 42837 inact 83038 purgeable 7443 spec 23217 cleaned 0 2013-12-19 03:00:24,000 kernel[0]: hibernate_page_list_setall preflight pageCount 412017 est comp 50 setfile 890456328 min 1073741824 2013-12-19 03:00:24,000 kernel[0]: [0x5b1c837000, 0x19000000] 2013-12-19 03:00:24,000 kernel[0]: [0x5b8c857000, 0x19000000] 2013-12-19 03:00:24,000 kernel[0]: [0x5bb59ec000, 0xe000000] 2013-12-19 03:00:24,000 kernel[0]: [0x0, 0x0] 2013-12-19 03:00:24,000 kernel[0]: kern_open_file_for_direct_io(0) took 0 ms 2013-12-19 03:00:24,000 kernel[0]: Opened file /var/vm/sleepimage, size 1073741824, partition base 0x0, maxio 2000000 ssd 1 2013-12-19 03:00:24,000 kernel[0]: hibernate image major 1, minor 0, blocksize 4096, pollers 5 2013-12-19 03:00:24,000 kernel[0]: IOThunderboltSwitch<0xffffff8024e5fc00>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 11 unplug = 0 2013-12-19 03:00:24,000 kernel[0]: IOThunderboltSwitch<0xffffff8024e5fc00>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 12 unplug = 0 2013-12-19 03:00:41,000 kernel[0]: vm_compressor_flush - starting 2013-12-19 03:00:41,000 kernel[0]: vm_compressor_flush completed - took 7226 msecs 2013-12-19 03:00:41,000 kernel[0]: hibernate_flush_memory: buffer_cache_gc freed up 2553 wired pages 2013-12-19 03:00:41,000 kernel[0]: hibernate_alloc_pages act 143381, inact 182378, anon 215, throt 0, spec 23594, wire 425295, wireinit 141342 2013-12-19 03:00:41,000 kernel[0]: hibernate_setup(0) took 8663 ms 2013-12-19 03:00:41,000 kernel[0]: en0: BSSID changed to 28:10:7b:ce:37:72 2013-12-19 03:00:41,000 kernel[0]: ARPT: 3871.496909: scanparams: 2013-12-19 03:00:41,000 kernel[0]: ARPT: 3871.496912: flags 0 2013-12-19 03:00:41,000 kernel[0]: ARPT: 3871.496914: active_time 0, passive_time 0 2013-12-19 03:00:41,000 kernel[0]: ARPT: 3871.496915: scan_start_delay 0 2013-12-19 03:00:41,000 kernel[0]: ARPT: 3871.496917: scan_cycle_idle_rest_time 0, scan_cycle_idle_rest_time_multiplier 0 2013-12-19 03:00:41,000 kernel[0]: ARPT: 3871.496920: max_scan_cycles 0, max_rest_time 0 2013-12-19 03:00:41,000 kernel[0]: ARPT: 3871.496921: Scan Channels (0): None 2013-12-19 03:00:41,000 kernel[0]: ARPT: 3871.496923: SSID (0): None 2013-12-19 03:00:41,000 kernel[0]: ARPT: 3871.496925: SSID count = 0 2013-12-19 03:00:41,000 kernel[0]: ARPT: 3871.496927: wl0: leaveModulePoweredForOffloads: Wi-Fi will turn off. 2013-12-19 03:00:41,000 kernel[0]: Bluetooth -- LE is supported - Disable LE meta event 2013-12-19 03:00:41,000 kernel[0]: wlEvent: en0 en0 Link DOWN virtIf = 0 2013-12-19 03:00:41,000 kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving). 2013-12-19 03:00:41,000 kernel[0]: **** [IOBluetoothHostControllerUSBTransport][SuspendDevice] -- Suspend -- suspendDeviceCallResult = 0x0000 (kIOReturnSuccess) -- 0xc400 **** 2013-12-19 03:00:41,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340 2013-12-19 03:00:34,000 kernel[0]: AppleThunderboltNHIType2::waitForOk2Go2Sx - retries = 3 2013-12-19 03:00:41,000 kernel[0]: hibernate_page_list_setall(preflight 0) start 0xffffff80e4c33000, 0xffffff80e4c73000 2013-12-19 03:00:41,000 kernel[0]: hibernate_teardown started 2013-12-19 03:00:41,000 kernel[0]: hibernate_teardown: wired_pages 425785, free_pages 1564266, active_pages 85181, inactive_pages 5372, speculative_pages 399, cleaned_pages 0, compressor_pages 46 2013-12-19 03:00:41,000 kernel[0]: hibernate_teardown_pmap_structs done: last_valid_compact_indx 401188 2013-12-19 03:00:41,000 kernel[0]: hibernate_teardown: mark_as_unneeded_pages 4096, 26435, 16812 2013-12-19 03:00:41,000 kernel[0]: hibernate_teardown completed - discarded 47343 2013-12-19 03:00:41,000 kernel[0]: hibernate_page_list_setall time: 515 ms 2013-12-19 03:00:41,000 kernel[0]: pages 712796, wire 363397, act 85181, inact 5372, cleaned 0 spec 399, zf 0, throt 0, compr 46, xpmapped 90952 2013-12-19 03:00:41,000 kernel[0]: did discard act 50757 inact 177006 purgeable 7443 spec 23195 cleaned 0 2013-12-19 03:00:41,000 kernel[0]: hibernate_page_list_setall found pageCount 454395 2013-12-19 03:00:41,000 kernel[0]: IOHibernatePollerOpen, ml_get_interrupts_enabled 0 2013-12-19 03:00:41,000 kernel[0]: IOHibernatePollerOpen(0) 2013-12-19 03:00:41,000 kernel[0]: encryptStart 14020 2013-12-19 03:00:41,000 kernel[0]: bitmap_size 0x3f908, previewSize 0x3d0e68, writing 453084 pages @ 0x424790 2013-12-19 03:00:41,000 kernel[0]: encryptEnd 2c354200 2013-12-19 03:00:41,000 kernel[0]: image1Size 0x2fe1a000, encryptStart1 0x14020, End1 0x2c354200 2013-12-19 03:00:41,000 kernel[0]: encryptStart 2fe1a000 2013-12-19 03:00:41,000 kernel[0]: PMStats: Hibernate write took 5592 ms 2013-12-19 03:00:41,000 kernel[0]: all time: 5592 ms, comp bytes: 1774800896 time: 2165 ms 781 Mb/s, crypt bytes: 1012031968 time: 2681 ms 359 Mb/s, 2013-12-19 03:00:41,000 kernel[0]: image 0 (0%), uncompressed 1774796800 (433300), compressed 1065837888 (60%), sum1 71977686, sum2 94353644 2013-12-19 03:00:41,000 kernel[0]: zeroPageCount 52634, wiredPagesEncrypted 326194, wiredPagesClear 36024, dirtyPagesEncrypted 71083 2013-12-19 03:00:41,000 kernel[0]: hibernate_write_image done(e00002e8) 2013-12-19 03:00:41,000 kernel[0]: sleep 2013-12-19 03:00:41,000 kernel[0]: hibernate_rebuild started 2013-12-19 03:00:41,000 kernel[0]: hibernate_rebuild_pmap_structs done: last_valid_compact_indx 401188 2013-12-19 03:00:41,000 kernel[0]: hibernate_rebuild completed - took 82 msecs 2013-12-19 03:00:41,000 kernel[0]: Wake reason: ?

Dec 19, 2013 3:25 AM in response to rcolonescu

Hi.


Ive got the same "problem", MacbookAir6,2, 8GB, osx 10.9, no antivirus installed.


Problem is in quotes, since it is not really a problem. All you have to do is disable 'standby':

sudo pmset -a standby 0

There is no need to set a ridiculously high value for 'standbydelay', just disable the feature.

Which, i dont think ppl really understand what it means.

It means, that if the machine is in sleep already (system state kept in memory), after 'standbydelay' seconds, it will attempt deep sleep, i.e. hibernation. Now, this feature is useless, at least for me.

What all this comes down to, is battery life. I have a good battery, so i dont really want my machine to hibernate, since on full charge, apple says, it can power the machine in sleep for 30 days, iirc. If you have a shatty battery, you should hibernate instead, it is really fast on these ssd's. The way to achive that, is to change 'hibernatemode':

sudo pmset -a hibernatemode 1

or

sudo pmset -a hibernatemode 25

(read 'man pmset' for the difference)

Now when you make your machine sleep, it will go into hibernation directly. When it wakes from this state, you will see a blurred image of your then current desktop with a blue tint and a progressbar.



Now, come some observation/speculation:

The MBA has the fan always spinning when there is system activity, i.e. when it is not sleeping, even if it wakes because of the 'standby' feature, so if you put your ears close to the chassis you can hear it. Another thing, is that you can actually hear when the ssd is really active, at least a special kind of noise corresponds to that. (i dont know the exact cause of this kind of noise, but you can observe it for some kinds of hardware, e.g. graphics cards, i think some condensator is driven near audible frequencies or something) (Also, the fan spinning at ~1200 rpm constantly is annoying in a slient room, it is better at ~1000 rpm).

So, when i try pure hibernation, even though i have 8GB of physical ram, the system only creates a 4GB or 4.2GB sleepimage. So that size at least is needed for hibernation, since i observed several perfectly fine hibernation cycles. (i just mention, that i have swapping disabled). Now, whenever the 'standby' feature tries to hibernate the machine from sleep, it will only create a 1GB sleepimage, which is clearly not enough to back up memory. Also, compared the time i hear the ssd noise when it cleanly hibernates to the time i hear the ssd in the failed case, is, i would say 4:1.


In conclusion, i would suggest you disable 'standby' and set 'hibernatemode' to 0. Or to 3, which would hibernate when battery cannot keep the machine in sleep state anymore, but i cant confirm if that hibernation fails or not(i would guess it would fail).

Dec 29, 2013 12:38 PM in response to Liquid.Phynix

Many thanks to Liquid.Phynix because I think the analysis of the problem and the proposed solution works.


I set my MBA to be:


sudo pmset -a hibernatemode 25


As stated in the manual,

The system will store a copy of memory to persistent storage (the disk), and will remove power to memory. The system will restore from disk image. If you want "hibernation" - slower sleeps, slower wakes, and better battery life, you should use this setting.


It seems that this means that standby will never be used. However, to be safe I set standby to 0 disabling it.


I have tested it for a few days. When it sleeps at 100% at midnight, in the morning it is still at 100%. This completely solves the problem.

Jan 5, 2014 10:50 AM in response to TBayes

Tuning off standby and setting the hibernate mode to 25 solved this for me and I happen to be running Avast AV as well. I've experienced one wake from hibernate failure after 30-40 separate sleeps. Specifically I did the following:


sudo pmset -b standby 0

sudo pmset -b standbydelay 0

sudo pmset -b hibernatemode 25


'man pmset' explains the above as previously mentioned.


This is on a new 13" MacBook Pro Retina. My late 2012 MacBook Pro 15" Retina does not experience this problem using the default settings and also running avast and a slew of other background apps (FitBit, etc.). Both systems are running 10.9.1. On the 15" Retina system my settings are:


standby 1

standbydelay 4800

hibernatemode 3

Jan 22, 2014 11:47 AM in response to rcolonescu

I am using a macbook pro 13 with retina display which runs mavericks 10.9.1.


I had the same issue of computer waking up from sleep every minute and discharging the battery.


I tried Liquid.Phynix solution of disabling standby mode and it worked.


But later I realized that the main culprit was the sleep timer and not the standby mode. I guess after few software updates, the sleep timer in my laptop was automatically changed to a value 1. Initially I thought that it was a boolean value of either 0 or 1. Later I found out that it was actually the time lapse in minutes after which the computer goes to sleep.


I changed it to 15, a value higher than or equal to displaysleep and disksleep (sudo pmset -b sleep 15) and enabled standy mode (i.e. sudo pmset -b standy 1 standby delay 10800) . This solved the issue of waking from sleep everyminute. I have done sleep tests for 3 consecutive nights and can confirm that this works for me.


However, I dont know the exact reasons for why this works.

Feb 1, 2014 7:11 AM in response to rcolonescu

My problem was solved (at least temporarily)!!


I had the exact same issue with my Macbook Pro 13" Retina (late 2013 model). Apparently there is a problem with Hybernation mode in the Mavericks OS where the computer awakes every couple of minutes. Our IT guy told me that Apple is working on a patch but not yet out. He set my Hybernation mode to start after 7 days of computer idle (which basically means it never goes into hybernation), and this morning my battery was still fully charged! I'm sorry but I can't tell you how to make this setting change, it's not something easily accessible in System Preferences, so you will need to contact Apple.

MBA mid-2013 wakes from sleep every minute on Mavericks

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