Apple Event: May 7th at 7 am PT

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

Sleep interrupt problems when connected to certain external displays

I own a new MacBook Pro Retina (Early 2015) and have an annoying problem with sleep/standby if connected to certain external displays.

Sleep/Standby of the MacBook is interrupted (darkwake) in short intervals (about 3 seconds sleep, 6-30 seconds darkwake) if the monitor is connected. The problem appears only with some displays/connection scenarios.

Test scenarios

I have tested different setups (multiple monitors, cables and adapters) and documented them in a google docs table:

https://docs.google.com/spreadsheets/d/1Ff3RVbXZH9Va6gxSvSJ5OswZCTBynF50hTIQPWia cMw/edit#gid=1725089637

A selection of these scenarios:

Setup 1. problem appears only when power adapter is connected to the MacBook

MacBook connected with a mini DisplayPort to DisplayPort cable to a LG 29UB55-B display (monitor has a native DisplayPort) without any adapters.

Problem only appears when power adapter is connected to the MacBook in this setup.

Setup 2. problem appears

MacBook connected with a mini DisplayPort to HDMI adapter and HDMI cable to aLG 29UB55-B display

Setup 3. works fine (but by specification not with full resolution of 2560x1080, just 1080p)

MacBook connected with a mini DisplayPort to HDMI adapter and HDMI cable to a BENQ E2220HD display

Setup 4. works fine

MacBook connected with a mini DisplayPort to HDMI adapter and HDMI cable to a LG FLATRON W2442PE display


Additional information, things already done

  • All monitors working well with an older MacBook Pro (Mid 2009) with OS X 10.9. But this isn't actually a real comparison :-/
  • If the MacBook is connected with the native HDMI Port everything is fine
  • System Settings

    Powermanagement

    • disabled "Wake for Wi-Fi network access
    • disabled "Enable Power Nap ..."
  • SMC and NVRAM reset
  • deleted /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
  • clean Mac OS X Yosemite install
  • different pmset configurations
    • standbydelay 0 (default 10800)
    • standby 0 (default 1)
    • autopoweroff 0 (default 1)

Cry for help 😉

Since the problem does not appear just with a single monitor I don't believe in a hardware defect of the monitors. But it can't be a software bug alone either.

Maybe a strange "hardware specification disagreement" (HDMI/DP port pin allocation, grounding problems, ...)

Is there some one out there who has a similar problem or has an idea what's going on here?

I contacted the apple support as well and the problem was directed to "the engineers in cupertino"... pending.

LG monitor support says "It's not our problem since you have the same problem with other monitors". -.-

Log files

pmset -g log for setup 2

Time stamp                Domain               Message                                                                     Duration   Delay   
==========                ======               =======                                                                     ========   =====   
UUID: DF6963BC-22DB-4932-974D-9CDB185ED38E
2015-05-07 09:50:20 +0200 Notification         Display is turned off                                                               
2015-05-07 09:50:20 +0200 Assertions           PID 95(hidd) Summary UserIsActive "com.apple.iohideventsystem.queue.tickle" 00:24:50  id:0x900000197 [System: DeclUser kDisp]         
2015-05-07 09:50:20 +0200 Assertions           PID 49(powerd) Created InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:00  id:0xd000002f0 [System: DeclUser SRPrevSleep kCPU kDisp]         
2015-05-07 09:50:35 +0200 Assertions           PID 49(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15  id:0xd000002f0 [System: DeclUser SRPrevSleep kCPU kDisp]         
2015-05-07 09:50:35 +0200 Sleep                Entering Sleep state due to 'Software Sleep pid=91': Using BATT (Charge:100%) TCPKeepAlive=active 4 secs  
2015-05-07 09:50:38 +0200 Wake Requests        [*proc=powerd request=TCPKATurnOff inDelta=43242]         
2015-05-07 09:50:38 +0200 PM Client Acks       Delays to Sleep notifications: [com.apple.apsd is slow(2241 ms)] [discoveryd is slow(3052 ms)]         
2015-05-07 09:50:39 +0200 Kernel Client Acks   Delays to Sleep notifications: [powerd is slow(3057 ms)] [AppleThunderboltNHIType2 driver is slow(msg: WillChangeState to 2)(363 ms)]         
2015-05-07 09:50:39 +0200 DarkWake             DarkWake [CDN] due to EC.DarkPME/Maintenance: Using BATT (Charge:100%)      0 secs  
2015-05-07 09:50:39 +0200 Sleep                Entering Sleep state due to 'Maintenance Sleep': Using BATT (Charge:100%) TCPKeepAlive=active 9 secs  
2015-05-07 09:50:42 +0200 Wake Requests        [*proc=powerd request=TCPKATurnOff inDelta=43237]         
2015-05-07 09:50:42 +0200 PM Client Acks       Delays to Sleep notifications: [com.apple.apsd is slow(1600 ms)] [discoveryd is slow(3400 ms)]         
2015-05-07 09:50:48 +0200 Kernel Client Acks   Delays to Sleep notifications: [AirPort_Brcm4360 driver is slow(msg: SetState to 2)(309 ms)] [RP03 driver is slow(msg: SetState to 1)(1106 ms)] [powerd is slow(3402 ms)]         
2015-05-07 09:50:48 +0200 DarkWake             DarkWake [CDN] due to EC.DarkPME/Maintenance: Using BATT (Charge:100%)      0 secs  
2015-05-07 09:50:48 +0200 Kernel Client Acks   Delays to Wake notifications: [UPSB driver is slow(msg: SetState to 2)(363 ms)]         
2015-05-07 09:50:48 +0200 Sleep                Entering Sleep state due to 'Maintenance Sleep': Using BATT (Charge:100%) TCPKeepAlive=active 9 secs  
2015-05-07 09:50:52 +0200 Wake Requests        [*proc=powerd request=TCPKATurnOff inDelta=43228]         
2015-05-07 09:50:52 +0200 PM Client Acks       Delays to Sleep notifications: [com.apple.apsd is slow(1458 ms)] [discoveryd is slow(3592 ms)]         
2015-05-07 09:50:57 +0200 Kernel Client Acks   Delays to Sleep notifications: [AirPort_Brcm4360 driver is slow(msg: SetState to 2)(305 ms)] [RP03 driver is slow(msg: SetState to 1)(1113 ms)] [powerd is slow(3595 ms)]         
2015-05-07 09:50:57 +0200 DarkWake             DarkWake [CDN] due to EC.DarkPME/Maintenance: Using BATT (Charge:100%)      0 secs  
2015-05-07 09:50:57 +0200 Sleep                Entering Sleep state due to 'Maintenance Sleep': Using BATT (Charge:100%) TCPKeepAlive=active 1 secs  
2015-05-07 09:50:57 +0200 Notification         Display is turned on                                                                
2015-05-07 09:50:58 +0200 Wake                 Wake [CDNVA] due to EC.DarkPME/HID Activity: Using BATT (Charge:100%)               
2015-05-07 09:50:58 +0200 Kernel Client Acks   Delays to Wake notifications: [AirPort_Brcm4360 driver is slow(msg: SetState to 2)(306 ms)] [AppleIntelFramebuffer driver is slow(msg: SetState to 2)(341 ms)] [AppleIntelFramebuffer driver is slow(msg: SetState to 2)(624 ms)] [RP03 driver is slow(msg: SetState to 1)(1110 ms)] [AppleHDADriver driver is slow(msg: SetState to 1)(407 ms)] [AppleHDAController driver is slow(msg: DidChangeState to 2)(507 ms)] [AppleBacklightDisplay driver is slow(msg: SetState to 3)(516 ms)]         
2015-05-07 09:51:00 +0200 PM Client Acks       Delays to Sleep notifications: [com.apple.apsd is slow(667 ms)] [discoveryd is slow(3453 ms)]         

Total Sleep/Wakes since boot at 2015-05-07 09:23:37 +0200 :13

2015-05-07 09:51:11 +0200 :Showing all currently held IOKit power assertions
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Listed by owning process:
   pid 95(hidd): [0x0000007200090197] 00:25:41 UserIsActive named: "com.apple.iohideventsystem.queue.tickle"
Timeout will fire in 112 secs Action=TimeoutActionRelease
Kernel Assertions: 0x4=USB
   id=501  level=255 0x4=USB mod=07/05/15 09:35 description=XHC1 owner=AppleUSBXHCI

System log for setup 1

06/05/15 19:21:42,000 kernel[0]: Wake reason: EC.DarkPME (Maintenance)
06/05/15 19:21:42,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
06/05/15 19:21:42,000 kernel[0]: AppleCamIn::wakeEventHandlerThread
06/05/15 19:21:42,000 kernel[0]: Previous sleep cause: 5
06/05/15 19:21:42,007 discoveryd[70]: Basic DNSResolver UDNSServer:: PowerState is DarkWake
06/05/15 19:21:42,000 kernel[0]: AppleThunderboltNHIType2::prePCIWake - power up complete - took 37359 us
06/05/15 19:21:42,000 kernel[0]: TBT W (2): 0x0020 [√]
06/05/15 19:21:42,000 kernel[0]: IOThunderboltSwitch<0xffffff802aed8600>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 11 unplug = 0
06/05/15 19:21:42,000 kernel[0]: IOThunderboltSwitch<0xffffff802aed8600>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 12 unplug = 0
06/05/15 19:21:42,000 kernel[0]: AppleThunderboltGenericHAL::earlyWake - complete - took 310 milliseconds
06/05/15 19:21:42,368 discoveryd[70]: Basic Bonjour,Warn Warning: IPv4 listener multicast send failed en0, 50
06/05/15 19:21:42,369 discoveryd[70]: Basic Bonjour,Warn Warning: IPv6 listener multicast send failed en0, 50
06/05/15 19:21:42,369 discoveryd[70]: Basic Bonjour,Warn Warning: IPv4 listener multicast send failed en0, 50
06/05/15 19:21:42,369 discoveryd[70]: Basic Bonjour,Warn Warning: IPv6 listener multicast send failed en0, 50
06/05/15 19:21:42,000 kernel[0]: en0: BSSID changed to 64:7c:34:55:27:64
06/05/15 19:21:42,000 kernel[0]: en0: channel changed to 116,+1
06/05/15 19:21:42,000 kernel[0]: AirPort: Link Up on awdl0
06/05/15 19:21:42,447 sharingd[671]: 19:21:42.447 : Discoverable mode changed to Contacts Only
06/05/15 19:21:42,447 sharingd[671]: 19:21:42.447 : BTLE scanning started
06/05/15 19:21:42,448 sharingd[671]: 19:21:42.447 : Scanning mode Contacts Only
06/05/15 19:21:42,451 sharingd[671]: 19:21:42.450 : BTLE scanner Powered Off
06/05/15 19:21:42,000 kernel[0]: ARPT: 1172.248384: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
06/05/15 19:21:42,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
06/05/15 19:21:42,000 kernel[0]: AppleCamIn::wakeEventHandlerThread
06/05/15 19:21:42,509 discoveryd[70]: Basic DNSResolver UDNSServer:: PowerState is DarkWake
06/05/15 19:21:42,000 kernel[0]: AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
06/05/15 19:21:42,000 kernel[0]: en0: BSSID changed to 64:7c:34:55:27:64
06/05/15 19:21:42,000 kernel[0]: en0: channel changed to 116,+1
06/05/15 19:21:42,000 kernel[0]: en0: BSSID changed to 64:7c:34:55:27:64
06/05/15 19:21:42,000 kernel[0]: en0: channel changed to 116,+1
06/05/15 19:21:42,000 kernel[0]: IOThunderboltSwitch<0xffffff802aed8600>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 12 unplug = 1
06/05/15 19:21:43,076 hidd[92]: MultitouchHID: device bootloaded
06/05/15 19:21:44,701 ntpd[277]: wake time set +1.479785 s
06/05/15 19:21:48,000 kernel[0]: AppleCamIn::handleWakeEvent_gated
06/05/15 19:21:48,000 kernel[0]: AppleCamIn::handleWakeEvent_gated
06/05/15 19:21:52,000 kernel[0]: IOThunderboltSwitch<0xffffff802aed8600>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 12 unplug = 0
06/05/15 19:21:53,000 kernel[0]: IOThunderboltSwitch<0xffffff802aed8600>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 12 unplug = 1
06/05/15 19:22:08,538 loginwindow[88]: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
06/05/15 19:22:28,997 discoveryd[70]: Basic SleepProxy Wake on LAN is disabled
06/05/15 19:22:28,000 kernel[0]: ARPT: 1217.261991: wl0: setup_keepalive: interval 900, retry_interval 30, retry_count 10
06/05/15 19:22:28,000 kernel[0]: ARPT: 1217.261999: wl0: setup_keepalive: Local IP: 192.168.0.30
06/05/15 19:22:28,000 kernel[0]: ARPT: 1217.262003: wl0: setup_keepalive: Remote IP: 17.110.226.202
06/05/15 19:22:28,000 kernel[0]: ARPT: 1217.262006: wl0: setup_keepalive: Local port: 49171, Remote port: 5223
06/05/15 19:22:28,000 kernel[0]: ARPT: 1217.262010: wl0: setup_keepalive: Seq: 0, Ack: 0, Win size: 0
06/05/15 19:22:28,000 kernel[0]: ARPT: 1217.262027: wl0: MDNS: IPV4 Addr: 192.168.0.30
06/05/15 19:22:28,000 kernel[0]: ARPT: 1217.262035: wl0: MDNS: IPV6 Addr: fe80:0:0:0:a65e:60ff:feca:2119
06/05/15 19:22:28,000 kernel[0]: ARPT: 1217.262040: wl0: MDNS: 0 SRV Recs, 0 TXT Recs
06/05/15 19:22:30,000 kernel[0]: PM response took 1978 ms (48, powerd)
06/05/15 19:22:30,000 kernel[0]: ARPT: 1219.238116: AirPort_Brcm43xx::powerChange: System Sleep
06/05/15 19:22:30,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
06/05/15 19:22:31,000 kernel[0]: IO80211AWDLPeerManager::doDisable   source [handleSIOCSIFFLAGS]
06/05/15 19:22:31,000 kernel[0]: en0: BSSID changed to 64:7c:34:55:27:64
06/05/15 19:22:31,000 kernel[0]: en0: channel changed to 116,+1
06/05/15 19:22:31,000 kernel[0]: AirPort: Link Down on awdl0. Reason 1 (Unspecified).
06/05/15 19:22:31,000 kernel[0]: IO80211AWDLPeerManager::doDisable   source [setLinkState]
06/05/15 19:22:31,000 kernel[0]: ARPT: 1219.602392: wl0: wl_update_tcpkeep_seq: Original Seq: 0, Ack: 0, Win size: 0
06/05/15 19:22:31,000 kernel[0]: ARPT: 1219.602429: wl0: wl_update_tcpkeep_seq: Updated seq/ack/win from UserClient Seq 1288270170, Ack 2921787013, Win size 478
06/05/15 19:22:31,000 kernel[0]: ARPT: 1219.602478: wl0: leaveModulePoweredForOffloads: Wi-Fi will stay on.
06/05/15 19:22:31,000 kernel[0]: AppleThunderboltNHIType2::prePCIWake - power up complete - took 1485 us
06/05/15 19:22:31,000 kernel[0]: AppleThunderboltGenericHAL::earlyWake - complete - took 0 milliseconds
06/05/15 19:22:31,369 sharingd[671]: 19:22:31.368 : Discoverable mode changed to Off
06/05/15 19:22:31,371 sharingd[671]: 19:22:31.370 : BTLE scanning stopped
06/05/15 19:22:31,374 discoveryd[70]: Basic DNSResolver UDNS Send(): UDP Sendto() failed to DNSNameServer 192.168.0.1 Port 53 errno 50, fd 56, ErrLogCount 1 ResolverIntf:4
06/05/15 19:22:31,374 discoveryd[70]: Basic DNSResolver UDNS Send(): UDP Sendto() failed to DNSNameServer 192.168.0.1 Port 53 errno 50, fd 56, ErrLogCount 2 ResolverIntf:4
06/05/15 19:22:31,000 kernel[0]: IOThunderboltSwitch<0xffffff802aed8600>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 11 unplug = 0
06/05/15 19:22:32,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
06/05/15 19:22:32,000 kernel[0]: AppleThunderboltNHIType2::waitForOk2Go2Sx - retries = 9
06/05/15 19:22:32,481 discoveryd[70]: Basic DNSResolver UDNS Send(): UDP Sendto() failed to DNSNameServer 192.168.0.1 Port 53 errno 50, fd 56, ErrLogCount 3 ResolverIntf:4
06/05/15 19:22:32,481 discoveryd[70]: Basic DNSResolver UDNS Send(): UDP Sendto() failed to DNSNameServer 192.168.0.1 Port 53 errno 50, fd 56, ErrLogCount 4 ResolverIntf:4
06/05/15 19:22:37,000 kernel[0]: Wake reason: EC.DarkPME (Maintenance)
06/05/15 19:22:37,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
06/05/15 19:22:37,000 kernel[0]: AppleCamIn::wakeEventHandlerThread
06/05/15 19:22:37,000 kernel[0]: Previous sleep cause: 5
06/05/15 19:22:37,007 discoveryd[70]: Basic DNSResolver UDNSServer:: PowerState is DarkWake
06/05/15 19:22:37,000 kernel[0]: AppleThunderboltNHIType2::prePCIWake - power up complete - took 37062 us
06/05/15 19:22:37,000 kernel[0]: TBT W (2): 0x0020 [√]
06/05/15 19:22:37,000 kernel[0]: IOThunderboltSwitch<0xffffff802aed8600>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 11 unplug = 0
06/05/15 19:22:37,318 discoveryd[70]: Basic Bonjour,Warn Warning: IPv4 listener multicast send failed en0, 50
06/05/15 19:22:37,318 discoveryd[70]: Basic Bonjour,Warn Warning: IPv6 listener multicast send failed en0, 50
06/05/15 19:22:37,318 discoveryd[70]: Basic Bonjour,Warn Warning: IPv4 listener multicast send failed en0, 50
06/05/15 19:22:37,318 discoveryd[70]: Basic Bonjour,Warn Warning: IPv6 listener multicast send failed en0, 50
06/05/15 19:22:37,000 kernel[0]: AppleThunderboltGenericHAL::earlyWake - complete - took 303 milliseconds
06/05/15 19:22:37,000 kernel[0]: en0: BSSID changed to 64:7c:34:55:27:64
06/05/15 19:22:37,000 kernel[0]: en0: channel changed to 116,+1
06/05/15 19:22:37,000 kernel[0]: AirPort: Link Up on awdl0
06/05/15 19:22:37,000 kernel[0]: IOThunderboltSwitch<0xffffff802aed8600>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 12 unplug = 0

MacBook Pro (Retina, 13-inch,Early 2015), OS X Yosemite (10.10.3), null

Posted on May 8, 2015 6:12 AM

Reply
Question marked as Best reply

Posted on Jan 21, 2016 12:56 AM

Update: After hours wasted speaking to apple support on phone, sending system reports, explaining the problem over and over again I brought my macbook to an apple shop to test/repair last summer (2015). First time they told me they were not able to reproduce the problem. When I came to the shop I showed them in the logs that the problem occurred while the macbook was tested in the shop. They then told me now they know the problem (now? really? seems nobody reads support tickets and bug reports -.-) and can repair it. After apple changed the airport card the problem should not exist anymore - they told me... Again I checked the logs when I collected the mac from the shop. But apple was clever: all logs deleted.


Since then I didn't done further attempts. I think I will give up.

1 reply
Question marked as Best reply

Jan 21, 2016 12:56 AM in response to jojoob

Update: After hours wasted speaking to apple support on phone, sending system reports, explaining the problem over and over again I brought my macbook to an apple shop to test/repair last summer (2015). First time they told me they were not able to reproduce the problem. When I came to the shop I showed them in the logs that the problem occurred while the macbook was tested in the shop. They then told me now they know the problem (now? really? seems nobody reads support tickets and bug reports -.-) and can repair it. After apple changed the airport card the problem should not exist anymore - they told me... Again I checked the logs when I collected the mac from the shop. But apple was clever: all logs deleted.


Since then I didn't done further attempts. I think I will give up.

Sleep interrupt problems when connected to certain external displays

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