这是对两种电源管理模式(待机与自动关机)的很好的汇编和并列,但是以上得出的结论并不完全正确。
我有2012年中的Macbook Pro 15英寸(非SSD),它同时支持待机和自动关机功能。上面引用的文章并未显示MacBook Pro 2012中期支持待机模式;但是,下面是“ pmset”的输出-g cap”命令在我的MacBook Pro上:
$ pmset -g cap
Capabilities for AC Power:
displaysleep
disksleep
sleep
womp
acwake
lidwake
halfdim
sms
gpuswitch
standby
standbydelay
ttyskeepawake
hibernatemode
hibernatefile
autopoweroff
autopoweroffdelay
自从Mountain Lion以来,我遇到了各种各样的电源管理问题。电脑进入睡眠状态后会进入休眠状态,因此我开始研究“ pmset”命令。但是,有时似乎确实会由“ autopoweroffdelay”计时器触发“自动关机”休眠状态,但不会由“ standbydelay”计时器触发“待机”休眠状态。自从Mountain Lion(甚至在Mavericks)以来,电源管理就一直无法正常工作。
我刚刚看了pmset命令的日志,似乎我的MacBook Pro于11:02 PM(由于EC.ACAttach / Maintenance)被唤醒,然后又在3:32唤醒了“ Dark Wake”,原因是EHC1 / HID活动”。AHC1 / HID设备是我的Logitech蓝牙键盘或Magic Trackpad。
pmset -g stats
4/17/14, 7:06:08 PM EDT Sleep Clamshell Sleep: Using BATT (Charge:99%)
4/17/14, 7:06:11 PM EDT SlowResponse PMConnection: Response from com.apple.apsd is slow (powercaps:0x0) 3038 ms
4/17/14, 7:06:34 PM EDT Assertions PID 33194(AddressBookSour) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:30 id:0x100000b31 [System: No Assertions]
4/17/14, 7:06:34 PM EDT Assertions PID 172(UserEventAgent) Released BackgroundTask "com.apple.AddressBook.ScheduledSync" 00:00:30 id:0xc00000b32 [System: No Assertions]
4/17/14, 7:06:36 PM EDT Timedout PMConnection: Response from CMacPowerHelper timed out (powercaps:0x0) 27999 ms
4/17/14, 7:06:36 PM EDT WakeRequests Clients requested wake events: None
4/18/14, 11:02:09 AM EDT Summary- [System: No Assertions] Using AC
4/18/14, 11:02:14 AM EDT DarkWake DarkWake [CDN] due to EC.ACAttach/Maintenance: Using AC (Charge:87%) 1 secs
4/18/14, 11:02:14 AM EDT Timedout Kernel: Response from Messages timed out (powercaps:0x9) 30000 ms
4/18/14, 11:02:14 AM EDT SlowResponse Kernel: Response from powerd is slow (powercaps:0x0) 28003 ms
4/18/14, 11:02:14 AM EDT Assertions PID 16(powerd) Created InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:00 id:0xe00000b3f [System: PrevIdle SRPrevSleep kCPU]
4/18/14, 11:02:15 AM EDT Wake DarkWake to FullWake [CDNVA] due to HID Activity: Using AC (Charge:87%)
4/18/14, 11:02:17 AM EDT SlowResponse PMConnection: Response from com.apple.notificationcenter.dnd is slow (powercaps:0x1f) 1536 ms
4/18/14, 11:02:47 AM EDT Assertions PID 33219(SubmitDiagInfo) Released PreventUserIdleSystemSleep "com.apple.SubmitDiagInfo.run" 00:00:36 id:0x100000b3e [System: PrevIdle BGTask SRPrevSleep kCPU]
4/18/14, 11:02:59 AM EDT Assertions PID 16(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:44 id:0xe00000b3f [System: PrevIdle BGTask SRPrevSleep kCPU]
4/18/14, 11:02:59 AM EDT Assertions PID 16(powerd) Released InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:44 id:0xe00000b3f [System: PrevIdle BGTask SRPrevSleep kCPU]
4/18/14, 11:03:13 AM EDT Assertions PID 33240(AddressBookSour) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:53 id:0x100000b5b [System: BGTask]
4/18/14, 11:03:13 AM EDT Assertions PID 172(UserEventAgent) Released BackgroundTask "com.apple.AddressBook.ScheduledSync" 00:00:53 id:0xc00000b5c [System: BGTask]
4/19/14, 3:32:20 AM EDT Wake Wake [CDNVA] due to EHC1/HID Activity: Using AC (Charge:99%) 7182 secs
MacBook Pro从未进入“休眠”模式,因为我将电池电源和交流电源的“ autopoweroffdelay”计时器保持为默认值14400秒(4小时)。我将电池电源的“待机延迟”手动设置为28,800秒(8小时),而交流电源的“待机延迟”设置为100,800秒(28小时)。要确定哪个“休眠”选项生效(“自动关机”或“待机”)的唯一方法是将其设置为非常短的时间间隔,例如Mac进入“睡眠”状态可能需要1个小时。然后,您可以看到哪种“休眠”模式触发了Mac“休眠”。
毋庸置疑,Apple不能在几年内使它正常工作是不可接受的。需要清理“ pmset”命令支持的功能,并且支持的选项必须在“系统偏好设置”的GUI中可用。