Jump to content
oldnapalm

Basic guide about nVidia kexts, how to enable video drivers

Recommended Posts

Many people ask about kexts for nVidia video cards, the answer is they are already there, they're part of Mac OS X. The problem is they were not loaded because the card was not recognized.


In order for it to be recognized, we have to inject some properties in the device tree. The Chameleon bootloader does that automatically for many cards, you just have to enable the GraphicsEnabler option and configure the PciRoot (only if it's not zero).


In the file org.chameleon.Boot.plist

	<key>GraphicsEnabler</key>
<string>Yes</string>
<key>PciRoot</key>
<string>1</string>

 

To find the correct PciRoot value, run in terminal

ioreg -l | grep -15 "AppleACPIPCI\ " | grep UID

 

You can use the app Chameleon Wizard

http://Olarila.com/forum/viewtopic.php?f=9&t=398



There are kexts for that (NVenabler, NVinject, EvoEnabler, among others) but they do exactly the same thing, inject properties, they are not the drivers themselves.

http://www.projectosx.com/forum/index.php?showtopic=370



It's also possible to pass the properties manually to Chameleon.


In the file org.chameleon.Boot.plist

	<key>device-properties</key>
<string>[hexadecimal EFI string]</string>

 

To get the currently injected properties you can use the command

ioreg -lw0 -p IODeviceTree -n efi -r -x | grep device-properties | sed 's/.*<//;s/>.*//;' > device-properties.hex

 

To convert the file device-properties.hex (hexadecimal EFI string) to plist (property list file) you can use GFXUtil (http://forum.netkas.org/index.php?topic=64.0)

gfxutil -s -n -i hex -o xml device-properties.hex device-properties.plist

 

You can also use OSX86Tools (http://code.google.com/p/osx86tools/).


OSX86Tools can be also used to generate an EFI string.



Another way to inject the properties is by DSDT, check this topic

http://Olarila.com/forum/viewtopic.php?f=19&t=609



For some cards it may be necessary to insert its device ID into the file Info.plist of kexts NVDAResman, NVDANV40Hal (series 6xxx and 7xxx), NVDANV50Hal (series 8xxx and up) and NVDAGF100Hal (series 4xx and up).


Edit the file Info.plist and insert the ID of your card (0xDeviceIDVendorID) into key IOPCIPrimaryMatch or IOPCIMatch

IOPCIPrimaryMatch
0x[color=#FF0000]06e4[/color][color=#008000]10de[/color]

 

How to find the device ID

http://Olarila.com/forum/viewtopic.php?f=18&t=63


How to edit Info.plist

http://Olarila.com/forum/viewtopic.php?f=18&t=1704

Link to comment
Share on other sites

Perhaps there is hope for non nVidia configurations with Mountain Lion BLACK SCREEN DISEASE?

Hope you have some suggestions.

For my GA-P55a-UD3 V2/ i5-650/OCZ Agility 3 240GB SSD/8GB RAM/MSI r5770 video card connected to a Dell 2311H monitor via DVI

After installing 10.8 on my SSD, rebooting and going to my SSD using Chameleon Screen [Lion also installed on same PC]

I have the old "black screen" problem.

I have tried:

pcirootuid=0

-x and graphicsenabler=no flags.

I have also tried connecting to another lower res monitor via VGA.

Among the error messages is the "mach 0 file has bad magic number" string display. [see detail below in code section]

I get an automatic return to Chameleon screen then.

Verbose hasn't helped. I get the rapidly scrolling white on green BG text. Never get to the white on black text scrolls.

[an new idea - maybe I can make movie of it for analysis]

 

Series of reads of  HFS+ files
...
hd91,20/Lbrary/Preferences/System Configurations/com.    rest of line cut off
hd91,20/system/Library/Core Services/SystemVersion/        rest of line cut off
Loading Darwin 10.8
Loading Kernel mach_kernel
Read HFS+ [hd(1,2)/mach_kernel]
...
mach 0 file has bad magic number

GA-P55a-UD3 V2, intel i5-650, 8GB OCZ3G1333LV2G DDR3 memory, Radeon MSI-r5770, OCZ 700w PSU, OSX 10.7.4 on 1TB HDD, Dell DELL U2311H via DVI.

Trying to install 10.8 on OCZ Agility 3-240GB SSD using same setup

Link to comment
Share on other sites


This is usually caused by corrupted files.

The install is on a 240GB SSD that has just been formatted to GUID, Mac OS Extended (Journaled)

Disk Utility says SMART has been "VERIFIED".

Any thoughts about alternate cause of magic number violation

or any fix? Is there any sw that I can check for corruption and believe the answer?


I'll study the info on ATI cards. Thanks very much for pointing me there.

GA-P55a-UD3 V2, intel i5-650, 8GB OCZ3G1333LV2G DDR3 memory, Radeon MSI-r5770, OCZ 700w PSU, OSX 10.7.4 on 1TB HDD, Dell DELL U2311H via DVI.

Trying to install 10.8 on OCZ Agility 3-240GB SSD using same setup

Link to comment
Share on other sites

Hi artur, well, i made a new installation on this laptop.

Let me explain the new situation; after the new install i have full resolution with QE/CI but ONLY on an external display (HDMI). The internal display is always black :(

I read a lot about this but i haven't found nothing. Do you know some solution for this?

Muchas gracias artur

Link to comment
Share on other sites

hello


use system info


and post a picture of the result


u intel hd is not reconized by the system ?


http://Olarila.com/forum/viewtopic.php?f=18&t=63


if it works in external the signal is send to external port...


and send again darwin dumper with working external display to see what kext are loaded


update in u profile signature u hardware.. sony so many problems in hack...


good hack

PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI

Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000

My OS X Files 

Link to comment
Share on other sites

hello


about u problem .. maybe a sony problem.. several sony have problems with graphics...


it can be also a edid problem, what is injected to mac os x from u display , he don't understand...


that is my problem with my graphics.. only when injected the correct edid ... voila graphics works...


if u can try my forced edid is in my signature myosxfiles


we only can show some ways to get the graphics working... nvidia generally editing the kext ...


and it work...


like u say it's working in external display...


is not a grateful work ... but only with that particularly note ... can have any advances.. must test , googling about the problem and never give up... my graphics take 6 months to work...


good hack

PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI

Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000

My OS X Files 

Link to comment
Share on other sites

Check this topic, I guess the procedure for EDID injection is the same


http://Olarila.com/forum/viewtopic.php?f=28&t=736

-Donations-

PayPal HERE - Stripe HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Link to comment
Share on other sites

What SMBIOS are you using?


Try using a Board-ID listed in /System/Library/Extensions/AppleGraphicsControl.kext/Contents/PlugIns/AppleGraphicsDevicePolicy.kext/Contents/Info.plist

-Donations-

PayPal HERE - Stripe HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Link to comment
Share on other sites

how should i use it with chameleon ?


anther question is about boot settings that are already applied : -v -npci=0x2000....... that i read , what file has them in the raw image ?

your image for image is cool but tailored for an average pc...and in my case does not work..so i ll try to edit it a little


i read a lot of forum today , i understood few things , the first being that i need a working "HackingTosh" ["8 to create the usb for install for others computers .

i started to get "Niresh Mavericks 10.9" that should install well . then will try "unishit + multishit" with files coming from http://www.rampagedev.com

is it the right path ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.





×
  • Create New...