MacBook Pro在睡眠模式下持续唤醒


10

我有一台15英寸的MacBook Pro(2015年中)OS X 10.11.1,我注意到我的MacBook在睡眠模式下12小时会掉电20%。

当MacBook Pro处于“睡眠”模式时,这只是我的日志文件的一小部分:

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

如您所见,某些部分重复出现(例如,机场)。

当我第一次注意到该问题时,我发出了以下命令:

syslog | grep -i "Wake reason"

结果是这样的:

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: ?

昨晚,在将Mac置于睡眠模式之前,我已经关闭了Mac上的wifi。这解决了电池快速耗电的问题(在睡眠模式下10小时仅耗电2%)。

日志文件仍然非常混乱,有很多活动。但是命令(syslog |grep -i "Wake reason")给出了这一点:

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)

每2小时发送一次RTC(警报)。

请注意,我没有唤醒时间表,没有选中从网络唤醒,也没有选中powernap。我还禁用了任何共享服务。

我该如何解决这个问题?我想使用睡眠模式而不禁用wifi且不会在一夜之间丢失20%的电池…

更新:看来苹果公司已经修复了macOS Sierra(10.12)中的电池消耗(处于睡眠模式)。但是macOS Sierra更新没有为我解决问题。它只是给我的解决方案带来了一个新问题(在下面发布)。现在有了Sierra,SleepWatcher程序并不总是在唤醒时执行唤醒脚本,从而导致Wi-Fi的启用延迟(有时在唤醒后长达45秒)。


当我查看日志时,可以看到它连接到端口5223上的17.143.161.166和端口5223上的17.110.229.212。这些是位于加利福尼亚的Apple Inc.拥有的IP地址(根据ipinfo.io)。我不知道为什么会这样...
Kevin De Koninck

Answers:


11

我找到了解决方法。似乎2015和2016 MBP受到影响。这需要禁用SIP并更改系统设置。我已将该错误报告给了Apple,因此希望他们能尽快解决。也请向他们报告,因为您所做的任何更改都可能会随着系统更新而恢复。

从这里开始:配备Retina显示屏的MacBook Pro 13在关闭盖子的情况下会在一夜之间消耗10%的电池,这是否正常?

以及更多关于它的细节在这里https://discussions.apple.com/message/30869802#30869802

您必须先关闭SIP,然后再执行

ioreg -l | grep board-id

获取您的电路板ID,然后在以下目录中查找一个文件,该文件具有您的电路板ID作为文件名(* .plist文件)

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

右键单击文件>获取信息,然后更改“所有人”的读写权限(或使用进行编辑sudo chmod a+rw *.plist)。然后使用文本编辑器更改这些键值,以使其与以下设置匹配:

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

最后,重新打开SIP并重新启动。


这是一个很好的解决方案,并且有效!我很高兴有人找到了真正的解决方法。感谢分享!
凯文·德·科宁克

当Sierra出来时,我已应用您的修复程序。最近,我从Sierra升级到High Sierra,这些设置恢复为默认设置:true / true / false。我在2015年初的MBP 13大约每隔一个小时左右就开始起床。再次应用此修复程序。看起来苹果没有解决问题?
卢卡·吉贝利

6

我没有找到问题的确切原因,但我确实找到了一种解决方案,可以避免在睡眠模式下消耗大量电池。解决方案是在Macbook睡眠时禁用Airport(WiFi)。

我使用SleepWatcher v2.2(http://www.bernhard-baehr.de)在唤醒和睡眠中断时运行2个脚本。当Macbook进入睡眠状态时,我执行以下命令来禁用WiFi:

/usr/sbin/networksetup setairportpower en0 off

当Macbook再次唤醒时,我再次启用WiFi:

/usr/sbin/networksetup setairportpower en0 on

您可以在我的博客文章中下载安装SleepWatcher的脚本和脚本(页面上没有广告)。

请注意,在我的原始问题中,我说过,我不想让Mac进入睡眠状态时不断禁用WiFi。此解决方案执行相同的操作,但是会自动执行,因此非常适合解决电池消耗问题。


睡眠脚本:

#!/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

唤醒脚本:

#!/bin/bash

if [ -f /tmp/wifi.on ]; then
    echo "`date` -- Enablig WiFi" >> /tmp/sleep.log
    sleep 3
    networksetup setairportpower en0 on
fi 

我想知道苹果什么时候才能解决这个问题。自从进行了一些更新以来,我遇到了同样的问题,谢谢,您的解决方案为我解决了这个问题,但是我很想能够将笔记本电脑弹开并开始工作,而无需等待几秒钟的WiFi加热。
dotz '16

我将唤醒时间从7秒更改为大约3秒。您可以尝试使用时间,也许不是必须的,但是为了确定我已将其包括在内。我还更新了github上的sleep和唤醒脚本(添加了智能切换)。我个人不认为苹果会解决这个问题。我不知道他们是否现在也知道这个错误……
Kevin De Koninck

Sierra似乎为我解决了这个问题,过去几个小时,我禁用了您的脚本,但还剩下一些电量。有时我在可用范围内有可用的(已知)WiFi网络,有时却没有。升级到Sierra后,您的经验是什么?
dotz

昨天我禁用了脚本并将Macbook充电到100%,然后断开了电源线。我将其在00:25 AM和4:45 PM进入睡眠状态,我又重新启动了Macbook,但它仍有100%的电池电量。所以,是的,我想Sierra也已为我修复了此问题。感谢您指出!
凯文·德·科宁克

感谢您的脚本,这些脚本节省了我大约六个月的时间。我建议您以某种方式更新您的原始问题。网上几乎没有有关此问题的信息。另外...在经过一些更新后可能会重新引入,因为为什么不...
dotz

1

问题是macOS在MacBook Pro处于睡眠状态(此功能称为“ Power Nap ”)时继续检查更新(包括电子邮件,软件,新闻等)。这意味着在打开MacBook时可以非常快速地启动并运行,但是这也意味着在睡眠状态下电池电量会下降。

某些人遇到的问题是,即使禁用了“ Power Nap”,由于MacOS继续检查更新(可能是其他软件在线检查事物),他们的电池仍会耗尽。

要解决此问题,您可以告诉MacBook Pro处于睡眠状态时断开与Internet的连接,从而阻止进行在线检查。

为此,您需要将设置tcpkeepalive设置为0

打开终端并输入:

sudo pmset -b tcpkeepalive 0

输入sudo密码后,它会警告您某些功能可能无法正常使用。很好,它只是在睡眠期间禁用Internet访问。

您可以通过运行以下命令检查其设置是否正确:

pmset -g

哪个应该显示“ tcpkeepalive 0

当然,您可以随时通过运行以下命令将其撤消:

sudo pmset -b tcpkeepalive 1

简单!

注意:您也可以强迫Mac处于睡眠状态,即使连接到电源也不要连接到Internet ,如果您愿意:sudo pmset -a tcpkeepalive 0。(我个人并不介意,只要它不使用电池,-b对我来说就可以了。)

另请注意:运行命令时,pmset -g根据MacBook Pro是否接通电源的情况,结果将有所不同。它将反映当前设置,具体取决于其当前电源状况。 tcpkeepalive


0

您的机器是否支持Power Nap?据我了解,此功能会使计算机每隔一定的时间唤醒以执行诸如检查电子邮件之类的操作,但仍将耗电量保持在最低水平。我不确定它是否使用RTC警报来执行此操作。 https://support.apple.com/zh-CN/HT204032


它确实支持Power Nap,但我已在“节能器设置”中将其禁用。当我看着我的日志,我可以看到它连接到17.143.161.166端口5223.这是(根据苹果公司的IP地址:Legal Address位于加利福尼亚州ipinfo.io
凯文德Koninck

请避免澄清答案中的细节。请使用评论。
砖2015年

0

这是仅需一个命令即可打开/关闭wifi的更好方法

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

您还可以创建运行命令的快捷方式

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.

https://discussions.apple.com/message/22155705#22155705


0

在10.12 Sierra上遇到此问题。睡眠监视程序解决方案很好。

似乎是由昨天的Sierra更新10.12.1修复的


0

这是一种对我有用的侵入性较小的解决方案:在MacBook睡眠时启用“请勿打扰”。

  1. 打开系统偏好设置->通知
  2. 在“请勿打扰”部分下,在“显示器处于休眠状态”旁边添加复选标记
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.