irishuang1211 / macosx-nosleep-extension

Automatically exported from code.google.com/p/macosx-nosleep-extension
0 stars 0 forks source link

Nosleep disables sleep after woke from EC.ACDetach (Maintenance) #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Toggle Nosleep on
2. Connect AC
3. Apple -> Sleep
4. Wait a while
5. Disconnect AC
6. Overheat!

What is the expected output? What do you see instead?
The laptop woke up from sleep due to ACDetach and can't go into sleep again 
because Nosleep is on.

What version of the product are you using? On what operating system?
ML 1.8.1, 1.3.1

Please provide any additional information below.
AirPort_Brcm43xx::powerChange: System Sleep 
IOThunderboltSwitch(0x0)::listenerCallbackStatic - Thunderbolt HPD packet for 
route = 0x0 port = 11 unplug = 0
         0 [Time 1347324998] [Message Wake reason: EC.ACDetach (Maintenance)
AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance 
wake
Previous Sleep Cause: 5
wlEvent: en0 en0 Link DOWN virtIf = 0
AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
en0::IO80211Interface::postMessage bssid changed
en0: 802.11d country code set to 'X0'.
en0: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 100 104 
108 112 116 120 124 128 132 136 140 149 153 157 161 165
IOThunderboltSwitch(0x0)::listenerCallbackStatic - Thunderbolt HPD packet for 
route = 0x0 port = 11 unplug = 0
IOThunderboltSwitch(0x0)::listenerCallbackStatic - Thunderbolt HPD packet for 
route = 0x0 port = 12 unplug = 0
TBT W (2): 0x0100 [x]
com_protech_nosleepextension: setting state: 1, for mode: 0 (battery-mode)
AppleUSBMultitouchDriver::checkStatus - received Status Packet, Payload 2: 
device was reinitialized
Graphics suppressed 1238 ms
en0: 802.11d country code set to 'US'.
en0: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 100 104 
108 112 116 120 124 128 132 136 140 149 153 157 161 165
DarkWake thermal limits breached. Going to sleep!

Original issue reported on code.google.com by edwardg...@gmail.com on 11 Sep 2012 at 3:04

GoogleCodeExporter commented 8 years ago
Hello, thanks for the issue report.
Could you also take a log when nosleep is disabled, so I can see when it goes 
to sleep.

--Pavel.

Original comment by integral...@gmail.com on 11 Sep 2012 at 3:51

GoogleCodeExporter commented 8 years ago
What hardware do you use?

Original comment by integral...@gmail.com on 11 Sep 2012 at 3:52

GoogleCodeExporter commented 8 years ago
rmbp 2.6 16G

Original comment by edwardg...@gmail.com on 11 Sep 2012 at 7:51

GoogleCodeExporter commented 8 years ago
rmbp 2.6 16G

Original comment by edwardg...@gmail.com on 11 Sep 2012 at 7:51

GoogleCodeExporter commented 8 years ago
AirPort_Brcm43xx::powerChange: System Sleep 
en0: BSSID changed to 00:02:6f:6b:35:b9
wlEvent: en0 en0 Link DOWN virtIf = 0
AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
en0::IO80211Interface::postMessage bssid changed
         0 [Time 1347374275] [Message Wake reason: EC.ACDetach (Maintenance)
AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance 
wake
Previous Sleep Cause: -113
en0: 802.11d country code set to 'X0'.
en0: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 100 104 
108 112 116 120 124 128 132 136 140 149 153 157 161 165
IOThunderboltSwitch(0x0)::listenerCallbackStatic - Thunderbolt HPD packet for 
route = 0x0 port = 11 unplug = 0
IOThunderboltSwitch(0x0)::listenerCallbackStatic - Thunderbolt HPD packet for 
route = 0x0 port = 12 unplug = 0
TBT W (2): 0x0100 [x]
com_protech_nosleepextension: setting state: 0, for mode: 0 (battery-mode)
AppleUSBMultitouchDriver::checkStatus - received Status Packet, Payload 2: 
device was reinitialized
en0: 802.11d country code set to 'US'.
en0: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 100 104 
108 112 116 120 124 128 132 136 140 149 153 157 161 165
Graphics suppressed 1251 ms
MacAuthEvent en0   Auth result for: 00:02:6f:6b:35:b9  MAC AUTH succeeded
wlEvent: en0 en0 Link UP virtIf = 0
AirPort: Link Up on en0
en0: BSSID changed to 00:02:6f:6b:35:b9
en0::IO80211Interface::postMessage bssid changed
AirPort_Brcm43xx::powerChange: System Sleep 
en0: BSSID changed to 00:02:6f:6b:35:b9
wlEvent: en0 en0 Link DOWN virtIf = 0
AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
en0::IO80211Interface::postMessage bssid changed
         0 [Time 1347374519] [Message Wake reason: EC.PowerButton PWRB (User)
AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance 
wake
Previous Sleep Cause: 5
IOThunderboltSwitch(0x0)::listenerCallbackStatic - Thunderbolt HPD packet for 
route = 0x0 port = 11 unplug = 0
IOThunderboltSwitch(0x0)::listenerCallbackStatic - Thunderbolt HPD packet for 
route = 0x0 port = 12 unplug = 0
TBT W (2): 0x0100 [x]
AppleUSBMultitouchDriver::checkStatus - received Status Packet, Payload 2: 
device was reinitialized
MacAuthEvent en0   Auth result for: 00:02:6f:6b:35:b9  MAC AUTH succeeded
wlEvent: en0 en0 Link UP virtIf = 0
AirPort: Link Up on en0
en0: BSSID changed to 00:02:6f:6b:35:b9
en0::IO80211Interface::postMessage bssid changed

it seems this time after ACDetach wake, nosleepextension is setting state to 0 
instead of 1 and mbp went into sleep quite quickly.

Original comment by edwardg...@gmail.com on 11 Sep 2012 at 2:50

GoogleCodeExporter commented 8 years ago
Edward,

I could not reproduce the issue but seems like I know the cause. Could you try 
the same scenario with NoSleep 1.3.0

If it works, use it a while as a workaround. I will be on vacation for two 
weeks, and after I'll try to fix it.

--Pavel.

Original comment by integral...@gmail.com on 11 Sep 2012 at 3:40

GoogleCodeExporter commented 8 years ago
I see this problem with Mac OS X 10.7.5 and NoSleep 1.3.1.  With NoSleep 1.3.0 
there is no problem.

Original comment by mdou...@gmail.com on 13 Oct 2012 at 7:44