大家好!我的问题发生在最近,我的macbookpro(2014年中版本)开机不一会儿就自动关机,但使用安全模式登录就没事。我根据apple官网的提示,取消了所有启动项还是不能解决。我装了两个系统,使用另一个系统时也不会出现自动关机的问题。我在出现问题后用安全模式将系统升级到最新版本,将其他软件也升级到最新版本了,但还是没用。自动关机后会出现持续一小段时间的黑屏、风扇转动的现象。不知道其他人有没有遇到过类似的问题,对了,我在两三个月前换过一次硅脂了。

用户答案:

如果安全登录后没有出现该问题,说明是有你安装的第三方 app 在启动或者登录后,自动运行了,但是出于某种未知原因,它执行了关机操作或者造成了系统崩溃.一般的排查来说,可以运行下面三行命令,把输出贴上来,看看是不是类似的问题,以及某些可疑的地方:ls -la /Library/LaunchDaemons /Library/LaunchAgents ~/Library/LaunchAgentssudo defaults read com.apple.loginwindow LoginHooksudo defaults read com.apple.loginwindow LogoutHook

用户答案:

谢谢您的回答!我把输出贴出来了。MacBook-Pro:~ apple$ ls -la /Library/LaunchDaemons /Library/LaunchAgents ~/Library/LaunchAgents/Library/LaunchAgents:total 136drwxr-xr-x 20 root  wheel  640 4 12 00:52 .drwxr-xr-x 75 root  wheel 2400 4 11 22:26 ..-rw-r--r--  1 root  wheel  612 8 18 2017 com.adobe.AAM.Updater-1.0.plist-rw-r--r--  1 root  wheel  661 4 12 00:52 com.adobe.AdobeCreativeCloud.plist-rw-r--r--  1 root  wheel  588 9 29 2018 com.adobe.GC.AGM.plist-rw-r--r--  1 root  wheel  612 1 31 2018 com.adobe.GC.Invoker-1.0.plist-rw-r--r--  1 root  wheel  519 3 8 19:16 com.adobe.ccxprocess.plist-rw-r--r--  1 apple staff  588 8 17 2010 com.babylon.activation.plist-rw-r--r--  1 root  wheel  667 9 6 2018 com.cisco.anyconnect.gui.plist-rw-r--r--  1 root  wheel  664 9 6 2018 com.cisco.anyconnect.notification.plist-rw-r--r--  1 root  wheel  539 12 10 23:00 com.epson.esua.launcher.plist-rw-r--r--  1 root  wheel  704 1 8 23:00 com.epson.eventmanager.agent.plist-rw-r--r--  1 root  wheel  468 1 8 23:00 com.epson.scannermonitor.plist-rw-r--r--@ 1 root  wheel  799 3 5 16:44 com.google.keystone.agent.plist-rw-r--r--@ 1 root  wheel  907 3 5 16:44 com.google.keystone.xpcservice.plistlrwxr-xr-x  1 root  wheel  104 8 26 2014 com.oracle.java.Java-Updater.plist -> /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/com.oracle.java.Java-Updater.plist-rw-r--r--  1 apple staff  548 7 29 2013 com.paragon.updater.plist-rw-r--r--@ 1 root  wheel  425 1 23 2014 com.sogou.SogouServices.plist-rwxr-xr-x  1 root  wheel  688 11 1 2015 com.teamviewer.teamviewer.plist-rwxr-xr-x  1 root  wheel  779 11 1 2015 com.teamviewer.teamviewer_desktop.plist/Library/LaunchDaemons:total 160drwxr-xr-x 25 root wheel  800 4 22 12:00 .drwxr-xr-x 75 root wheel 2400 4 11 22:26 ..-rw-r--r--  1 root wheel  552 3 11 2018 com.adobe.acc.installer.plist-rw-r--r--  1 root wheel  564 4 22 11:58 com.adobe.acc.installer.v2.plist-rwxr-xr-x  1 root wheel  642 7 11 2020 com.adobe.agsservice.plist-rw-r--r--@ 1 root wheel  543 8 30 2014 com.apple.aelwriter.plist-rw-r--r--  1 root wheel  632 11 3 2018 com.apple.installer.osmessagetracing.plist-rw-r--r--  1 root wheel  518 8 28 2014 com.baidu.netdiskmac.BDYunFinderInstaller.plist-rw-r--r--  1 root wheel  666 9 6 2018 com.cisco.anyconnect.vpnagentd.plist-rw-r--r--  1 root wheel  647 2 19 21:45 com.crystalidea.macsfancontrol.smcwrite.plist-rw-r--r--  1 root wheel  992 9 29 2014 com.disc-soft.DAEMONTools.PrivilegedHelper.plist-rw-r--r--  1 root wheel  782 2 12 2019 com.ea.origin.ESHelper.plist-rw-r--r--@ 1 root wheel  828 3 5 16:44 com.google.keystone.daemon.plist-rw-r--r--  1 root wheel  777 5 19 2016 com.macromates.auth_server.plist-rw-r--r--  1 root wheel  568 3 10 2011 com.microsoft.office.licensing.helper.plist-rw-r--r--  1 root wheel  657 2 12 2016 com.microsoft.office.licensingV2.helper.plistlrwxr-xr-x  1 root wheel  64 8 14 2020 com.netease.nemu.startup.plist -> /Library/Application Support/Nemu/com.netease.nemu.startup.plistlrwxr-xr-x  1 root wheel  103 8 26 2014 com.oracle.java.Helper-Tool.plist -> /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/com.oracle.java.Helper-Tool.plist-rwxr-xr-x  1 root wheel 1380 4 13 17:12 com.oracle.oss.mysql.mysqld.plist-rw-r--r--  1 root wheel  831 10 28 2014 com.paceap.eden.licensed.plist-rw-r--r--  1 root wheel  544 3 16 14:32 com.qq.jiasu.qmmactun.plist-rw-r--r--  1 root wheel  544 10 21 2015 com.teamviewer.Helper.plist-rwxr-xr-x  1 root wheel  612 11 1 2015 com.teamviewer.teamviewer_service.plistlrwxr-xr-x  1 root wheel  76 4 6 2017 org.virtualbox.startup.plist -> ../Application Support/VirtualBox/LaunchDaemons/org.virtualbox.startup.plist-rwxr-xr-x  1 root wheel  382 7 23 2018 org.wireshark.ChmodBPF.plist/Users/apple/Library/LaunchAgents:total 80drwxr-xr-x  12 apple staff  384 7 2 2020 .drwx------@ 100 apple staff 3200 4 11 23:02 ..-rw-r--r--  1 apple staff  504 9 14 2015 cn.macx.MacAppBoxHelper.plist-rw-r--r--  1 apple staff  697 3 11 2018 com.adobe.AAM.Updater-1.0.plist-rw-r--r--  1 apple staff  688 2 2 2018 com.adobe.GC.Invoker-1.0.plist-rw-r--r--  1 apple staff  491 7 2 2020 com.adobe.ccxprocess.plist-rw-r--r--  1 apple staff  968 2 14 2019 com.ea.origin.WebHelper.plist-rw-r--r--  1 apple staff  639 1 30 2015 com.nchsoftware.keyblaze.schedule.LikeSurvey.plist-rw-r--r--  1 apple staff  481 11 6 2019 com.sogou.SogouTaskManager.plist-rw-r--r--  1 apple staff  901 2 26 2020 com.valvesoftware.steamclean.plist-rw-r--r--@  1 apple staff  677 4 6 2017 org.virtualbox.vboxwebsrv.plist-rw-r--r--@  1 apple staff  542 10 1 2014 ws.agile.1PasswordAgent.plistMacBook-Pro:~ apple$ sudo defaults read com.apple.loginwindow LoginHookPassword:Sorry, try again.Password:2021-04-22 12:03:09.628 defaults The domain/default pair of (com.apple.loginwindow, LoginHook) does not existMacBook-Pro:~ apple$

用户答案:

第一次看到这个描述 我还以为是机身过热 自动关机既然您更换了硅脂 那这个物理性问题导致关机,大概可以被排除了您使用另一个系统启动Mac您听听风扇声音正常吗?如果疯狂作响,则可能还是机身散热有问题,温度过高.

用户答案:

感谢您的回复!使用另一个系统启动mac,风扇音量是很正常的。

用户答案:

这个安装的 app 还真不少?排查下是不是都用得到,不用的卸载吧尤其那些比较旧的,很有可能与新系统不兼容,比如:teamviewerparagonJava-UpdateranyconnectbabylonAdobevirtualboxwiresharkcom.qq.jiasupaceap.eden.licensedDAEMONToolsbaidu.netdiskmac.com.apple.aelwriterapple.installer.osmessagetracingmacromates.auth_server这些不了解: com.ea.origin | com.nchsoftware.keyblaze | com.valvesoftware.steamclean | ws.agile.1PasswordAgent所有上面这些,都考虑下是否有用,没用的就删除

用户答案:

感谢tony大神耐心细致的回答竟然把这么多服务都仔细滤了一遍非常佩服 ! 大拇指点赞!

用户答案:

可能我有洁癖也可能是我应用环境简单用的 app 少,看到那么多,头疼眼晕,恨不得把它们都删掉

用户答案:

谢谢Tony大神,我这就去把没用的软件删掉!

用户答案:

兄弟,你这个和我遇到的问题一模一样,你解决了吗?应该不是过热问题,安全模式时风扇呼呼的,温度更高也没关机。你关机然后再开机,立即按“D”,做硬件检测看看,我的报电池故障,正在换电池。另外检查关机原因:log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 1h如果是负数,很可能是硬件故障,说不定换硅脂时,不小心有异物粘到主板芯片上了