Mac在夜间无故唤醒(El Capitan)


10

自从El Capitan(10.11)起,我在排干电池方面遇到了问题。因此,我在论坛上进行了搜索,没有找到正确的答案,但是他们给出了显示日志的命令。

这就是日志。

<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)

最后一个可以,因为我确实打开了盖子。但是以上这些都不应该发生。

和grep -i的结果唤醒/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

那么有没有解决的办法?


2
尝试使用Terminal.app命令pmset -g sched。这将列出所有计划的唤醒,睡眠或电源事件。不太可能安排任何时间,但值得检查。
Graham Miln

1
@GrahamMiln是的,没有安排任何时间,所以这不是问题。我在bugreport.apple.com上提交了一个错误,正在等待回应。如果他们说些有趣的话,我会放在这里。
Tomasz Kasperek

@GrahamMiln当我请求sched时,我没有在10.11上列出我的电源午睡唤醒。
bmike

2
您可以编辑它以显示您运行的命令以获取那些日志吗?它似乎缺少时间,并且如果您检查,您的系统日志也应该有很多“唤醒”命中项。grep -i wake /var/log/system.log
bmike

@bmike添加了您给我的命令结果。这是从昨晚开始的,只有那些时间是凌晨02点才应该发生
Tomasz Kasperek

Answers:


6

转到节能器首选项,并禁用电池和电源适配器的电源小睡。另外,如果启用了网络访问,请考虑禁用唤醒功能。

这是周期性唤醒事件的主要原因。您可能会遇到一些使USB连接故障的问题,但请从电源休眠开始,然后一并消除已连接的USB设备。

最后,在“蓝牙”偏好设置中,您可以选择不让蓝牙设备在“高级”设置(偏好设置窗格右下角的按钮)中唤醒Mac。

在我看来,这些唤醒没有错-每个间隔唤醒机器多长时间?10-15秒还是10-15分钟?


可能不是问题,但是这会耗尽我的电池电量,而我的最佳选择是自动唤醒,这可能会导致问题。我关闭了蓝牙唤醒设备,让我们看看,这可能会有所帮助。
Tomasz Kasperek

2
关闭唤醒设备的蓝牙设备
Tomasz Kasperek

2

什么对我有用(睡觉后电池耗尽):

设置和首选项->节能器->电源适配器,取消选中唤醒以访问以太网

设置和偏好->蓝牙,关闭

设备:El Capitan-2010年中15英寸,该型号没有打na

我的日志之前显示以下内容:

<Notice>: Wake reason: EHC2
<Notice>: Wake reason: EC LID0
<Notice>: Wake reason: PWRB (User)
<Notice>: Wake reason: EC LID0
<Notice>: Wake reason: EC LID0
<Notice>: Wake reason: EHC2
<Notice>: Wake reason: EC LID0
<Notice>: Wake reason: EC LID0
<Notice>: Wake reason: PWRB EC LID0 (User)
<Notice>: Wake reason: EC LID0 EHC2
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.