V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ghl
V2EX  ›  macOS

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

  •  
  •   ghl · 2017-01-03 23:51:11 +08:00 · 4808 次点击
    这是一个创建于 2880 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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]         
    
    4 条回复    2017-01-04 23:38:11 +08:00
    Lattez
        1
    Lattez  
       2017-01-04 00:29:44 +08:00
    10.11 的时候就有碰到过,唤醒完跟重启了一样,但是没有出现重启的进度条,姑且当个长久以来的 Bug 吧...
    Totoria
        2
    Totoria  
       2017-01-04 00:31:55 +08:00
    这个问题我以前碰到过 后来重装后就没有了 大约是在 10.10 的时候
    lcdtyph
        3
    lcdtyph  
       2017-01-04 10:28:50 +08:00
    我经常遇到……这两天尤其频繁,几乎盒盖超过半个小时就重启了。不明原因……
    不知道是不是软件的锅,最近新装了 Hands Off 、 Qt Creator 什么的,可惜没精力一个一个排查= =
    ghl
        4
    ghl  
    OP
       2017-01-04 23:38:11 +08:00
    @Lattez @Totoria @lcdtyph
    谢谢~看来除了重装和运气之外没啥好办法,哎那我还是先忍着吧,幸好还不是特别频繁 = =
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1136 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:42 · PVG 07:42 · LAX 15:42 · JFK 18:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.