macOS 偶尔唤醒时重启有遇到过的吗?

2017-01-03 23:51:11 +08:00
 ghl

Mid 2015 MBP ,系统版本 Sierra 10.12.2 ,偶尔会遇到唤醒时重启的现象(最近一周内遇到两次),插电源和不插电源都有,中间休眠时间在一个小时左右。

具体表现是:开盖按键盘无反应,按 Power 键发现系统重新启动了,关键是启动后并没有任何错误提示。

查看 last reboot 发现确实有条 reboot 记录和唤醒的时间一致,休眠相关设置信息如下:

$ pmset -g
System-wide power settings:
Currently in use:
 standbydelay         10800
 standby              1
 halfdim              1
 hibernatefile        /var/vm/sleepimage
 powernap             0
 gpuswitch            2
 disksleep            10
 sleep                1 (sleep prevented by coreaudiod)
 autopoweroffdelay    28800
 hibernatemode        3
 autopoweroff         1
 ttyskeepawake        1
 displaysleep         2
 acwake               0
 lidwake              1

请问有什么办法能查到重启的原因吗?

补一段电源管理日志: 21:43 是我合上盖子回家的时间, 22:57 是我开盖的时间,也是 last reboot 记录的时间,奇怪的是在此 10 分钟之前(也就是 22:46 )居然有一些日志,这个时间点电脑应该还在包里呀,不知道重启与之有关吗?

2017-01-03 21:43:18 +0800 Sleep                   Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=active Using Batt (Charge:100%) 3819 secs 
2017-01-03 21:43:21 +0800 Wake Requests           [*proc=mDNSResponder request=Maintenance inDelta=7197] [proc=powerd request=TCPKATurnOff inDelta=43243]           
2017-01-03 21:43:21 +0800 PM Client Acks          Delays to Sleep notifications: [com.apple.apsd is slow(3012 ms)]           
2017-01-03 22:46:57 +0800 Kernel Client Acks      Delays to Sleep notifications: [powerd is slow(3015 ms)] [AppleThunderboltNHIType2 driver is slow(msg: WillChangeState to 2)(364 ms)] [PEG0 driver is slow(msg: SetState to 0)(900 ms)]           
2017-01-03 22:46:57 +0800 Assertions              PID 49(powerd) Created InternalPreventSleep "Network wake delay proxy assertion" 00:00:00  id:0x0xd00008d45 [System: No Assertions]          
2017-01-03 22:46:57 +0800 DarkWake                DarkWake from Normal Sleep [CDN] due to ARPT/Network: Using BATT (Charge:100%) 31 secs   
2017-01-03 22:46:57 +0800 WakeDetails             DriverReason:WiFi.ScanOffload - DriverDetails:                             
2017-01-03 22:46:57 +0800 HibernateStats          hibmode=3 standbydelay=10800                                                             rd=185 ms     
2017-01-03 22:46:58 +0800 Kernel Client Acks      Delays to Wake notifications: [AirPort_Brcm4360 driver is slow(msg: SetState to 2)(317 ms)] [SSP4 driver is slow(msg: SetState to 3)(383 ms)] [com_apple_driver_AppleUSBCardReaderDriverNub driver is slow(msg: SetState to 2)(622 ms)] [PEG0 driver is slow(msg: SetState to 2)(1071 ms)]           
2017-01-03 22:46:58 +0800 Assertions              PID 157(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00  id:0x0xd00008d46 [System: SRPrevSleep kCPU]          
2017-01-03 22:46:58 +0800 Assertions              PID 157(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00  id:0x0xd00008d46 [System: SRPrevSleep IPushSrvc kCPU]          
2017-01-03 22:47:28 +0800 Assertions              PID 49(powerd) TimedOut InternalPreventSleep "Network wake delay proxy assertion" 00:00:30  id:0x0xd00008d45 [System: SRPrevSleep kCPU]          
2017-01-03 22:47:28 +0800 Sleep                   Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:100%)           
2017-01-03 22:47:40 +0800 Wake Requests           [*proc=mDNSResponder request=Maintenance inDelta=6446] [proc=powerd request=TCPKATurnOff inDelta=39384]           
2017-01-03 22:47:40 +0800 PM Client Acks          Delays to Sleep notifications: [com.apple.apsd is slow(1678 ms)] [com.apple.notificationcenter.dnd is slow(12691 ms)]           
Sleep/Wakes since boot at 2016-12-20 13:39:24 +0800 :184   Dark Wake Count in this sleep cycle:1

Time stamp                Domain                  Message                                                                        Duration      Delay     
==========                ======                  =======                                                                        ========      =====     
UUID: (null)
2017-01-03 22:57:53 +0800 Start                   powerd process is started                                                                
2017-01-03 22:57:53 +0800 Assertions              Summary- [System: No Assertions] Using Batt(Charge: 98)          
2017-01-03 22:57:53 +0800 Assertions              Kernel Idle sleep preventers: IODisplayWrangler          
2017-01-03 22:57:53 +0800 HibernateStats          hibmode=0 standbydelay=0                                                                 0             
Sleep/Wakes since boot at 2017-01-03 22:57:53 +0800 :0   Dark Wake Count in this sleep cycle:1

Time stamp                Domain                  Message                                                                        Duration      Delay     
==========                ======                  =======                                                                        ========      =====     
UUID: Unknown UUID
2017-01-03 22:57:53 +0800 Failure                 Sleep Failure [code:XHC1(XHC1)]:                                                         
2017-01-03 22:58:22 +0800 Assertions              PID 100(hidd) Created UserIsActive "com.apple.iohideventsystem.queue.tickle.4294968106.11" 00:00:00  id:0x0x9000080d8 [System: PrevIdle DeclUser IPushSrvc kCPU kDisp]          
2017-01-03 22:59:09 +0800 Assertions              PID 329(cloudd) Released PreventUserIdleSystemSleep "Operation running - <CKDFetchRecordZonesOperation: 0x7fa825e7da30; operationID=3EFF7C238B1B4F88, stateFlags=executing, qos=UserInitiated, flags=allows-cellular, runningFor=0s>" 00:01:00  id:0x0x1000080ab [System: PrevIdle DeclUser IPushSrvc kCPU kDisp]          
2017-01-03 22:59:09 +0800 Assertions              PID 282(AddressBookSourceSync) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:01:12  id:0x0x100008031 [System: PrevIdle DeclUser IPushSrvc kCPU kDisp]         
4799 次点击
所在节点    macOS
4 条回复
Lattez
2017-01-04 00:29:44 +08:00
10.11 的时候就有碰到过,唤醒完跟重启了一样,但是没有出现重启的进度条,姑且当个长久以来的 Bug 吧...
Totoria
2017-01-04 00:31:55 +08:00
这个问题我以前碰到过 后来重装后就没有了 大约是在 10.10 的时候
lcdtyph
2017-01-04 10:28:50 +08:00
我经常遇到……这两天尤其频繁,几乎盒盖超过半个小时就重启了。不明原因……
不知道是不是软件的锅,最近新装了 Hands Off 、 Qt Creator 什么的,可惜没精力一个一个排查= =
ghl
2017-01-04 23:38:11 +08:00
@Lattez @Totoria @lcdtyph
谢谢~看来除了重装和运气之外没啥好办法,哎那我还是先忍着吧,幸好还不是特别频繁 = =

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/332039

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX