MacBook Pro (Retina, 15-inch, Late 2013) Random shutdown!!

I've been trying to resolve this issue for almost a year now.

What I am using

While working on my system, on Apple Adapter (85w) or with battery fully charged, screen will go blank and system will shutdown.


Things I have tried

  1. reset SMC
  2. reset PRAM
  3. Run system diagnostics; no errors found
  4. Fully charge to 100% and leave for 8 hours
  5. Fully discharge battery, leave for 8 hours, charge to 100%
  6. run caffeinate command in terminal; no change

Running the following command in terminal

log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h

kernel: (AppleSMC) Previous shutdown cause: -128


List of codes

  • -128 unknown, possibly battery is at the end of its life, but can also occur when the SMC initiates an automatic restart following a kernel panic.


As my system DOES NOT do an automatic restart, I'm not sure this is a kernel panic.


The ONLY way I have found to prevent this behavior is to have the laptop connected to an external display via HDMI or Thunderbolt.



MacBook Pro 15″, macOS 11.6

Posted on Nov 1, 2021 4:57 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 2, 2021 6:05 PM

See if you have any Kernel Panic logs which are located in "/Library/Logs/DiagnosticReports" with file names beginning with "kernel" and ending in ".panic". If there are any Kernel Panics logs, then please post several of them here so we can see if there are any patterns in them. Post them here using the "Additional Text" icon which looks like a piece of paper.


Try running the Apple Diagnostics to see if any hardware issues are detected.


Make sure to disconnect all external devices in case one of them is causing a problem.


You have the 15" model which is known to have GPU issues (usually there will be a Kernel Panic log to confirm diagnosis). You can try forcing the laptop to use the Intel GPU instead of the discrete GPU by using the gfxCardStatus app assuming you can boot normally or boot into Safe Mode.

https://github.com/steveschow/gfxCardStatus/releases/tag/v2.4.4i


https://gfx.io


If you cannot install the gfxCardStatus app, then you can try using these instructions to force the laptop to use the Intel GPU:

http://dosdude1.com/gpudisable/


The shutdowns can also be caused by file system issues, a bad or incompatible SSD, a third party app, or a corrupt OS.


Run Disk Utility First Aid on the hidden Container (don't attempt to run check the Container if you just scanned one of the volumes as it will cause First Aid to fail until you reboot). Within Disk Utility you may need to click "View" and select "Show All Devices" so that the hidden Container and physical drive appears on the left pane of Disk Utility. Even if First Aid shows everything is "Ok" click "Show Details" and manually scroll back through the report to see if any unfixed errors are listed. If there are any unfixed errors listed, then you can try running First Aid from Internet Recovery Mode. If the errors still cannot be fixed, then you will need to erase the whole physical SSD before restoring from a backup or clone.


To look for possible software issues run EtreCheck and post the report here using the "Additional Text" icon which looks like a piece of paper. If you give EtreCheck "Full Disk Access", then the report will also include a summary of recent logs which may provide some clues.


Similar questions

23 replies
Question marked as Top-ranking reply

Nov 2, 2021 6:05 PM in response to Christopher Bendel

See if you have any Kernel Panic logs which are located in "/Library/Logs/DiagnosticReports" with file names beginning with "kernel" and ending in ".panic". If there are any Kernel Panics logs, then please post several of them here so we can see if there are any patterns in them. Post them here using the "Additional Text" icon which looks like a piece of paper.


Try running the Apple Diagnostics to see if any hardware issues are detected.


Make sure to disconnect all external devices in case one of them is causing a problem.


You have the 15" model which is known to have GPU issues (usually there will be a Kernel Panic log to confirm diagnosis). You can try forcing the laptop to use the Intel GPU instead of the discrete GPU by using the gfxCardStatus app assuming you can boot normally or boot into Safe Mode.

https://github.com/steveschow/gfxCardStatus/releases/tag/v2.4.4i


https://gfx.io


If you cannot install the gfxCardStatus app, then you can try using these instructions to force the laptop to use the Intel GPU:

http://dosdude1.com/gpudisable/


The shutdowns can also be caused by file system issues, a bad or incompatible SSD, a third party app, or a corrupt OS.


Run Disk Utility First Aid on the hidden Container (don't attempt to run check the Container if you just scanned one of the volumes as it will cause First Aid to fail until you reboot). Within Disk Utility you may need to click "View" and select "Show All Devices" so that the hidden Container and physical drive appears on the left pane of Disk Utility. Even if First Aid shows everything is "Ok" click "Show Details" and manually scroll back through the report to see if any unfixed errors are listed. If there are any unfixed errors listed, then you can try running First Aid from Internet Recovery Mode. If the errors still cannot be fixed, then you will need to erase the whole physical SSD before restoring from a backup or clone.


To look for possible software issues run EtreCheck and post the report here using the "Additional Text" icon which looks like a piece of paper. If you give EtreCheck "Full Disk Access", then the report will also include a summary of recent logs which may provide some clues.


Nov 6, 2021 9:53 AM in response to Christopher Bendel

Christopher Bendel wrote:

I'm not having the issues with VTEncoderXPCService or AppleSmartBattery

Yesterday, I reset the SMC, erased the HD and reinstalled Big Sur

System was quite stable, but I still had a -128 shutdown. Another observation, once I get a -128, the system becomes unstable until I do a proper shutdown and restart.

When you performed the clean install did you test the laptop before migrating/restoring from a backup and before installing any third party apps? If you migrated/restored from a backup, then you may have just brought back the same software issue.


If you did not migrate/restore from a backup and encountered the same problem even before installing any third party apps, then your laptop has a hardware issue of some sort (assuming you erased the whole physical drive when performing the clean install). With a clean install did the NVidia GPU show up and can you run gfxCardStatus (you may need the v2.5 one)? If the NVidia GPU doesn't show up, then I think that is the source of the crashes.


@yoplait2 had a good idea about iCloud or other cloud syncing services even if you are not encountering the same errors in the system log. When performing the clean install you should just create a normal user account not associated with any AppleID in order to minimize any interactions except for macOS and the laptop's hardware.


FYI, for the most part the macOS system logs are worthless for troubleshooting purposes. They contain so much repetitive junk that it is extremely hard to sift through for any legitimate entries that may provide any useful information. Even if there are such entries most times these days those log entries have been sanitized for privacy (even for the admin user). Anymore those logs contain very scary and indecipherable entries meant only for the developers.


You mentioned checking the SMART Status. Run DriveDx and post the complete report here using the "Additional Text" icon which looks like a piece of paper. The SMART status only tells you when the drive has a complete failure state according to the manufacturer. It is the actual SMART Attributes that contain the real information and health reporting of the drive, although this information is unfortunately very sparse for the Apple SSDs. While there are other apps to check the drive's health, DriveDX does provide the health information in a nice easy to read format unlike some other apps.



Nov 7, 2021 9:43 AM in response to Christopher Bendel

There is no need to keep posting the system logs since they just show the same shutdown causes and they make it harder to follow the conversation here.


The SSD appears to be healthy.


@zarathu may be correct about the hardware bug with the Intel CPU. I recall several posts on here a few years ago where this occurred with the 2014 MBPro and it did involve using a third party app to keep the CPU active so the CPU would not go to sleep. I don't recall the app recommended at the time. You should definitely perform you own check to make sure the suggested app is safe to use (no offense to @zarathu).


But I also know that the 2013 MBPro 15" model was known to have GPU issues. Those GPU issues can manifest with symptoms other than graphical anomalies. Plus it is interesting that the EtreCheck report and the gfxCardStatus app seems not to recognize the NVidia GPU in your laptop. When hardware mysteriously disappears that is always a bad sign. Since the gfxCardStatus app would not run, you should dry manually forcing the laptop to use the Intel GPU using the instructions in this article:

http://dosdude1.com/gpudisable/


I'm not sure even disabling the NVidia GPU this way will be enough to solve your problems.

Nov 3, 2021 6:21 AM in response to Christopher Bendel

another set of observations

  1. Machine ran Ariel screen saver all night, screen slept, but machine never hibernated.
  2. Upon entering password to clear screen saver, machine immediately executed sic shutdown
  3. Run in "safe mode", machine NEVER shuts down
  4. Attach external display/TV (HDMI), machine never shuts down
  5. Console app shows zero crash reports; makes sense as the machine is hibernating, not crashing

Nov 5, 2021 6:16 AM in response to Christopher Bendel

I have exactly the same problem,



this issue happened when I Updated from 11.6 to 11.6.1




If I read correctly the dogs attached,

to me it is related to the os trying to read smc values  related to the battery that doesn't exist and thus provoking  a kernel panic


As you can see below just a few moments after the -128 shutdown the system logs entries about AppleSmartBattery




I have tried 


SMC Reset


PRAM Reset


Smart test on SSD 


Disk utility verification


Apple Hardware Diagnostic 



Nov 7, 2021 10:11 AM in response to HWTech

HWtech, I only used the NoCrash MBP after exhausting every other remedy. This included taking it into a service that repaired macs. I was told by Apple tech that the logic board needed replacement. It's just a little python script designed for only two specific CPU motherboards. It won’t work on any other Intel chips but those two. And it won’t even faze a RISC chip.


If this didn’t work, the mac was already DEAD MAC WALKING. It was unusable.

Nov 2, 2021 10:30 PM in response to HWTech

first, thank you for responding with so many suggestions.

Following your recommendations, here are the results.

No kernel panic logs

Everything passes Apple Diags

No external devices connected. Note, connecting an HDMI monitor prevents any bad behavior of system.

gfxCardStatus not supported


From system report


Disk Utility ran, no issues found

While connected to TV via HDMI, system NEVER abruptly hibernated. However, upon disconnect from HDMI, system immediately hibernated. Here is the past 24 hours log of events.


While realizing this is an older system, I still want to figure out what is actually happening.





Nov 6, 2021 7:50 PM in response to Christopher Bendel

Log of recent shutdowns(hibernations)

Timestamp                       Thread     Type        Activity             PID    TTL  


2021-11-06 18:28:22.854987-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: -128


2021-11-06 19:30:10.886653-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: -128


2021-11-06 20:03:49.802680-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: -128


2021-11-06 20:30:24.831829-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: -128


2021-11-06 20:31:49.838206-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: -128


2021-11-06 20:46:43.789200-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: -128


2021-11-06 20:49:58.861773-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: -128


2021-11-06 20:52:15.864016-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: 5


2021-11-06 20:55:33.831988-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: -128


2021-11-06 21:00:13.825778-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: -128


2021-11-06 21:03:01.792375-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: 5


2021-11-06 21:14:24.843490-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: 5


2021-11-06 21:16:14.823443-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: -128


2021-11-06 21:22:52.851453-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: -128


2021-11-06 22:33:18.846321-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: -128


2021-11-06 22:34:41.857849-0400 0xbe       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: 5

Nov 7, 2021 5:59 AM in response to zarathu

Again, appreciate the recommendations.


You mention going into terminal and disable the Ethernet port permanently...assume you are talking about the Thunderbolt port...?


  Active Location: Yes


  Services:


Wi-Fi:


  Type: IEEE80211


  BSD Device Name: en0


  Hardware (MAC) Address: 3c:15:c2:c9:f2:c0


  IPv4:


  Configuration Method: DHCP


  IPv6:


  Configuration Method: Automatic


  Proxies:


  Exceptions List: *.local, 169.254/16


  FTP Passive Mode: Yes


  IEEE80211:


  Join Mode Fallback: Do Nothing


  Power Enabled: 1


  Remember Joined Networks: 1


  Version: 3000


Bluetooth PAN:


  Type: Ethernet


  BSD Device Name: en3


  IPv4:


  Configuration Method: DHCP


  IPv6:


  Configuration Method: Automatic


  Proxies:


  Exceptions List: *.local, 169.254/16


  FTP Passive Mode: Yes


Thunderbolt Bridge:


  Type: Bridge


  BSD Device Name: bridge0


  Hardware (MAC) Address: 82:0f:0e:55:bf:40


  IPv4:


  Configuration Method: DHCP


  IPv6:


  Configuration Method: Automatic


  Proxies:


  Exceptions List: *.local, 169.254/16


  FTP Passive Mode: Yes

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

MacBook Pro (Retina, 15-inch, Late 2013) Random shutdown!!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.