Kể từ El Capitan (10.11), tôi gặp vấn đề với việc hết pin. Vì vậy, tôi đã tìm kiếm thông qua các diễn đàn và không tìm thấy câu trả lời đúng, nhưng họ đã đưa ra lệnh hiển thị nhật ký.
Vì vậy, đây là nhật ký.
<Notice>: Wake reason: EC.SleepTimer XHC1 (SleepTimer)
<Notice>: Wake reason: (HibernateError)
<Notice>: Wake reason: EC.SleepTimer XHC1 (SleepTimer)
<Notice>: Wake reason: (HibernateError)
<Notice>: Wake reason: EC.SleepTimer XHC1 (SleepTimer)
<Notice>: Wake reason: (HibernateError)
<Notice>: Wake reason: EC.LidOpen XHC1 (User)
Cái cuối cùng là OK, vì tôi thực sự đã mở nắp. Nhưng những điều trên không nên xảy ra.
Và kết quả của lệnh grep -i Wake /var/log/system.log:
Oct 17 02:39:56 MBP-Tomasz-2 kernel[0]: Wake reason: EC.SleepTimer (SleepTimer)
Oct 17 02:39:56 MBP-Tomasz-2 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
Oct 17 02:39:56 MBP-Tomasz-2 kernel[0]: AppleCamIn::wakeEventHandlerThread
Oct 17 02:39:56 MBP-Tomasz-2 PowerChime[337]: 141453.711174: EARLY WAKE: kStateAsleep -> kStateEarlyWake
Oct 17 02:39:56 MBP-Tomasz-2 kernel[0]: AppleThunderboltNHIType2::prePCIWake - power up complete - took 64409 us
Oct 17 02:39:56 MBP-Tomasz-2 kernel[0]: AppleThunderboltGenericHAL::earlyWake - complete - took 1 milliseconds
Oct 17 02:39:56 MBP-Tomasz-2 kernel[0]: ARPT: 27059.087764: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
Oct 17 02:39:56 MBP-Tomasz-2 kernel[0]: ARPT: 27059.088510: IOPMPowerSource Information: onWake, SleepType: Deep Idle, 'ExternalConnected': No, 'TimeRemaining': 7974,
Oct 17 02:39:56 MBP-Tomasz-2 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
Oct 17 02:39:56 MBP-Tomasz-2 kernel[0]: AppleCamIn::wakeEventHandlerThread
Oct 17 02:39:56 MBP-Tomasz-2 PowerChime[337]: 141454.445396: DARK WAKE: kStateEarlyWake -> kStateDarkWake
Oct 17 02:39:56 MacBook-Pro-Tomasz-2 PowerChime[337]: 141454.462163: GOING TO SLEEP: kStateDarkWake -> kStateAsleep
Oct 17 02:39:55 MacBook-Pro-Tomasz-2 ntpd[232]: wake time set -2.385026 s
Oct 17 02:39:57 MacBook-Pro-Tomasz-2 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
Oct 17 10:17:09 MacBook-Pro-Tomasz-2 kernel[0]: AppleCamIn::handleWakeEvent_gated
Oct 17 10:17:09 MacBook-Pro-Tomasz-2 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
Oct 17 10:17:09 MacBook-Pro-Tomasz-2 kernel[0]: Wake reason: EC.LidOpen (User)
Oct 17 10:17:09 MacBook-Pro-Tomasz-2 kernel[0]: vm_compressor_fastwake_warmup (6201 - 10125) - starting
Oct 17 10:17:09 MacBook-Pro-Tomasz-2 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000320
Oct 17 10:17:09 MacBook-Pro-Tomasz-2 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
Oct 17 10:17:09 MacBook-Pro-Tomasz-2 kernel[0]: AppleCamIn::wakeEventHandlerThread
Oct 17 10:17:09 MacBook-Pro-Tomasz-2 kernel[0]: AppleThunderboltNHIType2::prePCIWake - power up complete - took 172 us
Oct 17 10:17:09 MacBook-Pro-Tomasz-2 kernel[0]: AppleThunderboltGenericHAL::earlyWake - complete - took 1 milliseconds
Oct 17 10:17:09 MacBook-Pro-Tomasz-2 PowerChime[337]: 168887.170875: EARLY WAKE: kStateAsleep -> kStateEarlyWake
Oct 17 10:17:09 MacBook-Pro-Tomasz-2 WindowServer[193]: CGXDisplayDidWakeNotification [27075365873210]: posting kCGSDisplayDidWake
Oct 17 10:17:10 MacBook-Pro-Tomasz-2 kernel[0]: ARPT: 27075.858912: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
Oct 17 10:17:10 MacBook-Pro-Tomasz-2 kernel[0]: ARPT: 27075.858945: IOPMPowerSource Information: onWake, SleepType: Standby, 'ExternalConnected': No, 'TimeRemaining': 901,
Oct 17 10:17:10 MacBook-Pro-Tomasz-2 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
Oct 17 10:17:10 MacBook-Pro-Tomasz-2 kernel[0]: AppleCamIn::wakeEventHandlerThread
Oct 17 10:17:14 MBP-Tomasz-2 kernel[0]: AppleCamIn::handleWakeEvent_gated
Oct 17 10:17:15 MBP-Tomasz-2 PowerChime[337]: 168893.051751: FULL WAKE: kStateEarlyWake -> kStateAwake
Oct 17 10:17:15 MBP-Tomasz-2 PowerChime[337]: 168893.051830: Calling fullWakeBlock
Oct 17 10:17:15 MBP-Tomasz-2 PowerChime[337]: 168893.051891: handleFullWake ENTERED
Oct 17 10:17:15 MBP-Tomasz-2 kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000300
Oct 17 10:17:15 MBP-Tomasz-2 sharingd[293]: 10:17:15.363 : Starting AirDrop server for user 501 on wake
Oct 17 10:17:14 MBP-Tomasz-2 ntpd[232]: wake time set -1.061934 s
Oct 17 10:17:16 MBP-Tomasz-2 kernel[0]: vm_compressor_fastwake_warmup completed - took 9003 msecs
Vì vậy, có một sửa chữa cho điều đó?
grep -i wake /var/log/system.log
pmset -g sched
. Điều này sẽ liệt kê bất kỳ sự kiện đánh thức, ngủ hoặc sức mạnh theo lịch trình. Nó không chắc là bất kỳ được lên lịch nhưng đáng để kiểm tra.