Late 2011 MBP Failing GPU


In late 2011 I had purchased a 15″ MacBook pro and in mid 2016 the GPU started failing until it was unusable. Apple had a replacement program of the logic board and GPU and had it replaced. Yet these started failing recently (less than 2 years after replacement). The symptoms are random restarts, green lines on display, distorted screen. This time there is no program that will replace it free of charge, and was not willing to spend anymore on this laptop. There are a number of solutions and this blog documents the one that worked for me, mostly from this article.

  1. Format and clean installation of Mac OS
    1. Restart/Power-On
    2. Press and hold Command + R until logo appears.
    3. Select Reinstall MacOS and follow installation steps.
  2. Boot to ArchLinux
    1. Download ArchLinux
    2. Create a Bootable USB, I used Rufus on Windows.
    3. Reboot with USB drive inserted and press Option
    4. Select EFI
    5. Press e when GRUB boot loader is displayed
    6. Type space then nomodeset at end of option then press enter
  3. Update EFI variables
    1. EFI Variables should be loaded already, if not:
      1. cd /
      2. umount /sys/firmware/efi/efivars/
      3. mount -t efivarfs rw /sys/firmware/efi/efivars/
    2. Remove immutability of GPU Power Preferences variable
      • chattr -i “/sys/firmware/efi/efivars/gpu-power-prefs-fa4ce28d-b62f-4c99-9cc3-6815686e30f9”
    3. Delete GPU Power Preferences variable
      • rm /sys/firmware/efi/efivars/gpu-power-prefs-fa4ce28d-b62f-4c99-9cc3-6815686e30f9
    4. Create new GPU Power Preferences variable
      • printf “\x07\x00\x00\x00\x01\x00\x00\x00” > /sys/firmware/efi/efivars/gpu-power-prefs-fa4ce28d-b62f-4c99-9cc3-6815686e30f9
    5. Add immutability to GPU Power Preferences variable
      • chattr +i “/sys/firmware/efi/efivars/gpu-power-prefs-fa4ce28d-b62f-4c99-9cc3-6815686e30f9”
  4. Save and reboot in Safe Mode
    1. cd /
    2. umount /sys/firmware/efi/efivars/
    3. reboot
    4. Press Shift during startup until logo appears.
  5. Remove AMD Drivers
    1. Login and turn FileVault Off from the Security & Privacy System Preferences.
    2. Reboot the system and press Command + R to boot to Recovery mode.
    3. Launch Terminal from the main menu
    4. Find UUID of your Machintosh HD drive
      1. diskutil cs list (find UUID for drive)
      2. diskutil coreStorage unlockVolume UUID
    5. Move the AMD drivers
      1. cd /Volumes/Macintosh\ HD
      2. mkdir AMD_Kexts
      3. mv System/Library/Extensions/AMD*.* AMD_Kexts/
      4. reboot
  6. Install steveschow branch of gfxCardStatus
  7. If you had FileVault on, remember to activate again.

At this point the MBP will always use the integrated graphics card, yet the dedicated/discrete graphic card would still be drawing power. You can take this a step further by removing 1 resistor and the card would have no power. I did not do this mod but here is the article. It is possible that the steps need to be repeated upon an OS upgrade/reinstall. I am hoping to be able to use this laptop for a few more years like this. The compromise is that now I cannot use the external display, other than that I am uneffected (not a gamer) since integrated graphic card can cope with my development requirements.

 

Author: Frankie Inguanez

I am a Data & Software Consultant from Malta with a specialisation in Business Intelligence & Data Mining. Currently, a senior lecturer and software developer at MCAST focusing on Databases, Business Intelligence and Applied Computational Intelligence modules at degree level. As a developer, I have been working on the development of a management information system together in a small team using PostgreSQL, Spring, Jira, Confluence, Git, amongst other tools. My first degree was a B.Sc.(Hons.) at the University of Malta then I graduated at De Montfort University in M.Sc. Business Intelligence Systems and Data Mining where I was recognised with the Best Student and Best Project awards. My postgraduate research was then presented and published in an IEEE conference in Berlin in 2016. During my free time, I try to find a balance between photography, diving, guitar playing and an occasional camping or walk in the countryside.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.