Por que meu MacBook Pro queimou 15% da bateria enquanto dormia?

Por que meu MacBook Pro queimou 15% da bateria enquanto dormia?

RESUMO

Meu MacBook Pro não está dormindo. Por exemplo, ainda está quente depois de ficar fechado na minha bolsa por horas. Aqui estão algumas informações do log do pmset da última vez que isso aconteceu. As principais linhas estão aqui:

Fechei a tampa aqui:

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

... Depois que abri, ele relatou o seguinte:

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   

Eu tentei o seguinte:

  • Verificando o Activity Monitor em busca de algo que impeça o sono, nada está.

A atividade do log parece um pouco estranha, ele relata 70% da bateria segundos antes de mudar para 55%, então talvez algo esteja errado também.

RESULTADOS COMPLETOS DEpmset -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

Meu Mac:

  • Nome do modelo: MacBook Pro
  • Identificador do modelo: MacBookPro14,3
  • Nome do processador: Intel Core i7
  • Velocidade do processador: 3,1 GHz
  • Número de processadores: 1
  • Número total de núcleos: 4
  • Cache L2 (por núcleo): 256 KB
  • Cache L3: 8MB
  • Memória: 16 GB
  • Versão da ROM de inicialização: 190.0.0.0.0
  • Versão SMC (sistema): 2.45f0

Responder1

Verifique em Configurações/Economia de energia se o Power Nap não está ativado na bateria. Eu o desativo mesmo quando conectado.
Verifique também esta resposta relacionada à sincronização do catálogo de endereços:https://apple.stackexchange.com/a/237552/334268

A longa história

Parece que seu Mac acordou uma vez às 00h30 do sono leve por quase um minuto e, em seguida, às 07h59 do modo de espera quando você abriu a tampa.
Parece também que ele teria acordado às 09:00 novamente se você não o tivesse aberto antes disso acontecer:

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'

Por padrão, os Macs são configurados para permanecer em sono leve por 3 ou 4 horas. Durante esse período, eles podem realizar tarefas em segundo plano, como sincronizar coisas.
A seção interessante do seu log começa em Assertion status system-wide:.

Parece que você teve uma sincronização de fotos na nuvem que levou menos de um minuto se minha interpretação estiver correta: 00:00:48 BackgroundTask named: "com.apple.cloudphotosd.darkwake.sync", correspondendo a esta entrada:

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]

E uma sincronização do catálogo de endereços: 00:00:32 BackgroundTask named: "com.apple.AddressBook.ScheduledSync.
Este último está marcado como PreventUserIdleSystemSleepentão pode ser o culpado. Ou talvez ambas as sincronizações representem 15%.
O relatório de 70% pouco antes de 55% é provavelmente uma falha antes do sistema realmente pesquisar o valor atual da bateria. Vi isso acontecer até na interface do usuário ao abrir a tampa. Antes do login a bateria mostraria o último valor registrado, após o login mostraria o valor real.

informação relacionada