Contribute
Register

Solving NVIDIA Driver Install & Loading Problems

slim.jim

Moderator
Joined
Dec 17, 2014
Messages
4,258
Motherboard
MSI Z97 Gaming 9 AC
CPU
i7-4790K
Graphics
RX 5700 XT
Mac
  1. MacBook Pro
Classic Mac
  1. PowerBook
Mobile Phone
  1. iOS
Also stuck with not being able to get the Nvidia drivers to stick. Verified that InjectIntel is false and NvidiaWeb is true in config.plist on EFI. NvidiaGraphicsFixup.kext installed. System type set to MacPro 5,1. Boots reliably but only with OS X drivers which sort of misses the point :)

I notice that when I run System Report and look at PCI, I get the "This computer doesn't contain..." message. Also, when I open the Nvidia prefs, under the ECC tab there are no devices found in any slot. Yes, it's in slot 1 and works correctly under Win10 on the same system.

Ideas?

First, MacPro5,1 is not a recommended SMBIOS choice,start by changing that. Second the system report will only show a card if it is properly injected into a slot using an SSDT and Clovers Slot User Number (SUN).
 
Joined
Dec 31, 2016
Messages
11
Motherboard
Asus Maximus VIII Hero
CPU
i7-6700K
Graphics
Nvidia GTX 1060 6GB
Pascal Support is HERE!
----------------------------
As of the 10.10.5 driver there are no longer the checks in the distribution file for system profile and if the hardware is installed. It only checks for the OS X build number. This makes problems 1 and 3 obsolete.
----------------------------

This is a guide to help solve issues when trying to install the NVIDIA web drivers for the first time. There are various reasons why they won't install due to checks in the package file. This also covers a few issues where the drivers won't load after an OS update or the boot results in a black screen.

Misconceptions:

You must use a MacPro3,1/4,1/5,1 profile to use the drivers - While the package does a check for those three systems, the drivers will run just fine on any system definition (iMac15,1 iMac17, and MacPro6,1 are a special case, see problem #4). iMac14,2 is generally the most compatible with modern systems.

CUDA is the same as the Web Driver - CUDA and the Web Driver are not the same thing and have very different functions. CUDA is a graphics library to enable computation or rendering in certain software using the GPU. Installing CUDA will not make a Maxwell card work, you must install the Web Driver to make it work. CUDA can be installed and used on ANY mac with an NVIDIA GPU even if the Web Drivers are not installed.
Table of Contents:
Problem 1: Computer not supported error during install
Problem 2: This version OS X is not supported during install
Problem 3: Install the web drivers without the NVIDIA GPU installed
Problem 4: Black screen when using iMac15,1 or iMac17,1 or MacPro 6,1 system definition
Problem 5: Updated OS X and new drivers aren't available yet
Problem 6: No native NVRAM support to remember driver selection



----------------------------

Problem 1: Computer not supported error during install
This is caused by the system definition not being MacPro3,1/4,1/5,1.

Fix: Edit the "Distribution" file within the package using the Flat Package Editor.

  1. Download the Flat Package Editor (FPE) from Apple: https://developer.apple.com/downloads/index.action
  2. Login and search for "Auxillary Tools"
  3. Download the "Late July 2012" dmg
  4. Mount the dmg and right click Package Maker to show the package contents
  5. Browse to /Contents/Resources and copy the FPE to your Applications or Utilities folder
  6. Open the NVIDIA Web Driver package using the Flat Package Editor
  7. Drag the Distribution file to your desktop
  8. Open the Distribution file using TextEdit
  9. Scroll down to the line: var system_models = ["MacPro3,1", "MacPro4,1", "MacPro5,1"];
  10. Add your system ID.
  11. Make sure that you don't use smart quotes which look like italicized quotation marks.
  12. Save the Distribution file
  13. Go back to FPE and delete the Distribution file from that window
  14. Drag the edited Distribution file to the FPE window and save the package, command+S
  15. Run the package and you shouldn't get the error.
NOTE: Once the drivers are installed this doesn't matter anymore and you can use any system definition you like and it will update fine.​


----------------------------

Problem 2: This version OS X is not supported during install
This is caused by having the wrong driver for your installed build of OS X.

Fix: Find out your build number and then get the right driver.

  1. Open up About This Mac
  2. Click where it says 10.10.2 or 10.10.1, etc.
  3. This will display your build number
  4. Download the right driver for your build:



----------------------------

Problem 3: Install the web drivers without the NVIDIA GPU installed
Sometimes the system won't boot when the GPU is installed but there aren't any drivers so you have to use the integrated graphics. The problem is the drivers won't install when there isn't a NVIDIA GPU installed.

Fix: Modify the package to remove the GPU hardware check

  1. Obtain the Flat Package Editor (FPE) as described in Problem 1 fix steps 1-5
  2. Open the driver package using FPE
  3. Drag the Distribution file from FPE to your desktop
  4. Open the Distribution file using TextEdit
  5. Find this line and change the 0 to a 1
    View attachment 133181
  6. Save the Distribution file
  7. In the FPE window, delete the Distribution file inside the package
  8. Drag the modified Distribution file from the desktop to the FPE window
  9. Save the package
  10. Launch the package and it should let you install the driver without the GPU installed


----------------------------

Problem 4: Black screen when using iMac15,1 or iMac17,1 or MacPro 6,1 system definition

Fix: modify the AppleGraphicsDevicePolicy.kext as pointed out by PikeRAlpha here. We have two options, using Clover's built in kext patching (preferred) or manually editing the kext. Using Clover to patch the kext on the fly is preferred because it does not get over written after each OS X update. If you do it manually you will have to make the edits after each update.


Method 1: The easy method


Use KextBeast to install these two kext Lilu.kext and NvidiaGraphicsFixup.kext into your Library/Extensions folder.


Method 2:


Use Shilohh's AGDPfix found here: http://www.tonymacx86.com/threads/b...-imac-15-or-imac-17-system-definition.183113/


Method 3:

NOTE: This method does not work with macOS Sierra 10.12.0 - 10.12.3, please use method 1 or 2 above. It does work for 10.12.4.

  1. Open your Clover config.plist using text edit and scroll till you see <key>KernelAndKextPatches</key>
  2. In that section you will want to add the following:

    <key>KextsToPatch</key>
    <array>
    <dict>
    <key>Comment</key>
    <string>(c)Pike R. Alpha</string>
    <key>Find</key>
    <data>
    Ym9hcmQtaWQ=
    </data>
    <key>Name</key>
    <string>AppleGraphicsDevicePolicy</string>
    <key>Replace</key>
    <data>
    Ym9hcmQtaXg=
    </data>
    </dict>
  3. Save your config and now your kext will be patched when you boot by changing board-id to board-ix.


Method 4:


  1. Open Terminal
  2. Enter this command (it is one line)

    sudo nano /System/Library/Extensions/AppleGraphicsControl.kext/Contents/PlugIns/AppleGraphicsDevicePolicy.kext/Contents/Info.plist
  3. Arrow down to where you see <key>ConfigMap</key>
  4. For the iMac15,1 locate the board-id "Mac-42FD25EABCABB274" and change string below it from "Config2" to "none". For the MacPro6,1 you will do the same thing but for the board-id "Mac-F60DEB81FF30ACF6". For the iMac17,1 you'll have to see which board-id is declared in your config.plist SMBIOS: "Mac-B809C3757DA9BB8D" or "Mac-65CE76090165799A" or "Mac-DB15BD556843C820" and change the appropriate entry to "none".
  5. Save the file by pressing Ctrl+O, then enter.
  6. Exit by pressing Ctrl+X
  7. Rebuild the kernel cache using the following two commands in terminal:

    sudo kextcache -system-prelinked-kernel
    sudo kextcache -system-caches
  8. Reboot


NOTE:
you may need to use kext-dev-mode=1 if not already using it to allow the modified kext. For El Capitan you will need to at least partially disable SIP to allow the now unsigned kext.​


----------------------------

Problem 5: Updated OS X and new drivers aren't available yet

Fix: modify the NVDAStartup.kext to force the older drivers to load.

  1. Open up terminal and enter the following command:

    sudo nano /System/Library/Extensions/NVDAStartupWeb.kext/Contents/Info.plist
  2. Enter your password and scroll down to where it says NVDARequiredOS
  3. Change the build number below that to your current build number
  4. Rebuild kernel cache suing the two commands from Problem #4
  5. Reboot

----------------------------

Problem 6: You select Nvidia Web Drivers in the menu bar or the Nvidia Driver Manager preference pane but when you restart OS X Default Graphics Driver is checked.
This is caused when your board does not have native NVRAM support such as Gigabyte 100 series boards.

Fix:
setup emulated NVRAM to store the nvda_drv=1 boot flag in boot-args.

Download the latest Clover installer pkg here, launch the installer and choose customize here:
After that make sure you have selected EmuVariableUefi-64:
Proceed with the Clover upgrade install and reboot when done. After the reboot open up your system preferences and go the the Nvidia Driver Manager. It is a good idea to make sure you have the most up to date driver so go to the updates tab and click the Check Now button. If there is an update, perform the update and reboot when it tell you to. You should be done at this point. If there isn't an update proceed to the next step.
If there was no upgrade, click on the Graphics Drivers tab and then choose the radio button next to the NVIDIA Web Drive. Reboot.
Once rebooted, it should say that you are using the NVIDIA web driver. If it is not working still then you may need to re-run the Clover installer and select "Install RC scripts on target volume".
----------------------------

Please let me know of any other errors you are encountering and I will update this post with solutions.

Change log:


  • 4/7/15: initial post
  • 4/8/15: added problem 3
  • 4/22/15: added screenshots
  • 4/23/15: added 10.10.3 driver links
  • 4/27/15: added driver update process
  • 5/5/15: added black screen fix for certain system profiles
  • 5/11/15: added additional steps and notes to #4
  • 5/24/15: added driver download links for f03 & f04
  • 7/1/15: added 10.10.4 driver link
  • 7/30/15: added new driver link for 10.10.4
  • 8/13/15: added link for 10.10.5 beta driver
  • 8/14/15: added link for 10.10.5 final release driver
  • 8/15/15: added news about 10.10.5 driver
  • 10/5/15: updated problem 4 to use sudo nano
  • 10/26/15: added links for El Capitan drivers
  • 12/9/15: added link for 10.11.2 driver.
  • 12/9/15: added problem #5 to help with Yosemite security patches
  • 3/2/16: added Clover patching for AppleGraphicsDevicePolicy.kext in problem #4
  • 4/6/16: updated driver list
  • 7/5/16: added instructions to setup NVRAM support for boards that do not support it natively
  • 7/5/16: updated screenshots
  • 7/27/16: added links for 10.11.6 drivers
  • 9/22/16: 10.12 updates
  • 12/15/16: Updated driver listing with all current drivers for OS X 10.10/11/12
  • 3/10/17: Added new method for problem #4 and changed the order. Added 10.12.3 drivers.
  • 3/28/17: Added 10.12.4 drivers, new 10.11.6 drivers and new 10.10.5 drivers
  • 4/11/17: added Pascal driver link
  • 4/18/17: Added table of contents and anchor links. Updated problem titles.
  • 5/30/17: Added driver link for 10.12.5
  • 7/24/17: Fixed images and added link for 10.12.6 driver
I am having problem 6 and nothing is working please help :(
 
Joined
Dec 17, 2011
Messages
10
Motherboard
Asus Z270 Prine-A
CPU
i7-7700K
Graphics
GTX 1080ti
If anyone is interested I finally got Nvidia web drivers on 1080GTX for OS 10.12.6 to work. I have about 20 reinstalls under my belt but it finally paid off 10 minutes ago. So I had to use SMBios 14.1 and I had to reenable CSM in the BIOS. It was straight luck finding it. I reset the BIOS and changed one option at a time. I verified it was CSM because I disabled and it went back to a black screen on boot up. Getting the nVidia web drivers to stick was actually answered in Problem 6. I just didn't see it because I was doing it wrong 19 other times.

Once I get sound working Ill have a complete system. Should be simple from this point.

Thanks for the tip. I had the same issue after updating my bios (Asus Z270 Prime-A 0900). Went back to SMBios 14.1 and CSM On. Nvidia drivers load fine now for my GTX 1080ti. Thanks.
 
Joined
Sep 6, 2016
Messages
6
Motherboard
ASUS ROG Hero 9
CPU
Intel i7 7700k
Graphics
nVidia EVGA FE 1080GTX
Mac
  1. iMac
  2. MacBook Pro
  3. Mac mini
Mobile Phone
  1. iOS
Awesome! Glad I was able to contribute!
 
Joined
Jul 30, 2014
Messages
31
Motherboard
GIGABYTE GA-Z270M-D3H
CPU
Intel Core i5-6600K SkyLake 3.5 GHz
Graphics
EVGA GeForce GTX 1060 SC GAMING, ACX 2.0 (Single Fan), 06G-P4-6163-KR, 6GB GDDR5
Mac
  1. MacBook
Mobile Phone
  1. Android
EDIT 2 (SOLVED): Okay, so after doing further research I resolved the issue following the steps in Problem 6 above. Appreciate this forum and all the people who have made this site!

EDIT: Okay, so I removed the GPU and it booted back into the OS without issues. I then removed the GPUSensors.kext and reinstalled the GPU. The system loaded fine without issues but it's defaulting to the OS X Default Graphics Driver. I tried to switch it to the NVidia driver but every time I reboot it goes back to the default driver. Can anyone recommend anything to try and fix that?

Hello All, not sure if this is where I should post my issue (If not please move to correct thread) but I just purchased and installed a EVGA 1060 6Gb (You can find the card here ) and before I installed the card I installed the Web Drivers without issues and made the necessary changes to the config.plist file. I go to boot up the system and I get a KP (see screenshot). Not sure what to do now as I am new to this whole hackintosh thing. I do have my config backed up in case I have to restore it. If anyone can provide assistance I would greatly appreciate it! If more info is needed please let me know!

PS: Everything was working fine before the card was installed: iGPU and Audio.

Further information:
-SMBios: 14,2
-Sierra 10.12.6
-Latest Nvidia Driver from Nvidia
 

Attachments

  • IMG_20170806_171514.jpg
    IMG_20170806_171514.jpg
    1.2 MB · Views: 90
Last edited:
Joined
Dec 31, 2016
Messages
11
Motherboard
Asus Maximus VIII Hero
CPU
i7-6700K
Graphics
Nvidia GTX 1060 6GB
EDIT 2 (SOLVED): Okay, so after doing further research I resolved the issue following the steps in Problem 6 above. Appreciate this forum and all the people who have made this site!

EDIT: Okay, so I removed the GPU and it booted back into the OS without issues. I then removed the GPUSensors.kext and reinstalled the GPU. The system loaded fine without issues but it's defaulting to the OS X Default Graphics Driver. I tried to switch it to the NVidia driver but every time I reboot it goes back to the default driver. Can anyone recommend anything to try and fix that?

Hello All, not sure if this is where I should post my issue (If not please move to correct thread) but I just purchased and installed a EVGA 1060 6Gb (You can find the card here ) and before I installed the card I installed the Web Drivers without issues and made the necessary changes to the config.plist file. I go to boot up the system and I get a KP (see screenshot). Not sure what to do now as I am new to this whole hackintosh thing. I do have my config backed up in case I have to restore it. If anyone can provide assistance I would greatly appreciate it! If more info is needed please let me know!

PS: Everything was working fine before the card was installed: iGPU and Audio.

Further information:
-SMBios: 14,2
-Sierra 10.12.6
-Latest Nvidia Driver from Nvidia
How did you fix the defaulting of the OS X Default Graphics Driver? Please let me know
 
Joined
Jul 30, 2014
Messages
31
Motherboard
GIGABYTE GA-Z270M-D3H
CPU
Intel Core i5-6600K SkyLake 3.5 GHz
Graphics
EVGA GeForce GTX 1060 SC GAMING, ACX 2.0 (Single Fan), 06G-P4-6163-KR, 6GB GDDR5
Mac
  1. MacBook
Mobile Phone
  1. Android
If you go to the first post on this tread and follow the solution on problem 6 to install the nvram fix. That's what fixed it for me! :)
 
Joined
Jan 5, 2016
Messages
1
Mac
Classic Mac
Mobile Phone
Hello, I had everything running smoothly but then I went into System Preferences –> Displays and wondered what the overscan option does. I clicked it, the screen went black, and since then, I can't get it working again. Fortunately, I can still log in and see what I'm doing using the iGPU but nothing seems to be working. I erased display preferences (~/Library/Preferences/ByHost) and reinstalled the Nvidia driver, but to no avail. Any suggestions, please?

EDIT: Telling others about my problems apparently often does the job equally well, i.e. I somehow solved it, possibly by booting in a safe mode (boot flag -x), removing com.apple.windowserver.whatnot in ~/Library/Preferences/ByHost, and rebooting again, and again after activating the Nvidia drivers in the pref pane.

Interestingly though, this time the overscan was active (the checkbox is checked) and when I unchecked it… hello darkness my old friend. Anyway, I repeated the procedure and got it working again, however that bloody checkbox is still checked, thus I'm still interested in learning what's going on. Thanks!

Hoo boy, I also fell victim to turning off that overscan button on my 4K display and suddenly I couldn't set anything about 1440p. I used your tip, booted into safe mode, set my resolution back to 3840x2160 then when I restarted the nvidia driver worked and was at the full resolution again.

Weird thing about the displays menu now: it doesn't show the HiDPI style resolution select and there isn't a tab for Night Shift. I know the HiDPI was definitely there when I first got this monitor a couple Sierra versions back.
 

slim.jim

Moderator
Joined
Dec 17, 2014
Messages
4,258
Motherboard
MSI Z97 Gaming 9 AC
CPU
i7-4790K
Graphics
RX 5700 XT
Mac
  1. MacBook Pro
Classic Mac
  1. PowerBook
Mobile Phone
  1. iOS
Hoo boy, I also fell victim to turning off that overscan button on my 4K display and suddenly I couldn't set anything about 1440p. I used your tip, booted into safe mode, set my resolution back to 3840x2160 then when I restarted the nvidia driver worked and was at the full resolution again.

Weird thing about the displays menu now: it doesn't show the HiDPI style resolution select and there isn't a tab for Night Shift. I know the HiDPI was definitely there when I first got this monitor a couple Sierra versions back.

Make sure your SMBIOS is that of a device that supports both those features.
 
Joined
Jul 30, 2014
Messages
31
Motherboard
GIGABYTE GA-Z270M-D3H
CPU
Intel Core i5-6600K SkyLake 3.5 GHz
Graphics
EVGA GeForce GTX 1060 SC GAMING, ACX 2.0 (Single Fan), 06G-P4-6163-KR, 6GB GDDR5
Mac
  1. MacBook
Mobile Phone
  1. Android
Make sure your SMBIOS is that of a device that supports both those features.

I also don't have the Overscan/Underscan slider. SMBIOS is 14,2
I just put in a EVGA 1060 6gb card and when connected to the tv my menu bar and dock are cut off. I tried all sorts of resolutions and held down the options button and tried to click on detect displays and nothing happens. Not sure if there is something I need to do or what?
 
Top