为什么我的 MacBook Pro 在睡眠时会消耗 15% 的电量?

为什么我的 MacBook Pro 在睡眠时会消耗 15% 的电量?

概括

我的 MacBook Pro 一直没有进入休眠状态,例如,在包里放了几个小时后,它仍然很热。以下是上次发生这种情况时 pmset 日志中的一些信息。关键行如下:

在这里盖上盖子:

2019-05-22 21:47:04 -0700 Sleep                 Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=active Using Batt (Charge:70%) 9808 secs

...然后我打开它后,它报告了这个:

2019-05-23 07:59:52 -0700 DarkWake              DarkWake from Standby [CDN] due to EC.DarkPME ARPT/HID Activity: Using BATT (Charge:55%) 2 secs   

我尝试了以下方法:

  • 检查活动监视器中是否存在任何妨碍睡眠的事情,没有。

日志活动看起来有点奇怪,它报告电池电量为 70%,然后才变为 55%,所以也许还有其他问题。

全部结果pmset -g log

Time stamp                Domain                Message                                                                     Duration    Delay     
==========                ======                =======                                                                     ========    =====     
UUID: EDA2A8FD-4588-409D-9336-2CF55A415196
2019-05-22 21:47:04 -0700 Sleep                 Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=active Using Batt (Charge:70%) 9808 secs 
2019-05-22 21:47:18 -0700 Assertions            PID 87(apsd) Released ApplePushServiceTask "com.apple.apsd-connectionestablish-push.apple.com" 00:00:20  id:0x0xb0000830e [System: PrevIdle DeclUser IntPrevDisp kDisp]          
2019-05-22 21:47:32 -0700 Wake Requests         [*proc=powerd request=TCPKATurnOff inDelta=43232]           
2019-05-22 21:47:32 -0700 PM Client Acks        Delays to Sleep notifications: [mDNSResponder is slow(5017 ms)] [com.apple.apsd timed out(28001 ms)]           
2019-05-23 00:30:31 -0700 Kernel Client Acks    Delays to Sleep notifications: [AppleIntelFramebuffer driver is slow(msg: SetState to 1)(1743 ms)] [SymDaemon timed out(30000 ms)] [powerd is slow(28003 ms)] [UPSB driver is slow(msg: SetState to 2)(937 ms)] [UPSB driver is slow(msg: SetState to 2)(938 ms)] [AppleHPMIECS driver is slow(msg: WillChangeState to 2)(1055 ms)] [AppleHPMIECS driver is slow(msg: WillChangeState to 2)(1055 ms)]           
2019-05-23 00:30:31 -0700 Assertions            PID 187(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00  id:0x0xd00008315 [System: PrevIdle DeclUser IntPrevDisp kDisp]          
2019-05-23 00:30:31 -0700 Assertions            PID 2111(cloudphotosd) Released BackgroundTask "com.apple.cloudphotosd.darkwake.sync" 02:43:56  id:0x0xb00008301 [System: PrevIdle DeclUser IntPrevDisp kDisp]          
2019-05-23 00:30:31 -0700 Notification          Next immediate inactivity window start:'2019-05-23 00:30:00 -0700' end:'2019-05-23 09:00:00 -0700'            
2019-05-23 00:30:31 -0700 Assertions            PID 187(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00  id:0x0xd00008315 [System: PrevIdle DeclUser IntPrevDisp kDisp]          
2019-05-23 00:30:32 -0700 DarkWake              DarkWake from Normal Sleep [CDN] due to EC.SleepTimer/SleepTimer: Using BATT (Charge:70%) 42 secs   
2019-05-23 00:30:32 -0700 HibernateStats        hibmode=3 standbydelay=10800                                                          146           
2019-05-23 00:30:32 -0700 WakeTime              WakeTime: 2.276 sec                                                                   
2019-05-23 00:30:32 -0700 Kernel Client Acks    Delays to Wake notifications: [AirPort_BrcmNIC driver is slow(msg: SetState to 2)(315 ms)] [UPSB driver is slow(msg: SetState to 2)(542 ms)] [UPSB driver is slow(msg: SetState to 2)(542 ms)] [AMDFramebufferVIB driver is slow(msg: SetState to 1)(315 ms)]           
2019-05-23 00:30:32 -0700 Assertions            PID 91(timed) Released NoIdleSleepAssertion "com.apple.timed.ntp" 02:43:26  id:0x0x100008310 [System: DeclUser IntPrevDisp IPushSrvc kCPU kDisp]          
2019-05-23 00:30:44 -0700 Assertions            PID 87(apsd) Released ApplePushServiceTask "com.apple.apsd-connectionestablish-push.apple.com" 02:43:26  id:0x0xb00008313 [System: PrevIdle DeclUser IntPrevDisp IPushSrvc kCPU kDisp]          
2019-05-23 00:30:52 -0700 Assertions            PID 87(apsd) Released InteractivePushServiceTask "com.apple.apsd-wakeconnection-push.apple.com" 00:00:19  id:0x0x120000831a [System: PrevIdle DeclUser IntPrevDisp IPushSrvc kCPU kDisp]          
2019-05-23 00:31:03 -0700 Assertions            PID 2838(diskmanagementd) Released PreventUserIdleSystemSleep "com.apple.diskmanagementd" 00:00:15  id:0x0x100008320 [System: PrevIdle DeclUser IntPrevDisp IPushSrvc kCPU kDisp]          
2019-05-23 00:31:05 -0700 Assertions            PID 91(timed) Released NoIdleSleepAssertion "com.apple.timed.ntp" 00:00:30  id:0x0x10000831b [System: DeclUser IntPrevDisp IPushSrvc kCPU kDisp]          
2019-05-23 00:31:14 -0700 Assertions            PID 87(apsd) Released InteractivePushServiceTask "com.apple.apsd-connectionestablish-push.apple.com" 00:00:30  id:0x0x120000831d [System: PrevIdle DeclUser IntPrevDisp kDisp]          
2019-05-23 00:31:14 -0700 Sleep                 Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:70%) 26918 secs
2019-05-23 00:31:14 -0700 Wake Requests         [*proc=powerd request=AdaptiveWake inDelta=26925] [proc=powerd request=TCPKATurnOff inDelta=33410]           
2019-05-23 07:59:51 -0700 Assertions            PID 61(powerd) TimedOut InternalPreventDisplaySleep "com.apple.powermanagement.delayDisplayOff" 10:13:30  id:0x0x1000008185 [System: PrevIdle DeclUser IntPrevDisp kDisp]          
2019-05-23 07:59:51 -0700 Assertions            Summary- [System: PrevIdle DeclUser kDisp] Using Batt(Charge: 70)          
2019-05-23 07:59:51 -0700 Kernel Client Acks    Delays to Sleep notifications: [UPSB driver is slow(msg: SetState to 2)(939 ms)] [UPSB driver is slow(msg: SetState to 2)(939 ms)] [AppleHPMIECS driver is slow(msg: WillChangeState to 2)(1056 ms)] [AppleHPMIECS driver is slow(msg: WillChangeState to 2)(1056 ms)] [AirPort_BrcmNIC driver is slow(msg: SetState to 2)(312 ms)]           
2019-05-23 07:59:51 -0700 Assertions            PID 61(powerd) Created InternalPreventSleep "Holding in darkwake for up to 30 seconds to update inactivity prediction" 00:00:00  id:0x0xd00008326 [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]          
2019-05-23 07:59:51 -0700 Assertions            PID 187(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00  id:0x0xd00008329 [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]          
2019-05-23 07:59:51 -0700 Notification          Next largest inactivity window start:'2019-05-23 20:15:00 -0700' end:'2019-05-24 09:00:00 -0700'              
2019-05-23 07:59:51 -0700 Assertions            PID 61(powerd) Released InternalPreventSleep "Holding in darkwake for up to 30 seconds to update inactivity prediction" 00:00:00  id:0x0xd00008326 [System: PrevIdle DeclUser kDisp]          
2019-05-23 07:59:51 -0700 Assertions            PID 113(hidd) TurnedOn UserIsActive "com.apple.iohideventsystem.queue.tickle.4294970777.3" 00:00:00  id:0x0x900008212 [System: PrevIdle DeclUser kDisp]          
2019-05-23 07:59:51 -0700 Assertions            PID 113(hidd) TurnedOn UserIsActive "com.apple.iohideventsystem.queue.tickle.4294970777.3" 00:00:00  id:0x0x900008212 [System: PrevIdle DeclUser kDisp]          
2019-05-23 07:59:52 -0700 Assertions            PID 61(powerd) Created InternalPreventSleep "PM configd - Wait for Device enumeration" 00:00:00  id:0x0xd0000832a [System: PrevIdle DeclUser kDisp]          
2019-05-23 07:59:52 -0700 DarkWake              DarkWake from Standby [CDN] due to EC.DarkPME ARPT/HID Activity: Using BATT (Charge:55%) 2 secs    
2019-05-23 07:59:52 -0700 WakeDetails           DriverReason:ARPT - DriverDetails:                                         
DriverReason:WiFi.ScanOffload-Group key handshake timeout - DriverDetails: 
2019-05-23 07:59:52 -0700 HibernateStats        hibmode=3 standbydelay=10800                                                          rd=539 ms     
2019-05-23 07:59:52 -0700 WakeTime              WakeTime: 4.728 sec                                                                   
2019-05-23 07:59:52 -0700 Kernel Client Acks    Delays to Wake notifications: [UPSB driver is slow(msg: SetState to 2)(540 ms)] [UPSB driver is slow(msg: SetState to 2)(540 ms)] [AMDFramebufferVIB driver is slow(msg: SetState to 1)(319 ms)]           
2019-05-23 07:59:53 -0700 Assertions            PID 187(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:01  id:0x0xd00008329 [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]          
2019-05-23 07:59:53 -0700 Assertions            Kernel Idle sleep preventers: IODisplayWrangler          
2019-05-23 07:59:53 -0700 Notification          Display is turned on                                                                  
2019-05-23 07:59:54 -0700 Wake                  DarkWake to FullWake from Standby [CDNVA] due to HID Activity: Using BATT (Charge:55%)           
2019-05-23 07:59:54 -0700 WakeDetails           DriverReason:ARPT - DriverDetails:                                         
DriverReason:WiFi.ScanOffload-Group key handshake timeout - DriverDetails: 
2019-05-23 07:59:54 -0700 HibernateStats        hibmode=3 standbydelay=10800                                                          rd=539 ms     
2019-05-23 07:59:54 -0700 WakeTime              WakeTime: 0.462 sec                                                                   
2019-05-23 07:59:54 -0700 Kernel Client Acks    Delays to Wake notifications: [AppleHDADriver driver is slow(msg: SetState to 1)(432 ms)]           
2019-05-23 08:00:08 -0700 Assertions            PID 61(powerd) Released InternalPreventSleep "PM configd - Wait for Device enumeration" 00:00:16  id:0x0xd0000832a [System: DeclUser IPushSrvc kCPU kDisp]          
Total Sleep/Wakes since boot at 2019-05-22 21:06:36 -0700 :2
2019-05-23 08:00:43 -0700 : Showing all currently held IOKit power assertions
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   InteractivePushServiceTask     1
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     1
   NetworkClientActive            0
Listed by owning process:
   pid 91(timed): [0x00000a080001835b] 00:00:03 NoIdleSleepAssertion named: "com.apple.timed.ntp" 
    Timeout will fire in 107 secs Action=TimeoutActionTurnOff
   pid 113(hidd): [0x000004c500098212] 00:00:01 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294970661.3" 
    Timeout will fire in 119 secs Action=TimeoutActionRelease
   pid 2111(cloudphotosd): [0x000009db000b833d] 00:00:48 BackgroundTask named: "com.apple.cloudphotosd.darkwake.sync" 
    Details: cloudphotosd darkwake power assertion for initial and large iCPL downloads/uploads
    Timeout will fire in 1752 secs Action=TimeoutActionTurnOff
   pid 473(UserEventAgent): [0x000009eb000b8353] 00:00:32 BackgroundTask named: "com.apple.AddressBook.ScheduledSync" 
    Created for PID: 3022. 
   pid 87(apsd): [0x000009f900128357] 00:00:18 InteractivePushServiceTask named: "com.apple.apsd-connectionestablish-push.apple.com" 
    Timeout will fire in 162 secs Action=TimeoutActionTurnOff
   pid 3022(AddressBookSourceSync): [0x000009eb00018352] 00:00:32 PreventUserIdleSystemSleep named: "Address Book Source Sync" 
    Timeout will fire in 1767 secs Action=TimeoutActionTurnOff
   pid 254(mds_stores): [0x00000a0b000b835c] 00:00:01 BackgroundTask named: "com.apple.metadata.mds_stores.power" 
Kernel Assertions: 0x8=BT-HID
   id=504  level=255 0x8=BT-HID mod=12/31/69, 4:00 PM description=com.apple.driver.IOBluetoothHIDDriver owner=IOBluetoothHIDDriver
Idle sleep preventers: IODisplayWrangler

我的Mac:

  • 型号名称:MacBook Pro
  • 型号标识符:MacBookPro14,3
  • 处理器名称:Intel Core i7
  • 处理器速度: 3.1 GHz
  • 处理器数量:1
  • 核心总数:4
  • L2 缓存(每个核心):256 KB
  • L3 缓存: 8 MB
  • 内存:16 GB
  • 引导 ROM 版本:190.0.0.0.0
  • SMC 版本(系统):2.45f0

答案1

检查“设置/节能器”,确保电池供电时未启用 Power Nap。我甚至在插入电源时也禁用了它。
另请查看与“地址簿同步”相关的此答案:https://apple.stackexchange.com/a/237552/334268

长话短说

看来您的 Mac 在 00:30 从轻度睡眠状态唤醒了一次,持续了将近一分钟,然后在 07:59 打开盖子时从待机状态唤醒。
此外,如果您在此之前没有打开它,它似乎会在 09:00 再次被唤醒:

2019-05-23 00:30:31 -0700 Notification          Next immediate inactivity window start:'2019-05-23 00:30:00 -0700' end:'2019-05-23 09:00:00 -0700'

默认情况下,mac 会配置为处于轻度睡眠状态 3 或 4 小时。在此期间,它们可以执行同步等后台任务。
日志中有趣的部分从 开始Assertion status system-wide:

如果我的解释正确的话,似乎您进行了云照片同步,耗时不到一分钟:00:00:48 BackgroundTask named: "com.apple.cloudphotosd.darkwake.sync",对应于此条目:

2019-05-23 00:30:31 -0700 Assertions            PID 2111(cloudphotosd) Released BackgroundTask "com.apple.cloudphotosd.darkwake.sync" 02:43:56  id:0x0xb00008301 [System: PrevIdle DeclUser IntPrevDisp kDisp]

还有一个地址簿同步:00:00:32 BackgroundTask named: "com.apple.AddressBook.ScheduledSync
最后一个被标记为PreventUserIdleSystemSleep,所以它可能是罪魁祸首。或者两个同步都占了 15%。
在 55% 之前报告 70% 可能是系统实际轮询电池当前值之前的故障。我看到这种情况甚至在打开盖子时在用户界面中发生。登录前电池会显示最后记录的值,登录后会显示真实值。

相关内容