Blog

30 Dec
2018

Terminal Icon Logo

Defective AMD GPU fix on Macbook Pro 2011


If you are suffering from the infamous blue lines on the black screen on startup or random reboots then you maybe suffering from an AMD graphics card hardware issue with your later 2011 Macbook Pro laptop.

Now there are several solutions on the web but this is the only one that worked for me running macOS High Sierra (10.13.6+) and what was worst for me is that the MacBook Pro was stuck in looping reboot... Time machine backup time if I could ever get it to bootup!

Step 1 - Disable the csrutil.

Now there are other solutions that say at first boot into Recovery Single User Mode - CMD + R + S. But I had two problems - I had no permissions when trying to disable the csrutil and when trying the same with Recovery Mode - CMD + R I had the blue lines on black screen appearing, but the below sorted it for me.

So first reboot your Macbook Pro into single user mode by holding down the CMD + S keys. The terminal will now be on the screen.

First input.

sudo nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00

Then.

reboot

Now reboot into Recovery mode using CMD + R. On the screen that loads choose a language then on the screen which appears next choose the following options in the menu Utilities -> Terminal - see below.

Recovery Mode Mac Screen

In the terminal add the following.

csrutil disable

When csrutil is disabled we can now move kexts and delete system folders.

Then.

reboot

Step 2 - Remove the AMD drivers

On reboot go back into single user mode by holding down the CMD + S keys. Now in the terminal add the following, which will fix any disk permissions before we do anything.

fsck -fy

Once done mount the MacBook Pro hard drive by adding.

mount -uw /

Try using /sbin/mount if you get mount command not found

Now we are going to move all the AMD graphics card drivers, so best to make a copy of them rather than deleting them all. So first make a backup directory to copy them into.

sudo mkdir /amd-backup-kexts/

Then move all of the drivers with a wildcard naming.

sudo mv /System/Library/Extensions/AMD*.* /amd-backup-kexts/

Now once done lets delete the kext drivers cache.

sudo rm -rf /System/Library/Caches/com.apple.kext.caches/

To be safe create it again.

sudo mkdir /System/Library/Caches/com.apple.kext.caches/

Now update the timestamps of the driver cache without the AMD drivers.

sudo touch /System/Library/Extensions/

Step 3 - Enable the csrutil.

Now we are more or less repeating the same as Step 1.

sudo nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00

Then.

reboot

Now reboot into Recovery mode using CMD + R. On the screen that loads choose the following in the menu Utilities -> Terminal.

Recovery Mode Mac Screen

In the terminal add the following.

csrutil enable

Then.

reboot

Now your mac should be booting normally without any issues, if not then there really is more than a graphics card issue.

Important! This is up to you but I would suggest doing a Time Machine backup just to be safe.

Hope this helps anybody else with the same problem.

Note: You will probably have to do this all again when doing system updates and from my experience even security updates.

Posted in: < Mac OS X >
me@grafxflow avatar

me@grafxflow


I am a Full-stack Developer who also started delving into the world of UX/UI Design a few years back. I blog and tweet to hopefully share a little bit of knowledge that can help others around the web. Thanks for stopping by!

Visitors also viewed these posts


Add comment

Add comment