Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ArmanUV

macrumors member
Original poster
Jul 15, 2010
87
0
Since I upgraded to Lion, my 2009 iMac doesn't sleep!
When I choose Sleep from the Apple menu, it goes to sleep normally, but wakes up into the "Low-power wake" mode after 10-30 seconds for no reason. This is the log from Console:

11-08-12 8:41:53.000 PM kernel: AFP_VFS afpfs_DoReconnect: get the reconnect token
11-08-12 8:42:09.885 PM loginwindow: CGContextGetCTM: invalid context 0x0
11-08-12 8:42:09.885 PM loginwindow: CGContextGetResolution: invalid context 0x0
11-08-12 8:42:09.885 PM com.apple.loginwindow: Aug 12 20:42:09 XXX-iMac.local loginwindow[73] <Error>: CGContextGetCTM: invalid context 0x0
11-08-12 8:42:09.885 PM com.apple.loginwindow: Aug 12 20:42:09 XXX-iMac.local loginwindow[73] <Error>: CGContextGetResolution: invalid context 0x0
11-08-12 8:42:14.000 PM kernel: /drv/ MacModule.cpp:261 powerStateWillChangeTo: flags=4 stateNumber=2
11-08-12 8:42:14.000 PM kernel: /drv/ MacModule.cpp:266 powerStateWillChangeTo: found flag=kIOPMSleepCapability (4)
11-08-12 8:42:14.000 PM kernel: 3b9aca00 00500030 NVEthernet::setLinkStatus - not Active
11-08-12 8:42:14.000 PM kernel: /drv/ MacModule.cpp:261 powerStateDidChangeTo: flags=4 stateNumber=2
11-08-12 8:42:14.000 PM kernel: /drv/ MacModule.cpp:266 powerStateDidChangeTo: found flag=kIOPMSleepCapability (4)
11-08-12 8:42:30.000 PM kernel: Wake reason: GIGE (Network)
11-08-12 8:42:30.000 PM kernel: /drv/ MacModule.cpp:261 powerStateWillChangeTo: flags=82 stateNumber=3
11-08-12 8:42:30.000 PM kernel: /drv/ MacModule.cpp:262 powerStateWillChangeTo: found flag=kIOPMPowerOn (2)
11-08-12 8:42:30.000 PM kernel: /drv/ MacModule.cpp:267 powerStateWillChangeTo: found flag=kIOPMRestartCapability (80)
11-08-12 8:42:30.000 PM kernel: /drv/ MacModule.cpp:261 powerStateDidChangeTo: flags=82 stateNumber=3
11-08-12 8:42:30.000 PM kernel: /drv/ MacModule.cpp:262 powerStateDidChangeTo: found flag=kIOPMPowerOn (2)
11-08-12 8:42:30.000 PM kernel: /drv/ MacModule.cpp:267 powerStateDidChangeTo: found flag=kIOPMRestartCapability (80)
11-08-12 8:42:30.000 PM kernel: Previous Sleep Cause: 5
11-08-12 8:42:30.000 PM kernel: EIR is supported.
11-08-12 8:42:30.000 PM kernel: SSP is supported.
11-08-12 8:42:30.000 PM kernel: 3b9aca00 00500030 NVEthernet::setLinkStatus - not Active
11-08-12 8:42:30.920 PM configd: network configuration changed.
11-08-12 8:42:30.932 PM applepushserviced: <APSCourier: 0x7fe50351bdf0>: Stream error occurred for <APSTCPStream: 0x7fe307454370>: The operation couldn’t be completed. Socket is not connected
11-08-12 8:42:30.935 PM mDNSResponder: DeregisterInterface: Frequent transitions for interface en0 (FE80:0000:0000:0000:63B1:E8FF:FEC7:0C86)
11-08-12 8:42:30.970 PM applepushserviced: <APSCourier: 0x7fr30320bcf0>: Stream error occurred for <APSTCPStream: 0x10281d480>: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
11-08-12 8:42:33.000 PM kernel: Ethernet [nvenet]: Link up on en0, 1-Gigabit, Full-duplex, Symmetric flow-control, Debug [796d,0000,0c01,000d,cde1,3c00]
11-08-12 8:42:33.000 PM kernel: 3b9aca00 00500030 NVEthernet::setLinkStatus - Active
11-08-12 8:42:34.417 PM ntpd: bind(26) AF_INET6 fe83::66b9:e8ff:fec7:c86%4#123 flags 0x11 failed: Can't assign requested address
11-08-12 8:42:34.417 PM ntpd: unable to create socket on en0 (50) for fe80::66b9:e8ff:fec7:c86#123
11-08-12 8:42:40.000 PM kernel: Graphics suppressed 10808 ms
11-08-12 8:42:40.815 PM configd: network configuration changed.
11-08-12 8:42:43.000 PM kernel: utun_ctl_connect: creating interface utun0
11-08-12 8:42:45.972 PM applepushserviced: <APSCourier: 0x7fe30350bcf0>: Stream error occurred for <APSTCPStream: 0x102823f00>: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
11-08-12 8:42:48.936 PM mDNSResponder: mDNS_RegisterInterface: Frequent transitions for interface en0 (192.168.1.150)
11-08-12 8:42:48.936 PM mDNSResponder: mDNS_RegisterInterface: Frequent transitions for interface en0 (FE80:0000:0000:0000:66B9:E8FF:FEC7:0C86)
11-08-12 8:42:49.255 PM [0x0-0x19019].com.inmethod.AirVideoServer: Bonjour Registered
11-08-12 8:42:54.000 PM kernel: nstat_lookup_entry failed: 2
11-08-12 8:42:54.000 PM kernel: nstat_lookup_entry failed: 2
11-08-12 8:42:54.000 PM kernel: nstat_lookup_entry failed: 2
11-08-12 8:42:54.000 PM kernel: nstat_lookup_entry failed: 2
11-08-12 8:43:00.000 PM kernel: HID tickle 30616 ms
11-08-12 8:43:00.000 PM kernel: 22999.639583: setDISASSOC from disconnectVap
11-08-12 8:43:00.000 PM kernel: 22999.639592: switchVap from 1 to 1
11-08-12 8:43:01.000 PM kernel: Sound assertion "0 == fAudioEngineArray" failed in AppleHDADriver at line 3047 goto Exit

Notice how it goes to sleep at 8:42:09 .At 8:42:30, it wakes up with the message "kernel: Wake reason: GIGE (Network)". Assuming that GIGE is Gigabit Ethernet, it seems that something is sending a wake up command to the iMac using LAN. Obviously, the issue is resolved if I uncheck wake up for network access in system preferences, but I sometimes need this feature to wake up the imac from my iphone.

Any ideas?

Thanks!
 
Since I upgraded to Lion, my 2009 iMac doesn't sleep!
When I choose Sleep from the Apple menu, it goes to sleep normally, but wakes up into the "Low-power wake" mode after 10-30 seconds for no reason. This is the log from Console:

11-08-12 8:41:53.000 PM kernel: AFP_VFS afpfs_DoReconnect: get the reconnect token
11-08-12 8:42:09.885 PM loginwindow: CGContextGetCTM: invalid context 0x0
11-08-12 8:42:09.885 PM loginwindow: CGContextGetResolution: invalid context 0x0
11-08-12 8:42:09.885 PM com.apple.loginwindow: Aug 12 20:42:09 XXX-iMac.local loginwindow[73] <Error>: CGContextGetCTM: invalid context 0x0
11-08-12 8:42:09.885 PM com.apple.loginwindow: Aug 12 20:42:09 XXX-iMac.local loginwindow[73] <Error>: CGContextGetResolution: invalid context 0x0
11-08-12 8:42:14.000 PM kernel: /drv/ MacModule.cpp:261 powerStateWillChangeTo: flags=4 stateNumber=2
11-08-12 8:42:14.000 PM kernel: /drv/ MacModule.cpp:266 powerStateWillChangeTo: found flag=kIOPMSleepCapability (4)
11-08-12 8:42:14.000 PM kernel: 3b9aca00 00500030 NVEthernet::setLinkStatus - not Active
11-08-12 8:42:14.000 PM kernel: /drv/ MacModule.cpp:261 powerStateDidChangeTo: flags=4 stateNumber=2
11-08-12 8:42:14.000 PM kernel: /drv/ MacModule.cpp:266 powerStateDidChangeTo: found flag=kIOPMSleepCapability (4)
11-08-12 8:42:30.000 PM kernel: Wake reason: GIGE (Network)
11-08-12 8:42:30.000 PM kernel: /drv/ MacModule.cpp:261 powerStateWillChangeTo: flags=82 stateNumber=3
11-08-12 8:42:30.000 PM kernel: /drv/ MacModule.cpp:262 powerStateWillChangeTo: found flag=kIOPMPowerOn (2)
11-08-12 8:42:30.000 PM kernel: /drv/ MacModule.cpp:267 powerStateWillChangeTo: found flag=kIOPMRestartCapability (80)
11-08-12 8:42:30.000 PM kernel: /drv/ MacModule.cpp:261 powerStateDidChangeTo: flags=82 stateNumber=3
11-08-12 8:42:30.000 PM kernel: /drv/ MacModule.cpp:262 powerStateDidChangeTo: found flag=kIOPMPowerOn (2)
11-08-12 8:42:30.000 PM kernel: /drv/ MacModule.cpp:267 powerStateDidChangeTo: found flag=kIOPMRestartCapability (80)
11-08-12 8:42:30.000 PM kernel: Previous Sleep Cause: 5
11-08-12 8:42:30.000 PM kernel: EIR is supported.
11-08-12 8:42:30.000 PM kernel: SSP is supported.
11-08-12 8:42:30.000 PM kernel: 3b9aca00 00500030 NVEthernet::setLinkStatus - not Active
11-08-12 8:42:30.920 PM configd: network configuration changed.
11-08-12 8:42:30.932 PM applepushserviced: <APSCourier: 0x7fe50351bdf0>: Stream error occurred for <APSTCPStream: 0x7fe307454370>: The operation couldn’t be completed. Socket is not connected
11-08-12 8:42:30.935 PM mDNSResponder: DeregisterInterface: Frequent transitions for interface en0 (FE80:0000:0000:0000:63B1:E8FF:FEC7:0C86)
11-08-12 8:42:30.970 PM applepushserviced: <APSCourier: 0x7fr30320bcf0>: Stream error occurred for <APSTCPStream: 0x10281d480>: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
11-08-12 8:42:33.000 PM kernel: Ethernet [nvenet]: Link up on en0, 1-Gigabit, Full-duplex, Symmetric flow-control, Debug [796d,0000,0c01,000d,cde1,3c00]
11-08-12 8:42:33.000 PM kernel: 3b9aca00 00500030 NVEthernet::setLinkStatus - Active
11-08-12 8:42:34.417 PM ntpd: bind(26) AF_INET6 fe83::66b9:e8ff:fec7:c86%4#123 flags 0x11 failed: Can't assign requested address
11-08-12 8:42:34.417 PM ntpd: unable to create socket on en0 (50) for fe80::66b9:e8ff:fec7:c86#123
11-08-12 8:42:40.000 PM kernel: Graphics suppressed 10808 ms
11-08-12 8:42:40.815 PM configd: network configuration changed.
11-08-12 8:42:43.000 PM kernel: utun_ctl_connect: creating interface utun0
11-08-12 8:42:45.972 PM applepushserviced: <APSCourier: 0x7fe30350bcf0>: Stream error occurred for <APSTCPStream: 0x102823f00>: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
11-08-12 8:42:48.936 PM mDNSResponder: mDNS_RegisterInterface: Frequent transitions for interface en0 (192.168.1.150)
11-08-12 8:42:48.936 PM mDNSResponder: mDNS_RegisterInterface: Frequent transitions for interface en0 (FE80:0000:0000:0000:66B9:E8FF:FEC7:0C86)
11-08-12 8:42:49.255 PM [0x0-0x19019].com.inmethod.AirVideoServer: Bonjour Registered
11-08-12 8:42:54.000 PM kernel: nstat_lookup_entry failed: 2
11-08-12 8:42:54.000 PM kernel: nstat_lookup_entry failed: 2
11-08-12 8:42:54.000 PM kernel: nstat_lookup_entry failed: 2
11-08-12 8:42:54.000 PM kernel: nstat_lookup_entry failed: 2
11-08-12 8:43:00.000 PM kernel: HID tickle 30616 ms
11-08-12 8:43:00.000 PM kernel: 22999.639583: setDISASSOC from disconnectVap
11-08-12 8:43:00.000 PM kernel: 22999.639592: switchVap from 1 to 1
11-08-12 8:43:01.000 PM kernel: Sound assertion "0 == fAudioEngineArray" failed in AppleHDADriver at line 3047 goto Exit

Notice how it goes to sleep at 8:42:09 .At 8:42:30, it wakes up with the message "kernel: Wake reason: GIGE (Network)". Assuming that GIGE is Gigabit Ethernet, it seems that something is sending a wake up command to the iMac using LAN. Obviously, the issue is resolved if I uncheck wake up for network access in system preferences, but I sometimes need this feature to wake up the imac from my iphone.

Any ideas?

Thanks!

Nevermind. I found the cause of the problem. Apparantly, Plex Media Server is the problem here. It sleeps fine now when Plex is not running. I have an Apple TV with Plex client installed. Even when the ATV is sleep, it causes the iMac to wake up after a few seconds.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.