Ho un MacBook Air, all'inizio del 2015, con MacOS Mojave in esecuzione. Nelle ultime 2 settimane, è stato arrestato in modo imprevisto e riavviato per periodi di tempo diversi.
Dopo aver controllato i log di shutdown, ho trovato che il codice di shutdown era -128
; controllando varie fonti su Internet, ho scoperto che si trattava di un codice "catch all hardware issues". Molte fonti hanno dimostrato che ciò potrebbe essere causato dal surriscaldamento del computer, dalla RAM o dalla batteria malfunzionanti.
Il mio computer non si surriscalda quando si spegne / si riavvia; la batteria sembra funzionare bene e non ho installato alcuna RAM di terze parti. Informazioni di sistema sembra mostrare sia le schede RAM che lo stato "OK".
Ho provato a fare quanto segue
- Ripristino di SMC.
- Ripristino della NVRAM.
- Avvio in modalità provvisoria.
inutilmente.
Il problema è iniziato all'improvviso quando eseguivo macOS High Sierra (l'ho eseguito per un po 'di tempo e il sistema operativo era stabile). Ho appena installato macOS Mojave (cancellando tutti i dati precedenti), quindi sono abbastanza sicuro che questo non sia stato causato da malware di qualche tipo. Apple non mostra alcun messaggio come "Il computer si spegne a causa di un problema" e i registri non mostrano alcun Kernel Panics.
Ho eseguito la diagnostica hardware, ma non ha mostrato alcun problema. Ho anche eseguito First Aid sotto Utility Disco per sicurezza.
Un'altra cosa che ho notato, che non sono sicuro che ci fosse prima, è che durante l'avvio, con la barra di caricamento verso la metà, lo schermo del computer diventa improvvisamente nero per un secondo o due, e poi ritorna per continuare da dove era stato interrotto. Non sono sicuro se questo è collegato.
Per essere chiari, il periodo di tempo tra i riavvii e gli arresti è molto vario; una volta, è stato riavviato tre volte durante l'uso entro un minuto o due. Solitamente, si spegne solo nel sonno (non causato da autopoweroff
, sempre lo stesso codice di spegnimento), dopo ore di mancato utilizzo.
Ho notato che il log di shutdown è esattamente il momento in cui lo avvio. Non so davvero cosa farmene.
Ecco alcuni log del secondo prima dell'arresto del computer con il codice -128
(e anche l'ora in cui stavo tentando di estrarlo dal sonno):
2018-10-06 09:04:33.861844+0530 0x65 Default 0x0 0 0 kernel: calling mpo_policy_init for AMFI
2018-10-06 09:04:33.861849+0530 0x65 Default 0x0 0 0 kernel: Security policy loaded: Apple Mobile File Integrity (AMFI)
2018-10-06 09:04:33.861853+0530 0x65 Default 0x0 0 0 kernel: calling mpo_policy_init for Sandbox
2018-10-06 09:04:33.861898+0530 0x65 Default 0x0 0 0 kernel: Security policy loaded: Seatbelt sandbox policy (Sandbox)
2018-10-06 09:04:33.862091+0530 0x65 Default 0x0 0 0 kernel: calling mpo_policy_init for Quarantine
2018-10-06 09:04:33.862096+0530 0x65 Default 0x0 0 0 kernel: Security policy loaded: Quarantine policy (Quarantine)
2018-10-06 09:04:33.862371+0530 0x65 Default 0x0 0 0 kernel: calling mpo_policy_init for TMSafetyNet
2018-10-06 09:04:33.862375+0530 0x65 Default 0x0 0 0 kernel: Security policy loaded: Safety net for Time Machine (TMSafetyNet)
2018-10-06 09:04:33.968541+0530 0x83 Default 0x0 0 0 kernel: Started cpu 2 (lapic id 00000002)
2018-10-06 09:04:33.969492+0530 0x84 Default 0x0 0 0 kernel: Started cpu 1 (lapic id 00000001)
2018-10-06 09:04:33.970435+0530 0x85 Default 0x0 0 0 kernel: Started cpu 3 (lapic id 00000003)
2018-10-06 09:04:33.971229+0530 0x95 Default 0x0 0 0 kernel: (AppleAPIC) IOAPIC: Version 0x20 Vectors 64:103
2018-10-06 09:04:33.985599+0530 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI: sleep states S0 S3 S4 S5
2018-10-06 09:04:34.009380+0530 0xad Default 0x0 0 0 kernel: (IOHIDFamily) HID: Legacy shim 2
2018-10-06 09:04:34.009561+0530 0x9a Default 0x0 0 0 kernel: (IOPCIFamily) pci (build 20:25:30 Aug 22 2018), flags 0x20e3480
2018-10-06 09:04:34.009565+0530 0xaf Default 0x0 0 0 kernel: (IOHIDFamily) HID: Legacy shim 2
2018-10-06 09:04:34.009567+0530 0x9a Default 0x0 0 0 kernel: (IOPCIFamily) pci (build 20:25:30 Aug 22 2018), flags 0x20e3480
2018-10-06 09:04:34.010358+0530 0x9a Default 0x0 0 0 kernel: (IOPCIFamily) [ PCI configuration begin ]
2018-10-06 09:04:34.010362+0530 0x9a Default 0x0 0 0 kernel: kPEDisableScreen -1
2018-10-06 09:04:34.012030+0530 0xb7 Default 0x0 0 0 kernel: (AppleSmartBatteryManager) Provider is IOSMBusController
2018-10-06 09:04:34.012092+0530 0xb7 Default 0x0 0 0 kernel: (AppleSmartBatteryManager) Clearing out battery data
2018-10-06 09:04:34.012109+0530 0xb7 Default 0x0 0 0 kernel: (AppleSmartBatteryManager) Starting poll type 1
2018-10-06 09:04:34.012111+0530 0xb7 Default 0x0 0 0 kernel: (AppleSmartBatteryManager) Restarting poll type 1
2018-10-06 09:04:34.012112+0530 0xb7 Default 0x0 0 0 kernel: (AppleSmartBatteryManager) smcKeysToDictionary without SMC driver
2018-10-06 09:04:34.012114+0530 0xb7 Default 0x0 0 0 kernel: (AppleSmartBatteryManager) Command 0x1100 completed. inCount: 2 data:0x0
2018-10-06 09:04:34.012115+0530 0xb7 Default 0x0 0 0 kernel: (AppleSmartBatteryManager) smcKeysToDictionary without SMC driver
2018-10-06 09:04:34.012117+0530 0xb7 Default 0x0 0 0 kernel: (AppleSmartBatteryManager) Command 0x1200 completed. inCount: 2 data:0x0
2018-10-06 09:04:34.012118+0530 0xb7 Default 0x0 0 0 kernel: (AppleSmartBatteryManager) smcKeysToDictionary without SMC driver
2018-10-06 09:04:34.012119+0530 0xb7 Default 0x0 0 0 kernel: (AppleSmartBatteryManager) Command 0x1300 completed. inCount: 2 data:0x0
2018-10-06 09:04:34.013780+0530 0xb7 Default 0x0 0 0 kernel: (AppleSmartBatteryManager) AppleSmartBatteryManager started
2018-10-06 09:04:34.017775+0530 0x7d Default 0x0 0 0 kernel: (AppleSmartBatteryManager) Command 0x2 completed. inCount: 2 data:0x6
2018-10-06 09:04:34.019732+0530 0x7d Default 0x0 0 0 kernel: (AppleSmartBatteryManager) Command 0x1 completed. inCount: 2 data:0x1101
2018-10-06 09:04:34.019758+0530 0x9a Default 0x0 0 0 kernel: initialize_screen: b=7F90000000, w=000005A0, h=00000384, r=00001800, d=00000001
2018-10-06 09:04:34.019944+0530 0x9a Default 0x0 0 0 kernel: kPEEnableScreen 1
2018-10-06 09:04:34.019958+0530 0x9a Default 0x0 0 0 kernel: (IOPCIFamily) console relocated to 0x7f90000000
2018-10-06 09:04:34.019962+0530 0x9a Default 0x0 0 0 kernel: (IOPCIFamily) [ PCI configuration end, bridges 12, devices 15 ]
2018-10-06 09:04:34.020376+0530 0xbf Default 0x0 0 0 kernel: (IOUSBFamily) 000001.020370 AppleUSBLegacyRoot@(null): AppleUSBLegacyRoot::init: enabling legacy matching
2018-10-06 09:04:34.024195+0530 0x7e Default 0x0 0 0 kernel: (AppleSmartBatteryManager) Command 0x16 completed. inCount: 2 data:0xc0
2018-10-06 09:04:34.025277+0530 0xa3 Default 0x0 0 0 kernel: (AppleSMC) Previous shutdown cause: -128
I log precedenti terminano con lo spegnimento.
Il system.log
registra prima e dopo l'avvio:
Oct 6 09:35:03 Munishs-MacBook-Air loginwindow[88]: DEPRECATED USE in libdispatch client: dispatch source activated with no event handler set; set a breakpoint on _dispatch_bug_deprecated to debug
Oct 6 09:35:04 Munishs-MacBook-Air com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.user.501): Service "com.apple.xpc.launchd.unmanaged.loginwindow.88" tried to register for endpoint "com.apple.tsm.uiserver" already registered by owner: com.apple.SystemUIServer.agent
Oct 6 10:17:11 --- last message repeated 1 time ---
Oct 6 10:17:11 Munishs-MacBook-Air syslogd[39]: ASL Sender Statistics
Oct 6 10:17:13 Munishs-MacBook-Air timed[77]: settimeofday({0x5bb83e51,0x6a1d6}) == 0
Oct 6 10:17:17 Munishs-MacBook-Air xpcproxy[543]: libcoreservices: _dirhelper_userdir: 529: bootstrap_look_up returned (ipc/send) invalid destination port
Oct 6 10:24:18 Munishs-MacBook-Air com.apple.xpc.launchd[1] (com.apple.WebKit.Networking.F3E9FD36-49E7-44C5-A2CE-ED38E105F5FD[555]): Service exited with abnormal code: 1
Oct 6 10:24:19 Munishs-MacBook-Air com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Oct 6 10:27:12 Munishs-MacBook-Air syslogd[39]: ASL Sender Statistics
Oct 6 10:28:00 localhost bootlog[0]: BOOT_TIME 1538801880 0
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.cdscheduler" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.install" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.family.asl" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.callhistory.asl.conf" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.contacts.ContactsUICore" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.authd" sharing output destination "/var/log/asl" with ASL Module "com.apple.asl".
Output parameters from ASL Module "com.apple.asl" override any specified in ASL Module "com.apple.authd".
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.authd" sharing output destination "/var/log/system.log" with ASL Module "com.apple.asl".
Output parameters from ASL Module "com.apple.asl" override any specified in ASL Module "com.apple.authd".
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.authd" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.eventmonitor" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.mail" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.coreaudio" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.performance" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.iokit.power" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.contacts.ContactsAutocomplete" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.mkb" sharing output destination "/private/var/log/keybagd.log" with ASL Module "com.apple.mkb.internal".
Output parameters from ASL Module "com.apple.mkb.internal" override any specified in ASL Module "com.apple.mkb".
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.mkb" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.AddressBookLegacy" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.MessageTracer" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.networking.boringssl" sharing output destination "/Library/Logs/CrashReporter" with ASL Module "com.apple.networking.networkextension".
Output parameters from ASL Module "com.apple.networking.networkextension" override any specified in ASL Module "com.apple.networking.boringssl".
Oct 6 10:28:02 localhost syslogd[39]: Configuration Notice:
ASL Module "com.apple.clouddocs" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Oct 6 10:28:01 localhost com.apple.xpc.launchd[1]: Early boot complete. Continuing system boot.
Oct 6 10:28:01 localhost com.apple.xpc.launchd[1] (com.apple.cmio.AVCAssistant): ThrottleInterval set to zero. You're not that important. Ignoring.
Oct 6 10:28:01 localhost com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.system): com.apple.CoreRAID (lint): The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
Oct 6 10:28:01 localhost com.apple.xpc.launchd[1] (com.apple.diskmanagementd): ThrottleInterval set to zero. You're not that important. Ignoring.
Oct 6 10:28:01 localhost com.apple.xpc.launchd[1] (com.apple.diskmanagementd): The TimeOut key is no longer respected. It never did anything anyway.
Oct 6 10:28:01 localhost com.apple.xpc.launchd[1] (com.apple.syslogd): The HopefullyExitsLast key is no longer respected. Please remove it.
Oct 6 10:28:01 localhost com.apple.xpc.launchd[1] (com.apple.syslogd): Please switch away from OnDemand to KeepAlive.
Oct 6 10:28:01 localhost com.apple.xpc.launchd[1] (com.apple.opendirectoryd): Unknown key for Boolean: BeginTransactionAtShutdown
Oct 6 10:28:01 localhost com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.system): com.apple.opendirectoryd (lint): The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
C'è qualcos'altro che posso provare prima di consegnare il MacBook a un professionista? Lo uso da circa due anni e non è coperto da garanzia.