MacBook Pro si sveglia continuamente mentre è in modalità di sospensione

10

Ho un MacBook Pro da 15 "(metà 2015) OS X 10.11.1 e ho notato che il mio MacBook perde il 20% di energia in modalità sleep per 12 ore.

Questa è una piccola parte del mio file di registro quando il mio MacBook Pro era in modalità "sospensione":

28/11/15 12:09:54,000 kernel[0]: AirPort: Link Down on awdl0. Reason 1 (Unspecified).
28/11/15 12:09:54,000 kernel[0]: ARPT: 41841.442659: wl0: wl_update_tcpkeep_seq: Original Seq: 2389288299, Ack: 2044772261, Win size: 4096
28/11/15 12:09:54,000 kernel[0]: ARPT: 41841.442696: wl0: wl_update_tcpkeep_seq: Updated seq/ack/win from UserClient Seq 2389288299, Ack 2044772261, Win size 176
28/11/15 12:09:54,000 kernel[0]: ARPT: 41841.442740: wl0: leaveModulePoweredForOffloads: Wi-Fi will stay on.
28/11/15 12:09:55,000 kernel[0]: ARPT: 41841.469349: AirPort_Brcm43xx::platformWoWEnable: WWEN[enable]
28/11/15 12:09:55,000 kernel[0]: ARPT: 41841.470191: AirPort_Brcm43xx::syncPowerState: WWEN[enabled]
28/11/15 12:09:55,000 kernel[0]: in6_unlink_ifa: IPv6 address 0xb1c284aa41ebb6c1 has no prefix
28/11/15 12:09:55,000 kernel[0]: IOThunderboltSwitch<0>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 11 unplug = 0
28/11/15 12:09:55,000 kernel[0]: IOThunderboltSwitch<0>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 12 unplug = 0
28/11/15 12:09:55,522 symptomsd[208]: -[NetworkAnalyticsEngine _writeJournalRecord:fromCellFingerprint:key:atLOI:ofKind:lqm:isFaulty:] Hashing of the primary key failed. Dropping the journal record.
28/11/15 12:09:55,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
28/11/15 12:09:55,000 kernel[0]: AppleThunderboltNHIType2::waitForOk2Go2Sx - intel_rp = 1 dlla_reporting_supported = 0
28/11/15 12:09:56,000 kernel[0]: AppleThunderboltNHIType2::waitForOk2Go2Sx - retries = 2
28/11/15 12:14:22,000 kernel[0]: Wake reason: ?
28/11/15 12:14:22,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
28/11/15 12:14:22,000 kernel[0]: AppleCamIn::wakeEventHandlerThread
28/11/15 12:14:22,000 kernel[0]: RTC: PowerByCalendarDate setting ignored
28/11/15 12:14:22,000 kernel[0]: Previous sleep cause: 5
28/11/15 12:14:22,000 kernel[0]: AppleThunderboltNHIType2::prePCIWake - power up complete - took 1 us
28/11/15 12:14:22,000 kernel[0]: AppleThunderboltGenericHAL::earlyWake - complete - took 1 milliseconds
28/11/15 12:14:22,000 kernel[0]: IOThunderboltSwitch<0>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 11 unplug = 0
28/11/15 12:14:22,000 kernel[0]: IOThunderboltSwitch<0>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 12 unplug = 0
28/11/15 12:14:22,000 kernel[0]: TBT W (2): 0x0040 [x]
28/11/15 12:14:22,000 kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
28/11/15 12:14:22,000 kernel[0]: en0: channel changed to 1
28/11/15 12:14:22,000 kernel[0]: en0::IO80211Interface::postMessage bssid changed
28/11/15 12:14:22,000 kernel[0]: en0: 802.11d country code set to 'X3'.
28/11/15 12:14:22,000 kernel[0]: en0: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 144 149 153 157 161
28/11/15 12:14:22,000 kernel[0]: en0: channel changed to 1
28/11/15 12:14:22,000 kernel[0]: ARPT: 41843.166036: ARPT: Wake Reason: Wake on Scan offload; Disconnect reason: Class 2 frame received from nonauthenticated STA
28/11/15 12:14:22,000 kernel[0]: Setting BTCoex Config: enable_2G:1, profile_2g:0, enable_5G:1, profile_5G:0
28/11/15 12:14:22,000 kernel[0]: AirPort: Link Up on awdl0
28/11/15 12:14:22,440 configd[51]: network changed: v4(en0-:192.168.1.136) v6(en0:2a02:1810:340b:9d00:aebc:32ff:fea0:6293) DNS! Proxy SMB
28/11/15 12:14:22,000 kernel[0]: USBMSC Identifier (non-unique): 000000000820 0x5ac 0x8406 0x820, 3
28/11/15 12:14:22,000 kernel[0]: ARPT: 41843.436625: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
28/11/15 12:14:22,000 kernel[0]: ARPT: 41843.436645: IOPMPowerSource Information: onWake,  SleepType: Normal Sleep,  'ExternalConnected': No, 'TimeRemaining': 1177, 
28/11/15 12:14:22,000 kernel[0]: ARPT: 41843.436669: ARPT: Wake Reason: Wake on Scan offload
28/11/15 12:14:22,000 kernel[0]: ARPT: 41843.436710: AirPort_Brcm43xx::platformWoWEnable: WWEN[disable]
28/11/15 12:14:22,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
28/11/15 12:14:22,000 kernel[0]: AppleCamIn::wakeEventHandlerThread
28/11/15 12:14:22,000 kernel[0]: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
28/11/15 12:14:22,000 kernel[0]: in6_unlink_ifa: IPv6 address 0xb1c284aa41ebaee1 has no prefix
28/11/15 12:14:22,717 UserEventAgent[42]: Captive: CNPluginHandler en0: Inactive
28/11/15 12:14:22,967 cdpd[422]: Saw change in network reachability (isReachable=0)
28/11/15 12:14:22,969 Google Drive[368]: mod_SCNetworkReachabilityCallBack
28/11/15 12:14:22,969 Google Drive[368]: mod_SCNetworkReachabilityCallBack
28/11/15 12:14:22,970 symptomsd[208]: __73-[NetworkAnalyticsEngine observeValueForKeyPath:ofObject:change:context:]_block_invoke unexpected switch value 2
28/11/15 12:14:22,970 netbiosd[27521]: network_reachability_changed : network is not reachable, netbiosd is shutting down
28/11/15 12:14:23,155 configd[51]: network changed: v6(en0-:2a02:1810:340b:9d00:aebc:32ff:fea0:6293) DNS- Proxy-
28/11/15 12:14:23,000 kernel[0]: IO80211AWDLPeerManager::setAwdlOperatingMode Setting the AWDL operation mode from AUTO to SUSPENDED
28/11/15 12:14:23,000 kernel[0]: IO80211AWDLPeerManager::setAwdlSuspendedMode() Suspending AWDL, enterQuietMode(true)
28/11/15 12:14:23,233 networkd[157]: -[NETClientConnection effectiveBundleID] using process name apsd as bundle ID (this is expected for daemons without bundle ID
28/11/15 12:14:23,235 networkd[157]: -[NETClientConnection effectiveBundleID] using process name apsd as bundle ID (this is expected for daemons without bundle ID
28/11/15 12:14:23,000 kernel[0]: AirPort: Link Up on en0
28/11/15 12:14:23,000 kernel[0]: en0: BSSID changed to 00:22:b0:85:97:5e
28/11/15 12:14:23,000 kernel[0]: en0: channel changed to 1
28/11/15 12:14:23,000 kernel[0]: en0::IO80211Interface::postMessage bssid changed
28/11/15 12:14:23,282 symptomsd[208]: -[NetworkAnalyticsEngine _writeJournalRecord:fromCellFingerprint:key:atLOI:ofKind:lqm:isFaulty:] Hashing of the primary key failed. Dropping the journal record.
28/11/15 12:14:23,000 kernel[0]: en0: 802.11d country code set to 'DE'.
28/11/15 12:14:23,000 kernel[0]: en0: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 149 153 157 161
28/11/15 12:14:23,000 kernel[0]: Unexpected payload found for message 9, dataLen 0
28/11/15 12:14:23,000 kernel[0]: AirPort: RSN handshake complete on en0
28/11/15 12:14:23,000 kernel[0]: Setting BTCoex Config: enable_2G:1, profile_2g:0, enable_5G:1, profile_5G:0
28/11/15 12:14:23,988 com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.oneshot.0x10000030.BetterTouchTool[30954]) Service exited due to signal: Terminated: 15
28/11/15 12:14:24,211 lsd[260]: LaunchServices: Could not store lsd-identifiers file at /private/var/db/lsd/com.apple.lsdschemes.plist
28/11/15 12:14:24,296 BetterTouchTool[30978]: leap support enabled
28/11/15 12:14:24,310 com.apple.xpc.launchd[1]: (com.hegenberg.BTTRelaunch.84192[30955]) Service exited due to signal: Terminated: 15
28/11/15 12:14:24,000 kernel[0]: IO80211AWDLPeerManager::setAwdlOperatingMode Setting the AWDL operation mode from SUSPENDED to AUTO
28/11/15 12:14:24,000 kernel[0]: IO80211AWDLPeerManager::setAwdlAutoMode Resuming AWDL
28/11/15 12:14:24,411 UserEventAgent[42]: Captive: [CNInfoNetworkActive:1748] en0: SSID 'kevin' making interface primary (cache indicates network not captive)
28/11/15 12:14:24,411 UserEventAgent[42]: Captive: CNPluginHandler en0: Evaluating
28/11/15 12:14:24,412 configd[51]: network changed: DNS* Proxy
28/11/15 12:14:24,412 UserEventAgent[42]: Captive: en0: Not probing 'kevin' (cache indicates not captive)
28/11/15 12:14:24,412 UserEventAgent[42]: Captive: CNPluginHandler en0: Authenticated
28/11/15 12:14:24,416 configd[51]: network changed: v4(en0!:192.168.1.136) DNS+ Proxy+ SMB
28/11/15 12:14:25,005 cdpd[422]: Saw change in network reachability (isReachable=2)
28/11/15 12:14:25,006 Google Drive[368]: mod_SCNetworkReachabilityCallBack
28/11/15 12:14:25,008 symptomsd[208]: __73-[NetworkAnalyticsEngine observeValueForKeyPath:ofObject:change:context:]_block_invoke unexpected switch value 2
28/11/15 12:14:25,036 Google Drive[368]: mod_SCNetworkReachabilityCallBack
28/11/15 12:14:26,396 ntpd[30540]: wake time set +1.146968 s
28/11/15 12:14:26,991 mDNSResponder[89]: mDNS_Execute: SendResponses didn't send all its responses; will try again in one second
28/11/15 12:14:27,096 mDNSResponder[89]: mDNS_Execute: SendResponses didn't send all its responses; will try again in one second
28/11/15 12:14:27,281 mDNSResponder[89]: mDNS_Execute: SendResponses didn't send all its responses; will try again in one second
28/11/15 12:14:28,045 configd[51]: network changed: v4(en0:192.168.1.136) v6(en0+:2a02:1810:340b:9d00:aebc:32ff:fea0:6293) DNS* Proxy SMB
28/11/15 12:14:28,000 kernel[0]: AppleCamIn::handleWakeEvent_gated
28/11/15 12:14:28,687 configd[51]: network changed: v4(en0:192.168.1.136) v6(en0:2a02:1810:340b:9d00:aebc:32ff:fea0:6293) DNS! Proxy SMB
28/11/15 12:14:28,715 Google Drive[368]: mod_SCNetworkReachabilityCallBack
28/11/15 12:14:28,715 Google Drive[368]: mod_SCNetworkReachabilityCallBack
28/11/15 12:14:28,000 kernel[0]: AppleCamIn::handleWakeEvent_gated
28/11/15 12:14:30,997 com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.oneshot.0x10000031.BetterTouchTool[30978]) Service exited due to signal: Terminated: 15
28/11/15 12:14:31,217 lsd[260]: LaunchServices: Could not store lsd-identifiers file at /private/var/db/lsd/com.apple.lsdschemes.plist
28/11/15 12:14:31,302 BetterTouchTool[30984]: leap support enabled
28/11/15 12:14:31,315 com.apple.xpc.launchd[1]: (com.hegenberg.BTTRelaunch.84192[30979]) Service exited due to signal: Terminated: 15
28/11/15 12:14:34,005 com.apple.CDScheduler[246]: Thermal pressure state: 1 Memory pressure state: 0
28/11/15 12:14:34,007 com.apple.CDScheduler[42]: Thermal pressure state: 1 Memory pressure state: 0
28/11/15 12:14:44,244 com.apple.CDScheduler[246]: Thermal pressure state: 0 Memory pressure state: 0
28/11/15 12:14:44,244 com.apple.CDScheduler[42]: Thermal pressure state: 0 Memory pressure state: 0
28/11/15 12:14:48,000 kernel[0]: IO80211AWDLPeerManager::setAwdlOperatingMode Setting the AWDL operation mode from AUTO to SUSPENDED
28/11/15 12:14:48,000 kernel[0]: IO80211AWDLPeerManager::setAwdlSuspendedMode() Suspending AWDL, enterQuietMode(true)
28/11/15 12:14:52,000 kernel[0]: IO80211AWDLPeerManager::setAwdlOperatingMode Setting the AWDL operation mode from SUSPENDED to AUTO
28/11/15 12:14:52,000 kernel[0]: IO80211AWDLPeerManager::setAwdlAutoMode Resuming AWDL
28/11/15 12:14:53,000 kernel[0]: ARPT: 41873.524961: wl0: setup_keepalive: interval 900, retry_interval 30, retry_count 10
28/11/15 12:14:53,000 kernel[0]: ARPT: 41873.524972: wl0: setup_keepalive: Local IP: 192.168.1.136
28/11/15 12:14:53,000 kernel[0]: ARPT: 41873.524976: wl0: setup_keepalive: Remote IP: 17.110.229.212
28/11/15 12:14:53,000 kernel[0]: ARPT: 41873.524980: wl0: setup_keepalive: Local port: 53437, Remote port: 5223
28/11/15 12:14:53,000 kernel[0]: ARPT: 41873.524985: wl0: setup_keepalive: Seq: 3416633147, Ack: 3719134279, Win size: 4096
28/11/15 12:14:53,000 kernel[0]: ARPT: 41873.525001: wl0: MDNS: IPV4 Addr: 192.168.1.136
28/11/15 12:14:53,000 kernel[0]: ARPT: 41873.525006: wl0: MDNS: IPV6 Addr: fe80:0:0:0:aebc:32ff:fea0:6293
28/11/15 12:14:53,000 kernel[0]: ARPT: 41873.525011: wl0: MDNS: IPV6 Addr: 2a02:1810:340b:9d00:aebc:32ff:fea0:6293
28/11/15 12:14:53,000 kernel[0]: ARPT: 41873.525016: wl0: MDNS: IPV6 Addr: 2a02:1810:340b:9d00:78e1:6da:2544:6637
28/11/15 12:14:53,000 kernel[0]: ARPT: 41873.525019: wl0: MDNS: 0 SRV Recs, 0 TXT Recs
28/11/15 12:14:53,000 kernel[0]: ARPT: 41873.525023: wl0: MDNS: 1 TCP ports:  64538 
28/11/15 12:14:55,000 kernel[0]: PM response took 2006 ms (52, powerd)
28/11/15 12:14:55,000 kernel[0]: ARPT: 41875.523840: AirPort_Brcm43xx::powerChange: System Sleep 
28/11/15 12:14:55,000 kernel[0]: ARPT: 41875.523868: IOPMPowerSource Information: onSleep,  SleepType: Normal Sleep,  'ExternalConnected': No, 'TimeRemaining': 1177, 
28/11/15 12:14:55,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
28/11/15 12:14:56,000 kernel[0]: en0: BSSID changed to 00:22:b0:85:97:5e
28/11/15 12:14:56,000 kernel[0]: en0: channel changed to 1
28/11/15 12:14:56,000 kernel[0]: AppleThunderboltNHIType2::prePCIWake - power up complete - took 4 us
28/11/15 12:14:56,000 kernel[0]: AppleThunderboltGenericHAL::earlyWake - complete - took 0 milliseconds
28/11/15 12:14:56,000 kernel[0]: AirPort: Link Down on awdl0. Reason 1 (Unspecified).
28/11/15 12:14:56,000 kernel[0]: ARPT: 41875.988466: wl0: wl_update_tcpkeep_seq: Original Seq: 3416633147, Ack: 3719134279, Win size: 4096
28/11/15 12:14:56,000 kernel[0]: ARPT: 41875.988503: wl0: wl_update_tcpkeep_seq: Updated seq/ack/win from UserClient Seq 3416633147, Ack 3719134279, Win size 166
28/11/15 12:14:56,000 kernel[0]: ARPT: 41875.988545: wl0: leaveModulePoweredForOffloads: Wi-Fi will stay on.
28/11/15 12:14:56,000 kernel[0]: ARPT: 41876.014940: AirPort_Brcm43xx::platformWoWEnable: WWEN[enable]
28/11/15 12:14:56,000 kernel[0]: ARPT: 41876.015800: AirPort_Brcm43xx::syncPowerState: WWEN[enabled]
28/11/15 12:14:56,000 kernel[0]: in6_unlink_ifa: IPv6 address 0xb1c284aa235552d1 has no prefix
28/11/15 12:14:56,000 kernel[0]: IOThunderboltSwitch<0>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 11 unplug = 0
28/11/15 12:14:56,875 symptomsd[208]: -[NetworkAnalyticsEngine _writeJournalRecord:fromCellFingerprint:key:atLOI:ofKind:lqm:isFaulty:] Hashing of the primary key failed. Dropping the journal record.
28/11/15 12:14:57,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
28/11/15 12:14:57,000 kernel[0]: AppleThunderboltNHIType2::waitForOk2Go2Sx - intel_rp = 1 dlla_reporting_supported = 0
28/11/15 12:14:57,000 kernel[0]: AppleThunderboltNHIType2::waitForOk2Go2Sx - retries = 2
28/11/15 12:16:38,000 kernel[0]: Wake reason: ?
28/11/15 12:16:38,000 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
28/11/15 12:16:38,000 kernel[0]: AppleCamIn::wakeEventHandlerThread
28/11/15 12:16:38,000 kernel[0]: RTC: PowerByCalendarDate setting ignored
28/11/15 12:16:38,000 kernel[0]: Previous sleep cause: 5
28/11/15 12:16:38,000 kernel[0]: AppleThunderboltNHIType2::prePCIWake - power up complete - took 1 us
28/11/15 12:16:38,000 kernel[0]: AppleThunderboltGenericHAL::earlyWake - complete - took 1 milliseconds
28/11/15 12:16:38,000 kernel[0]: IOThunderboltSwitch<0>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 11 unplug = 0
28/11/15 12:16:38,000 kernel[0]: IOThunderboltSwitch<0>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 12 unplug = 0
28/11/15 12:16:38,000 kernel[0]: TBT W (2): 0x0040 [x]
28/11/15 12:16:38,000 kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
28/11/15 12:16:38,000 kernel[0]: en0: channel changed to 1
28/11/15 12:16:38,000 kernel[0]: en0::IO80211Interface::postMessage bssid changed
28/11/15 12:16:38,000 kernel[0]: en0: 802.11d country code set to 'X3'.
28/11/15 12:16:38,000 kernel[0]: en0: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 144 149 153 157 161
28/11/15 12:16:38,000 kernel[0]: en0: channel changed to 1
28/11/15 12:16:38,000 kernel[0]: ARPT: 41877.747390: ARPT: Wake Reason: Wake on Scan offload; Disconnect reason: Class 2 frame received from nonauthenticated STA
28/11/15 12:16:38,000 kernel[0]: Setting BTCoex Config: enable_2G:1, profile_2g:0, enable_5G:1, profile_5G:0
28/11/15 12:16:38,428 configd[51]: network changed: v4(en0-:192.168.1.136) v6(en0:2a02:1810:340b:9d00:aebc:32ff:fea0:6293) DNS! Proxy SMB
28/11/15 12:16:38,000 kernel[0]: AirPort: Link Up on awdl0
28/11/15 12:16:38,000 kernel[0]: USBMSC Identifier (non-unique): 000000000820 0x5ac 0x8406 0x820, 3
28/11/15 12:16:38,000 kernel[0]: in6_unlink_ifa: IPv6 address 0xb1c284aa23554af1 has no prefix
28/11/15 12:16:38,648 UserEventAgent[42]: Captive: CNPluginHandler en0: Inactive
28/11/15 12:16:39,054 cdpd[422]: Saw change in network reachability (isReachable=0)
28/11/15 12:16:39,055 Google Drive[368]: mod_SCNetworkReachabilityCallBack
28/11/15 12:16:39,056 Google Drive[368]: mod_SCNetworkReachabilityCallBack

Come puoi vedere, alcune parti si ripetono (es. Aeroporto).

Quando ho notato per la prima volta il problema, ho emesso il seguente comando:

syslog | grep -i "Wake reason"

Ha dato questo risultato:

Nov 27 03:08:12 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17412.146502: ARPT: Wake Reason: Wake on Scan offload; Disconnect reason: Class 2 frame received from nonauthenticated STA
Nov 27 03:08:12 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17412.385579: ARPT: Wake Reason: Wake on Scan offload
Nov 27 03:08:12 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 27 03:15:33 Kevins-MacBook-Pro kernel[0] <Notice>: Wake reason: ?
Nov 27 03:15:33 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17446.620656: ARPT: Wake Reason: Wake on Scan offload; Disconnect reason: Deauthentication beacuse sending STA is leaving (or has left) IBSS or ESS
Nov 27 03:15:34 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17447.435151: ARPT: Wake Reason: Wake on Scan offload
Nov 27 03:15:34 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 27 03:20:18 Kevins-MacBook-Pro kernel[0] <Notice>: Wake reason: ?
Nov 27 03:20:18 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17481.602419: ARPT: Wake Reason: Wake on Scan offload; Disconnect reason: Class 2 frame received from nonauthenticated STA
Nov 27 03:20:18 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17481.869208: ARPT: Wake Reason: Wake on Scan offload
Nov 27 03:20:18 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 27 03:22:50 Kevins-MacBook-Pro kernel[0] <Notice>: Wake reason: ?
Nov 27 03:22:50 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17515.977131: ARPT: Wake Reason: Wake on Scan offload; Disconnect reason: Class 2 frame received from nonauthenticated STA
Nov 27 03:22:51 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17516.843416: ARPT: Wake Reason: Wake on Scan offload
Nov 27 03:22:51 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 27 03:27:53 Kevins-MacBook-Pro kernel[0] <Notice>: Wake reason: ?
Nov 27 03:27:53 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17550.959664: ARPT: Wake Reason: Wake on Scan offload; Disconnect reason: Class 2 frame received from nonauthenticated STA
Nov 27 03:27:53 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17551.199358: ARPT: Wake Reason: Wake on Scan offload
Nov 27 03:27:53 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 27 03:30:41 Kevins-MacBook-Pro kernel[0] <Notice>: Wake reason: ?
Nov 27 03:30:41 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17584.863751: ARPT: Wake Reason: Wake on Scan offload; Disconnect reason: Class 2 frame received from nonauthenticated STA
Nov 27 03:30:42 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17585.721650: ARPT: Wake Reason: Wake on Scan offload
Nov 27 03:30:42 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 27 03:36:32 Kevins-MacBook-Pro kernel[0] <Notice>: Wake reason: ?
Nov 27 03:36:32 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17619.944847: ARPT: Wake Reason: Wake on Scan offload; Disconnect reason: Class 2 frame received from nonauthenticated STA
Nov 27 03:36:33 Kevins-MacBook-Pro kernel[0] <Notice>: ARPT: 17620.820368: ARPT: Wake Reason: Wake on Scan offload
Nov 27 03:36:33 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 27 03:44:22 Kevins-MacBook-Pro kernel[0] <Notice>: Wake reason: ?

La scorsa notte, ho spento il wifi sul mio Mac prima di mettere il Mac in modalità di sospensione. Questo ha risolto il problema dello scarico rapido della batteria (solo il 2% durante 10 ore di modalità di sospensione).

Il file di registro era ancora piuttosto disordinato, con un sacco di attività. Ma il comando ( syslog |grep -i "Wake reason" ) ha dato questo:

Nov 28 03:51:06 Kevins-MacBook-Pro kernel[0] <Notice>: Wake reason: EC.SleepTimer (SleepTimer)
Nov 28 03:51:07 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 28 05:51:29 Kevins-MacBook-Pro kernel[0] <Notice>: Wake reason: RTC (Alarm)
Nov 28 05:51:29 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 28 05:51:29 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 28 07:52:39 Kevins-MacBook-Pro kernel[0] <Notice>: Wake reason: RTC (Alarm)
Nov 28 07:52:39 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 28 07:52:39 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 28 09:52:46 Kevins-MacBook-Pro kernel[0] <Notice>: Wake reason: RTC (Alarm)
Nov 28 09:52:46 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 28 09:52:46 Kevins-MacBook-Pro kernel[0] <Notice>: [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
Nov 28 10:57:19 Kevins-MacBook-Pro kernel[0] <Notice>: Wake reason: EC.LidOpen (User)

Un RTC (allarme) ogni 2 ore.

Tieni presente che non ho orari di sveglia, la sveglia dalla rete è deselezionata e anche powernap è deselezionato. Ho anche disattivato qualsiasi servizio di condivisione.

Come posso risolvere questo problema? Voglio utilizzare la modalità di sospensione senza disabilitare il wifi e senza perdere il 20% della batteria durante la notte ...

UPDATE : Sembra che Apple abbia corretto lo scarico della batteria (in modalità sospensione) in macOS Sierra (10.12). Ma l'aggiornamento di macOS Sierra non ha risolto il problema per me. Ha appena introdotto un nuovo problema nella mia soluzione (pubblicato di seguito). Ora con Sierra, il programma SleepWatcher non esegue sempre gli script di wake al risveglio, con conseguente attivazione ritardata del Wi-Fi (a volte fino a 45 secondi dopo una scia).

    
posta Kevin De Koninck 28.11.2015 - 13:03
fonte

6 risposte

11

Ho trovato una soluzione. Sembra che gli MBP 2015 e 2016 siano interessati. Ciò ha richiesto la disabilitazione di SIP e la modifica di un'impostazione di sistema. Ho segnalato il bug ad Apple, quindi spero che lo risolvano presto. Si prega di segnalarlo anche a loro poiché eventuali modifiche apportate verranno probabilmente ripristinate con un aggiornamento di sistema.

Da qui: MacBook Pro 13 con display Retina consuma il 10% della batteria durante la notte con il coperchio chiuso, è normale?

e ulteriori dettagli a riguardo qui link

Devi attivare SIP off , quindi fare

ioreg -l | grep board-id

per ottenere l'ID della scheda e quindi cercare un file nella seguente directory che ha l'ID della scheda come nome file (* .plist file)

/System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/X86PlatformPlugin.kext/Contents/Resources

Fai clic con il tasto destro sul file > ottieni informazioni e modifica l'autorizzazione per "Tutti" per leggere e scrivere (o modificarla utilizzando sudo chmod a+rw *.plist ). Quindi modifica questi valori chiave con un editor di testo in modo che corrispondano a queste impostazioni:

<key>TCPKeepAliveDuringSleep</key>
<false/>
...
<key>NotificationWake</key>
<false/>
<key>DNDWhileDisplaySleeps</key>
<true/>

Infine, ritorna SIP su e riavvia.

    
risposta data 09.01.2017 - 04:57
fonte
5

Non ho trovato la causa esatta del problema, ma ho trovato una soluzione che eviterà drenaggi enormi della batteria in modalità sleep. La soluzione era disabilitare l'aeroporto (WiFi) quando il Macbook dormiva.

Ho usato SleepWatcher v2.2 ( link ) per eseguire 2 script a scia e interruzioni di sonno. Quando il macbook va in sospensione, eseguo il seguente comando per disabilitare WiFi:

/usr/sbin/networksetup setairportpower en0 off

Quando il MacBook si riattiva, abilito nuovamente WiFi:

/usr/sbin/networksetup setairportpower en0 on

Puoi scaricare uno script che installa SleepWatcher e gli script in un post di blog del mio (Nessuna pubblicità disponibile su la pagina).

Tieni presente che nella mia domanda iniziale ho detto che non volevo disattivare il WiFi costantemente quando mettevo il Mac in modalità di sospensione. Questa soluzione fa lo stesso, ma automaticamente, il che la rende una buona soluzione per lo scarico della batteria.

Lo script di sospensione:

#!/bin/bash

status=$(networksetup getairportpower en0 | grep -Ei "On$")

if [ -f /tmp/wifi.on ]; then
    rm /tmp/wifi.on
fi

if [ "" !=  "$status" ]; then
    echo "'date' -- WiFi is On ... storing statement" >> /tmp/sleep.log

    touch /tmp/wifi.on
    networksetup setairportpower en0 off
fi

Lo script di risveglio:

#!/bin/bash

if [ -f /tmp/wifi.on ]; then
    echo "'date' -- Enablig WiFi" >> /tmp/sleep.log
    sleep 3
    networksetup setairportpower en0 on
fi 
    
risposta data 04.12.2015 - 20:08
fonte
0

La tua macchina supporta Power Nap? Come ho capito, questa funzione fa sì che il computer si attivi a determinati intervalli per fare cose come controllare la posta ma mantiene comunque il consumo energetico al minimo. Non sono sicuro che usi un allarme RTC per fare questo o no. link

    
risposta data 28.11.2015 - 19:49
fonte
0

Ecco un modo migliore per attivare / disattivare la connessione Wi-Fi con un solo comando

networksetup -getairportpower en0 | grep "On" && networksetup -setairportpower en0 off || networksetup -setairportpower en0 on

E puoi anche creare un collegamento per eseguire il comando

1. Start Automator, and create a new Service.

2. Set "Service receives selected: to "no input" in "any application".

3. Add an action named "Run Shell Script". It's in the Utilities section of the Actions Library.

4. Insert the bash command you want into the text box and test run it  using the Run button (top right). It should do whatever the script does (off, on or toggle), and there should be green ticks below the Action.

5. Save it, giving it a service name you can remember.

6. Go to System Preferences -> Keyboard, and go to the Shortcuts tab

7. Go to the Services section, and scroll down to General - you should find your service there. If you select the line, you can click "add shortcut" and give it a keyboard shortcut.

link

    
risposta data 03.08.2016 - 19:38
fonte
0

Stava avendo questo problema su 10.12 Sierra. La soluzione di sleep watcher è stata un buon lavoro.

Appare riparato dall'aggiornamento Sierra di ieri 10.12.1

    
risposta data 25.10.2016 - 18:57
fonte
0

Ecco una soluzione meno invasiva che ha funzionato per me: attiva Do Not Disturb mentre il MacBook sta dormendo.

  1. Apri le Preferenze di Sistema - > Notifiche
  2. Nella sezione Non disturbare, aggiungi un segno di spunta accanto a "Quando lo schermo sta dormendo"
risposta data 09.04.2017 - 21:26
fonte

Leggi altre domande sui tag