↓ Skip to main content
Disconnecting the dGPU in a late 2011 MacBook Pro —another way

Disconnecting the dGPU in a late 2011 MacBook Pro —another way

Luis Puerto
Author
Luis Puerto
Spatial data engineer and scientist with a background in forestry, working where forests, data, and sustainability meet. Born in Ponferrada, Spain, now based in Zürich. Curious about science, technology, maps, code, the cosmos, and almost everything in between.

As I’ve told in the previous post, the discrete graphic car of my MacBook Pro late 2011 is faulty and can be trusted any more. So I decided to disconnect it.

Yesterday, I updated the system to 10.13.2 and although in the beginning everything was working fine without enforcing the dGPU disconnection, the graphic card later failed and I had to apply the fix again. For some reason the fix didn’t working as well as it was working before so after too much booting and trying I decided to take the middle way. Besides, the GRUB soliton was nice, but it made the booting much more slower.

What I’ve done basically is move the kexts from the extensions folder to other place and apply the wake up handle.

In other words this are the steps. Please keep in mind that I’m running High Sierra in my machine.

  1. Reset the SMC and the NVRAM.

  2. Boot your Mac on recovery single user mode (pressing and holding Cmd + S + R) and run the following commands.

    $ nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00
    $ csrutil disable
    $ reboot
  3. You are going to reboot to your normal desktop. Now you can move the GPU kexts to other place:

    $ sudo mkdir /AMD_Kexts/ # make a directory to store the AMD drivers in case you'll need them in future
    $ sudo mv /System/Library/Extensions/AMD*.* /AMD_Kexts/ # move the AMD drivers
    $ sudo rm -rf /System/Library/Caches/com.apple.kext.caches/ # remove the AMD drivers cache
    $ sudo mkdir /System/Library/Caches/com.apple.kext.caches/ # just in case OS X will be dumb and will not recreate this directory, I am creating it for OS X
    $ sudo touch /System/Library/Extensions/ # to update the timestamps so that new driver caches - without AMD drivers - will be definitely rebuilt
  4. Take the AMDGPUWakeHandler.kext and copy it to <span /Library/Extensions then run the following commands

    $ sudo chmod -R 755 /Library/Extensions/AMDGPUWakeHandler.kext
    $ sudo chown -R root:wheel /Library/Extensions/AMDGPUWakeHandler.kext
    $ sudo touch /Library/Extensions
  5. Make sure to have change the way the system sleeps:

    $ sudo pmset -a hibernatemode 25
  6. Now you can reboot.

  7. Perhaps it’s recomendable to re-enable the SIP. To do that just boot your Mac on recovery single user mode (pressing and holding Cmd + S + R) and run:

    $ csrutil enable
    $ reboot

This solution perhaps it’s a little bit easier, but has the disadvantage that you need to apply it all every time you update the system.

Anyway, I recommend to read the previous post to understand fully what is going on.

Related

My MacBook Pro late 2011's discrete graphics card said "ciao" 👋🏻 —again

Last Sunday wasn’t really a pleasant day. On Saturday late night, or rather around Sunday 00.30 am, my MacBook Pro late 2011’s discrete graphic card begin to fail to in the end not being able to boot it properly. The computer was working just fine, it wasn’t even using the discrete card, connected to the external screen as I’ve been doing lately, or any doing any other intensive task. I just rebooted it and 5’ after loading the desktop a solid gray screen appear that allowed to do nothing. After I forced reboot pushing the on/off button, the normal loading gray screen had glitches as thin-horizontal-weird lines. After 3 or 4 boots into the desktop and then the gray screen of dead the computer begin to load directly just to the gray screen of death. Nothing could be done to load the computer normally. I tried safe mode, pressing shift key on boot, and nothing, just the same gray screen of death. Restore mode, alt + R on boot, also the gray screen of death. So, I decided to left the issue to sleep —it was around 1.30 am in the morning, and led the computer to make a hardware test, pressing D key on startup.

Homebrew

In some of my previous post [e.g. 1, 2, 3 or 4 ] I’ve been using Homebrew to install some pieces of software in my Mac using the terminal, or shell. But, perhaps you’ve been wondering what is exactly Homebrew? It defines itself as “the missing package manager for macOS”. Yet… what is a package manager? A package manager is a small piece of software that helps you to manage other software —packages— in your computer, or in other words, to install, update, setup and uninstall software. Package managers have been a classic in most linux distributions and most linux users are accustomed to the idea to install software through them, whether on a GUI (graphical user interface) or just on a CLI (command line interface). You as a macOS user probably are also used to a GUI package manager, the Mac App Store, that allow you to install Apps easily and keep it updated. It doesn’t uninstall it for you, or clean the config files, though.