2017 MacBook Pro, 15inch 启动了 powernap,正常来说是应该不会亮屏的。
> pmset -g log
摘取唤醒前后的日志
2017-09-02 13:56:23 +0800 PM Client Acks Delays to Sleep notifications: [AirPort configd plug-in is slow(368 ms)] [com.apple.apsd is slow(2993 ms)] [mDNSResponder is slow(5005 ms)]
2017-09-02 14:49:14 +0800 Kernel Client Acks Delays to Sleep notifications: [powerd is slow(5014 ms)] [DSB1 driver is slow(msg: SetState to 2)(655 ms)] [DSB4 driver is slow(msg: SetState to 2)(655 ms)] [DSB0 driver is slow(msg: SetState to 2)(654 ms)] [AppleHPMIECS driver is slow(msg: WillChangeState to 2)(764 ms)] [UPSB driver is slow(msg: SetState to 2)(929 ms)] [AppleHPMIECS driver is slow(msg: WillChangeState to 2)(1044 ms)] [IOBluetoothHostControllerUARTTransport driver is slow(msg: SetState to 0)(4013 ms)]
2017-09-02 14:49:14 +0800 Assertions PID 166(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008300 [System: SRPrevSleep kCPU]
2017-09-02 14:49:14 +0800 Assertions PID 166(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008300 [System: No Assertions]
2017-09-02 14:49:14 +0800 Assertions Kernel Idle sleep preventers: IODisplayWrangler
2017-09-02 14:49:14 +0800 Notification Display is turned on
2017-09-02 14:49:15 +0800 Wake Wake from Normal Sleep [CDNVA] due to EC.DarkPME/HID Activity: Using AC (Charge:100%)
2017-09-02 14:49:15 +0800 HibernateStats hibmode=3 standbydelay=10800 983
2017-09-02 14:49:15 +0800 Kernel Client Acks Delays to Wake notifications: [AirPort_Brcm4360 driver is slow(msg: SetState to 2)(333 ms)] [UPSB driver is slow(msg: SetState to 2)(539 ms)] [UPSB driver is slow(msg: SetState to 2)(541 ms)] [AMDFramebufferVIB driver is slow(msg: SetState to 2)(308 ms)] [AppleHDADriver driver is slow(msg: SetState to 1)(446 ms)] [XHC2 driver is slow(msg: SetState to 2)(652 ms)]
2017-09-02 14:49:15 +0800 Assertions PID 50(powerd) Created InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:00 id:0x0xd00008301 [System: SRPrevSleep kCPU]
2017-09-02 14:49:16 +0800 PM Client Acks Delays to Wake notifications: [sharingd is slow(748 ms)] [com.apple.eoshostd is slow(765 ms)] [PowerChimeAgent is slow(798 ms)]
2017-09-02 14:49:29 +0800 Assertions PID 101(hidd) Created UserIsActive "com.apple.iohideventsystem.queue.tickle.4295013536.3" 00:00:00 id:0x0x90000833d [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]
2017-09-02 14:50:00 +0800 Assertions PID 50(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:45 id:0x0xd00008301 [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]
2017-09-02 14:50:00 +0800 Assertions Summary- [System: PrevIdle DeclUser kDisp] Using AC(Charge: 100)
2017-09-02 14:51:19 +0800 Assertions PID 91930(backupd) ClientDied PreventUserIdleSystemSleep "Time Machine backup" 00:02:01 id:0x0x100008333 [System: DeclUser kDisp]
2017-09-02 14:51:19 +0800 Assertions PID 91930(backupd) ClientDied BackgroundTask "Time Machine backup" 00:02:01 id:0x0xb00008332 [System: DeclUser kDisp]
用> log show --last 5m|grep "Wake"
2017-09-02 14:49:14.000025+0800 0x73 Default 0x0 0 kernel: PMRD: System Wake
2017-09-02 14:49:14.010347+0800 0xe89145 Default 0x0 86 securityd: [com.apple.securityd.powerwatch] enter DarkWake
2017-09-02 14:49:14.010522+0800 0x2ca Default 0x0 82 apsd: (CoreDaemon) <APSWakeStateManager: 0x7fea7820a000>: prepareForWakingIntoDarkWake
2017-09-02 14:49:14.010854+0800 0x702 Default 0x0 192 eoshostd: system is awake
2017-09-02 14:49:14.011294+0800 0x17a8 Default 0x0 511 PowerChime: PowerChime: 316686.964363: EARLY WAKE: kStateAsleep -> kStateEarlyWake
2017-09-02 14:49:14.011327+0800 0x17a8 Default 0x0 511 PowerChime: PowerChime: ERROR: Unexpected EARLY WAKE coming from state 1
2017-09-02 14:49:14.027170+0800 0x10d8 Default 0x0 380 sharingd: [com.apple.sharing.Daemon] Dark Wake
2017-09-02 14:49:14.054661+0800 0xe89928 Default 0x0 0 kernel: (KernelRelayHost) _wakeupAction: called
2017-09-02 14:49:14.256901+0800 0x2cd Default 0x0 92 blued: (IOBluetooth) [com.apple.bluetooth.ScanManager] System didWake, enable all scans
2017-09-02 14:49:14.447683+0800 0x73 Default 0x0 0 kernel: PMRD: full wake promotion (reason 1) 447 ms
2017-09-02 14:49:14.447685+0800 0x73 Default 0x0 0 kernel: full wake promotion (reason 1) 447 ms
2017-09-02 14:49:14.455790+0800 0x17a8 Default 0x0 511 PowerChime: PowerChime: 316687.408894: DISPLAY will power ON (isADarkWake 0)
2017-09-02 14:49:14.455879+0800 0x17a8 Default 0x0 511 PowerChime: PowerChime: 316687.408991: Calling displayWakeBlock
2017-09-02 14:49:14.455976+0800 0x17a8 Default 0x0 511 PowerChime: PowerChime: 316687.409088: handleDisplayWake ENTERED (wakeState = 1, displayAwake = 1)
2017-09-02 14:49:14.456042+0800 0x17a8 Default 0x0 511 PowerChime: PowerChime: 316687.409149: Display is awake but not ready to doChime
2017-09-02 14:49:14.456616+0800 0x17a8 Default 0x0 511 PowerChime: PowerChime: 316687.409732: hideBatteryHUDQuickly. Releasing display wake assertion.
2017-09-02 14:49:14.564305+0800 0xe89892 Default 0x0 0 kernel: (AppleThunderboltNHI) 142885536865us AppleThunderboltNHIType3::prePCIWake - took 376 us
2017-09-02 14:49:14.564306+0800 0xe89892 Default 0x0 0 kernel: (AppleThunderboltNHI) AppleThunderboltNHIType3::prePCIWake - took 376 us
2017-09-02 14:49:14.567158+0800 0xe8990f Default 0x0 0 kernel: (AppleThunderboltNHI) 142885539719us AppleThunderboltNHIType3::prePCIWake - took 841 us
2017-09-02 14:49:14.567159+0800 0xe8990f Default 0x0 0 kernel: (AppleThunderboltNHI) AppleThunderboltNHIType3::prePCIWake - took 841 us
2017-09-02 14:49:14.570994+0800 0xe89892 Default 0x0 0 kernel: (AppleThunderboltNHI) 142885543555us AppleThunderboltGenericHAL::earlyWake - complete - took 1 milliseconds
2017-09-02 14:49:14.570996+0800 0xe89892 Default 0x0 0 kernel: (AppleThunderboltNHI) AppleThunderboltGenericHAL::earlyWake - complete - took 1 milliseconds
2017-09-02 14:49:14.573087+0800 0xe89927 Default 0x0 0 kernel: (AppleThunderboltNHI) 142885545649us AppleThunderboltGenericHAL::earlyWake - complete - took 1 milliseconds
2017-09-02 14:49:14.573089+0800 0xe89927 Default 0x0 0 kernel: (AppleThunderboltNHI) AppleThunderboltGenericHAL::earlyWake - complete - took 1 milliseconds
2017-09-02 14:49:14.573408+0800 0x452 Default 0x0 0 kernel: (AppleIntelKBLGraphicsFramebuffer) FB0 power state transition Sleep --> Wake
2017-09-02 14:49:15.275999+0800 0x73 Default 0x0 0 kernel: (AirPortBrcm4360) ARPT: 142886.248560: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
2017-09-02 14:49:15.276018+0800 0x73 Default 0x0 0 kernel: (AirPortBrcm4360) ARPT: 142886.248580: IOPMPowerSource Information: onWake, SleepType: Normal Sleep, 'ExternalConnected': Yes, 'TimeRemaining': 0,
2017-09-02 14:49:15.291450+0800 0x2ca Default 0x0 82 apsd: (CoreDaemon) <APSWakeStateManager: 0x7fea7820a000>: prepareForFullWake
2017-09-02 14:49:15.291459+0800 0x2cd Default 0x0 92 blued: (IOBluetooth) [com.apple.bluetooth.CBManager] bluetooth_sleepHandler IOPMIsAUserWake
2017-09-02 14:49:15.291821+0800 0xe898e5 Default 0x0 90 DuetHeuristic-BM: (DuetActivitySchedulerDaemon) [com.apple.duetactivityscheduler.powernap] Suspending tasks due to wake state transition
2017-09-02 14:49:15.292576+0800 0x2cd Default 0x0 92 blued: (IOBluetooth) [com.apple.bluetooth.ScanManager] System didWake, enable all scans
2017-09-02 14:49:15.293730+0800 0x2ca Default 0x0 82 apsd: (CoreDaemon) <APSSpinReporter: 0x7fea7810d090>: prepareForFullWake
2017-09-02 14:49:15.293759+0800 0x2ca Default 0x0 82 apsd: (CoreDaemon) <APSDaemon: 0x7fea76d0ed80>: prepareForFullWake
2017-09-02 14:49:15.293904+0800 0x2ca Default 0x0 82 apsd: (CoreDaemon) prepareForFullWake: courier <APSEnvironment: 0x7fea7830af70: development>
2017-09-02 14:49:15.293914+0800 0x2ca Default 0x0 82 apsd: (CoreDaemon) <APSCourier: 0x7fea7be26de0>: prepareForFullWake
2017-09-02 14:49:15.293928+0800 0x2ca Default 0x0 82 apsd: (CoreDaemon) prepareForFullWake: courier <APSEnvironment: 0x7fea7830aca0: production>
2017-09-02 14:49:15.293938+0800 0x2ca Default 0x0 82 apsd: (CoreDaemon) <APSCourier: 0x7fea7830b270>: prepareForFullWake
2017-09-02 14:49:15.294442+0800 0x2ca Default 0x0 82 apsd: (CoreDaemon) <APSTopicFilterPolicyOSX: 0x7fea7830be30>: prepareForFullWake for 0 darkWakeEnabled
2017-09-02 14:49:15.294479+0800 0x2ca Default 0x0 82 apsd: (CoreDaemon) <APSTopicFilterPolicyOSX: 0x7fea76f0cf60>: prepareForFullWake for 0
2017-09-02 14:49:15.294750+0800 0x2ca Default 0x0 82 apsd: (CoreDaemon) <APSSpinReporter: 0x7fea78212ac0>: prepareForFullWake
2017-09-02 14:49:15.294782+0800 0x2ca Default 0x0 82 apsd: (CoreDaemon) <APSTopicFilterPolicyOSX: 0x7fea76c23a40>: prepareForFullWake for 501 darkWakeEnabled
2017-09-02 14:49:15.294824+0800 0xe89d0c Default 0x0 0 kernel: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
实际唤醒的就是 DarkWake,但是为什么会亮屏呢?
这个亮屏的问题是怎么解决的呢? 而且我发现,每次唤醒,wifi 网络好久都无响应,关掉 WIFI,再打开,就可以恢复
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.