MacBook – How to stop AirPort from waking the Macbook Pro

airportmacbook prosleep-wake

Recently I have noticed my MacBook Pro is completely discharging when I leave it to sleep. After investigation I've discovered traces similar to the following in the Console output:

24/01/2014 18:35:11.000 kernel[0]: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
24/01/2014 18:35:57.000 kernel[0]: Wake reason: XHC1
24/01/2014 18:36:01.000 kernel[0]: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
24/01/2014 18:37:01.000 kernel[0]: Wake reason: XHC1
24/01/2014 18:37:05.000 kernel[0]: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
24/01/2014 18:37:50.000 kernel[0]: Wake reason: XHC1
24/01/2014 18:37:55.000 kernel[0]: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
24/01/2014 18:38:56.000 kernel[0]: Wake reason: XHC1
24/01/2014 18:38:59.000 kernel[0]: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake

And so on and so forth until it eventually kills the battery and it gives up altogether. Obviously this is, er, unhelpful and I'd like it to stop. I've unticked 'wake for network access' in the energy saver settings but it makes no difference. I've disabled 'allow Bluetooth devices to wake this computer' and switch Bluetooth off. I've also unplugged all peripherals before sleep to check it wasn't something else triggering it. I have, of course, tried restarting.

This is a mid 2012 MacBook Pro, currently running OS X 10.9.1 but it was happening with 10.8.4 as well.

Can anyone suggest how I can stop this happening?

Edit: More information, as requested in the comments

pmset -g log | grep wake gives pages of this

24/01/2014 18:33:55 GMT  WakeRequests           Clients requested wake events: None                                                   
24/01/2014 18:35:01 GMT  WakeRequests           Clients requested wake events: None                                                   
24/01/2014 18:35:50 GMT  WakeRequests           Clients requested wake events: None                                                   
24/01/2014 18:36:55 GMT  WakeRequests           Clients requested wake events: None                                                   
24/01/2014 18:37:44 GMT  WakeRequests           Clients requested wake events: None                                                   
24/01/2014 18:38:49 GMT  WakeRequests           Clients requested wake events: None                                                   
24/01/2014 18:39:15 GMT  WakeRequests           Clients requested wake events: None                                                   
24/01/2014 18:40:20 GMT  WakeRequests           Clients requested wake events: None                                                   
24/01/2014 18:41:24 GMT  WakeRequests           Clients requested wake events: None

interspersed with occasional sections like this:

24/01/2014 17:40:47 GMT  Assertions             PID 18(powerd) Created InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:00  id:0xe000008ff [System: SRPrevSleep kCPU]            
24/01/2014 17:41:02 GMT  Assertions             PID 18(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15  id:0xe000008ff [System: SRPrevSleep kCPU]           
24/01/2014 17:41:02 GMT  Assertions             PID 18(powerd) Released InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15  id:0xe000008ff [System: SRPrevSleep kCPU]           
24/01/2014 17:41:07 GMT  WakeRequests           Clients requested wake events: None

Best Answer

You have gotten pretty far and tried several things. Found this gem: http://support.apple.com/kb/PH11080 which has a list of things, some of which you have already done.

XHC1 refers to a Bluetooth device that is trying to wake your system but the fact that you are getting a output of "AirPort_Brcm43xx", the AirPort message pointed me to: https://discussions.apple.com/thread/4645214?tstart=0

And if you have everything unplugged, BT is off and you have disabled the "Wake for network access" then I have a tendency to think that your OS is corrupted. I would go so far as to say that Power Nap is the service is that causing this but hard to say without for logs and I don't have that much free time! ;)

Unfortunately in the Apple discussion there was no marked answer/solution so if the issue still remains after a reinstall or test OS then you might have a hardware issue. You could also try resetting the SMC (http://support.apple.com/kb/ht3964) maybe the AirPort/Bluetooth card and MLB need a quick power cycle via the reset.

Hope that helps in some way.