How to prevent MacBook 2019 crashes during deep sleep by disabling Intel GPU and running AMD GPU for all processes?

Hi all - Ive had an ongoing problem with my 2019 Macbook 16". its the 2.3ghz i9, AMD 5500M 4GB Graphics.


I was closing the lid on both battery or power, it would wake to the login screen, after crashing and throwing out the following error on load screen, I would sometimes within that 30mins hear the fan spin up real fast for a split second if i was around:


panic(cpu 6 caller 0xffffff7f9eb336e7): GPU Panic: [3:0:0][PPLIB] Failed Power Play Resume. Shutting back down. 


I worked every possible fix through terminal for power options, with zero repair or change of outcome, even had apple support who couldnt help.


After some on battery, on power, internal screen, extended screen and external only monitor testing.


i realised the issue lies when the macbook goes into deep sleep, it switches between the AMD GPU and Intel GPU - and this process fails, massively (sort it out Apple).


Well, I found a fix/bandaid for my issue and it no longer crashes.

It involves disabling the intel GPU, and running the AMD GPU for all processes.

Yes, not ideal for battery life (possibly), while on and using, but.. it does solve my lid closing problem.

I put this into terminal earlier today, ive been testing closing lid, on and off power, opening lid, it was previously crashing within the first 30 mins. But since I put the following into terminal, it has not.


Open terminal, enter:


sudo pmset -a gpuswitch 1


It will ask for your login password, enter it, and the command has been succesfully added, you can check its done correctly by entering:


pmset -g custom


you shuold see this in the terminal output somewhere down the list in both battery setting and AC setting:


 gpuswitch      1


(gpu switch 0 = Intel, gpuswitch 1 = AMD, gpuswitch 2 = Auto Switching)


This switches the default GPU for all processes to the AMD one. Essentially disabling the GPU autoswitching at a global level - which means the "switch" between intel and AMD causing the problem in deep sleep, is no longer a process.


Hope this helps!


Ive been testing all day, and it works perfectly. It's also not as bad on battery as you think.

I performed my first test at 100% battery, closed the lid, opened 45 mins later to 100% battery, as ive been using it the last 20 minutes, Ive lost 3% battery doing normal work based tasks (im a recruiter, so mostly chrome tabs, whtsapp, excel are my normal day to day)


Hope this helps someone! Even if its just a temporary fix until Apple MIGHT fix the bug in their process switch.



[Re-Titled by Moderator]

Original Title: Prevent GPU Panic MacBook Pro 2019 crashes during deep sleep by disabling Intel GPU and running AMD GPU for all processes! this is your fix! SOLVED (Kind of): panic(cpu 6 caller 0xffffff7f9eb336e7): GPU Panic: [3:0:0][PPLIB] Failed Power Play Resume. Shutting back down.


MacBook Pro 16″

Posted on Jun 8, 2025 7:48 AM

Reply
4 replies

Jun 8, 2025 9:10 AM in response to Grant Bennet-Alder

Interesting work around yes - but it works for now. It means I can close the lid on my mac, and have it just as I left hours/days later without any crashes inbetween.


To put some perspective on the battery length affected. Ive been using it constantly since before posting the above, doing my normal day to day work tasks, and im currently sat at 77% battery, so in the one 1 hour and 30 mins Ive used 23%, which - isn't as bad as I thought it would be. Activity monitor showing 4hrs 24mins remaining on battery power based on current usage. Brightness on about 85%. everything else active as normal.


If I can get nearly 6hrs battery on a single charge without any crash failures, im happy with that. battery has done 72 cycles, 91% health


How to prevent MacBook 2019 crashes during deep sleep by disabling Intel GPU and running AMD GPU for all processes?

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