為什麼我的 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

我的電腦:

  • 型號名稱:MacBook Pro
  • 型號識別碼:MacBookPro14,3
  • 處理器名稱:英特爾酷睿 i7
  • 處理器速度:3.1 GHz
  • 處理器數量:1
  • 核心總數:4
  • L2 快取(每個核心):256 KB
  • 三級快取:8 MB
  • 記憶體:16GB
  • 啟動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% 報告可能是系統實際輪詢電池目前值之前的小故障。打開蓋子時,我什至在用戶界面中也看到了這種情況。登入前電池會顯示最後一次記錄的值,登入後顯示真實值。

相關內容