ProjectOSX

Welcome Guest!

Returning User? Login here.

Want membership privileges? Register here.

7 Pages V   1 2 3 > »   
Start a new topic Add Reply
> Nvidia Gt5xxm Dev
DoiX
post Jan 27 2012, 10:41 AM
Post #1
Hi guys, it's nice to see devs are still active on this forum... they are pretty much dead every where else...

I bought a Dell L502x which works perfectly with Lion. It's missing only a working Nvidia GPU.

What i gathered so far, the GPU itself is supported with some kext mods, people that own l502x/l702x with 3D panels (bios has the GPU set to nvidia one not intel) have the card working and with good performances.

The problem is with the ones that don't have 3D displays or unlocked bioses. In my case, the nvidia card was powered only slightly not fully...

After experimenting with what i figured from looking at the bumblebee source and ACPI call, i made a DSDT file (._on /_off) that powers the card successfully, IOReg shows the audio on the card being powered and the Kext is loaded properly, battery life now being 1.30 hours.

AppleHDA is removed from my system in this picture because it doesn't allow booting without KernelCache (for some reason it just gets stuck at it)
Attached File  Screen_Shot_2012_01_27_at_12.25.42_PM.png ( 150.9K ) Number of downloads: 352

As you can see it's there, without the modified DSDT file the card is only showing PEG0/PEGP and a battery life of 2hours. With the card completely deactivated my battery life is over 3:30h so this confirms the card is powered correctly with _on function.

Comparing IORegs with the one from a L702x with 3D panel, we can notice that beside the normal differences the important ones consist of IOPowerManagement and GFX0 device which is missing completely from the right IOReg file (L702x w/ 3D - Courtesy of Steve from TonyMac forums)
Attached File  Screen_Shot_2012_01_27_at_12.31.06_PM.png ( 269.5K ) Number of downloads: 238

I know the drivers are loaded, AGPM is initialized and the card being fully powered, yet only the GFX0 (Intel GPU) one is active. If i try to deactivate it using DSDT and the same _off function i encounter KP at boot "No HPETs available...." error message with Backtrace in AppleIntelCPUPowerManagement.kext.

This leads me to think that it actually deactivates part of the CPU making it useless or that the function used to deactivate it is incorrect. If my first assumption is correct then it means that the 3D panel owners or if we would have a unlocked bios (UEFI type - it;'s not unlockable atm) with the Nvidia Card set as active the IGPU wouldn't be deactivated but hidden from driver reach.

I've been going on and off with this, trying to make it work and such. Now i'm wondering if there is a way using DSDT to hide the GFX0 device instead of deactivating it, maybe this way OS X would load the NVidia GPU in the same way 3D panel owner's OS X does. Or even any kext editing that can be done.

Thank you. If you need more info just ask.
DoiX
post Jan 29 2012, 05:23 PM
Post #2
Anyone? I've passed the quiz if you are wondering.. i posted here because i couldn't find a Dev thread for Lion...
drew
post Jan 30 2012, 08:36 PM
Post #3
Hello!

I think if You can dump the DSDT only with Intel GPU and an another with NVDA, maybe You can merge them to one without the Intel section. Then at boot the intel driver can't find anything to match, and it will unload automatically, then the NVDA driver can get the hardware.

Hmm?
DoiX
post Jan 31 2012, 07:27 AM
Post #4
Thanks for the reply, the bios ACPI tables remain the same... probably because i don't have an unlocked bios so both cards are active. They rely on the NVOP function and OS specific drivers.

Edit: actually, i'll beg some people that have 3D displays/modded bioses for their full ACPI table dump. Maybe for them it will be different.
Edit2: got the DSDT from them... their system specific Optimus SSDT file is missing.

This post has been edited by DoiX: Jan 31 2012, 10:12 PM
DoiX
post Feb 3 2012, 10:33 AM
Post #5
Managed to hide the IGPU using a modified version of IOPCIFamily.kext, however the nvdaresman isn't loading, i know it's framebuffer related. I believe it needs to be activated as well using DSDT, problem is finding the correct function.
Mido
post Feb 9 2012, 02:16 AM
Post #6
hi

i have dell inspiron n5110 contains gt525m card

to me the lvds and via connector is specificly connected to intel card so the only way to get them to work is to make intel card to work

about hdmi connector is connected to nvidia card so to get hdmito work must make this card work but by default nvidia isn't active

about laptops with 3d panel it must be connected to nvidia card as 3D to work the display must be connected to nvidia card

so the lvds is connected to nvidia card and here the nvidia card is the primary card and the intel card nearly is disable don't have this hardware to confirm

can you share the ioreg and acpi dump of this 3d notebook

also can you share how do you enable or disable card as you say there 1.30 hour battery life when on and 3 when card off

please share this to test it

--------
i think to make optimus work we must port ironhide project to osx
we first must way to disable and enable card throw software
then when card enabled make away to make intel card use rendering from nvidia card
then make tool that enable us to choose nvidia card to make render for a program
this is nearly that happen under iron hide project
---------

to me the goal is to enable or disable card
if enabled card so i can use hdmi
if disabled it i elongated the life of battery

this is my idea about this problem

the bad thing is that idont have any programing idea just do copy paste !!

i searched about NVOP method on acpi dump and didn't find it nearly externally added as when i readed acpi call to switch off card it call nvop , ps3 , off

i hope you share that

thanks
PC : AMD Phenom ii x4 955 / ASUS M5A97 / Sapphire HD 6850 / 2x2 1333 KingSton Ram / 2*500GB + 640GB HDD / Thermaltake 500 W
NB : DELL INSPIRON N5110 : CORE I5 2410M / 4GB 1333 Nanya Ram / Intel HD Graphics 3000 + Nvidia GeForce 525M / 640 HDD / DELL Wireless 1702
DoiX
post Feb 9 2012, 05:58 AM
Post #7
I checked ironhide/bumblebee a while back, it won't help us on os x. The same acpi calls are not really working on os x, you need to manually store certain parameters to activate the needed functions. Plus they use optirun for the card. We can't even use that because the card is not getting the OpenCL kernel extensions connected to it.

I'm hoping that the SSDT dump from people with 3d displays will catch those parameters.

I used the _off method to power down the card. Erhm, dump your SSDT tables on windows, check which one is called NvOpTbl, now you need to move the _on _off _ps0 _ps3 methods to your main DSDT and call it like this:
QUOTE
Method (PINI, 0, NotSerialized)
{
\_SB.PCI0.PEG0.PEGP._ON ()
}

Then put PINI() at the beginning of the_WAK method and INI method. It's really system specific, i can provide my dsdt but i don't recommend using it, most likely you will end up with a black screen at boot. http://dl.dropbox.com/u/16173714/nvidia-off.aml.zip

As for the ioreg dump and ssdt from the 3d display laptop... i will share when i get my hands on it.
Mido
post Feb 9 2012, 12:18 PM
Post #8
thanks
yes i am thinking now on switching on or off the card
can you please upload your untouched dsdt so i can know what did you add excatly

this python script get all acpi tables under mac and i tested it before and works good

http://www.insanelymac.com/forum/index.php?showtopic=215844


waiting your untouched dsdt for more understanding smile.gif
PC : AMD Phenom ii x4 955 / ASUS M5A97 / Sapphire HD 6850 / 2x2 1333 KingSton Ram / 2*500GB + 640GB HDD / Thermaltake 500 W
NB : DELL INSPIRON N5110 : CORE I5 2410M / 4GB 1333 Nanya Ram / Intel HD Graphics 3000 + Nvidia GeForce 525M / 640 HDD / DELL Wireless 1702
Mido
post Feb 9 2012, 12:41 PM
Post #9
anther thing
to my notebook
it came only with 2d panel and the option about gfx may only intel card or with nvidia card or with amd card

so to me when i disable card there no problem to my lvds connection

if your notebook may came with 3d panal you may found ssdt about that after checking panel make connection to to lids from nvidia card this is my thinking
PC : AMD Phenom ii x4 955 / ASUS M5A97 / Sapphire HD 6850 / 2x2 1333 KingSton Ram / 2*500GB + 640GB HDD / Thermaltake 500 W
NB : DELL INSPIRON N5110 : CORE I5 2410M / 4GB 1333 Nanya Ram / Intel HD Graphics 3000 + Nvidia GeForce 525M / 640 HDD / DELL Wireless 1702
Mido
post Feb 9 2012, 03:03 PM
Post #10
note my injection for nvidia card to act as child card (secondary card)
PC : AMD Phenom ii x4 955 / ASUS M5A97 / Sapphire HD 6850 / 2x2 1333 KingSton Ram / 2*500GB + 640GB HDD / Thermaltake 500 W
NB : DELL INSPIRON N5110 : CORE I5 2410M / 4GB 1333 Nanya Ram / Intel HD Graphics 3000 + Nvidia GeForce 525M / 640 HDD / DELL Wireless 1702
DoiX
post Feb 9 2012, 04:56 PM
Post #11
http://dl.dropbox.com/u/16173714/acpi_dsdt.dsl.zip focus on the PINI/INI/GFX/PEGP differences, the rest are just mods to make my system work smile.gif

FileMerge (comes with os x dev tools) is a great app to compare, in case you need it.
Mido
post Feb 9 2012, 05:30 PM
Post #12
QUOTE (DoiX @ Feb 9 2012, 06:56 PM) *
http://dl.dropbox.com/u/16173714/acpi_dsdt.dsl.zip focus on the PINI/INI/GFX/PEGP differences, the rest are just mods to make my system work smile.gif

FileMerge (comes with os x dev tools) is a great app to compare, in case you need it.

thanks man i am now first coping ps0 ps3 off on rom methods from ssdt but i have problem on compiling you can it here
http://www.insanelymac.com/forum/index.php...t&p=1794506

when ifix it will add pini/ini/gfx
PC : AMD Phenom ii x4 955 / ASUS M5A97 / Sapphire HD 6850 / 2x2 1333 KingSton Ram / 2*500GB + 640GB HDD / Thermaltake 500 W
NB : DELL INSPIRON N5110 : CORE I5 2410M / 4GB 1333 Nanya Ram / Intel HD Graphics 3000 + Nvidia GeForce 525M / 640 HDD / DELL Wireless 1702
Mido
post Feb 11 2012, 04:17 PM
Post #13
can you fix this dsdt compilation problem for me ?
PC : AMD Phenom ii x4 955 / ASUS M5A97 / Sapphire HD 6850 / 2x2 1333 KingSton Ram / 2*500GB + 640GB HDD / Thermaltake 500 W
NB : DELL INSPIRON N5110 : CORE I5 2410M / 4GB 1333 Nanya Ram / Intel HD Graphics 3000 + Nvidia GeForce 525M / 640 HDD / DELL Wireless 1702
DoiX
post Feb 11 2012, 04:18 PM
Post #14
Yeah sure, give me your normal DSDT SSDT-4 and what you made.
Mido
post Feb 11 2012, 04:26 PM
Post #15
thanks very much on post on insanelymac
there are dsdt.aml that i use only contain for gfxs cards injection of nvidia card i inject it as gt540m as i use over clocked bios to gt540m

and untouched ssdt4.aml


if you want untouched dsdt I can upload it but i will apply patches again
as you want smile.gif
PC : AMD Phenom ii x4 955 / ASUS M5A97 / Sapphire HD 6850 / 2x2 1333 KingSton Ram / 2*500GB + 640GB HDD / Thermaltake 500 W
NB : DELL INSPIRON N5110 : CORE I5 2410M / 4GB 1333 Nanya Ram / Intel HD Graphics 3000 + Nvidia GeForce 525M / 640 HDD / DELL Wireless 1702
Mido
post Feb 11 2012, 04:28 PM
Post #16
here is untouched two dsdt.aml ssdt4.aml
[attachment=4028:Archive.zip]
PC : AMD Phenom ii x4 955 / ASUS M5A97 / Sapphire HD 6850 / 2x2 1333 KingSton Ram / 2*500GB + 640GB HDD / Thermaltake 500 W
NB : DELL INSPIRON N5110 : CORE I5 2410M / 4GB 1333 Nanya Ram / Intel HD Graphics 3000 + Nvidia GeForce 525M / 640 HDD / DELL Wireless 1702
DoiX
post Feb 11 2012, 04:34 PM
Post #17
The DSDT from InsanelyM is compiling just fine... i'm using DSDT Editor to compile it, DSDTSE also reports no error.
Mido
post Feb 11 2012, 04:37 PM
Post #18
QUOTE (DoiX @ Feb 11 2012, 06:34 PM) *
The DSDT from InsanelyM is compiling just fine... i'm using DSDT Editor to compile it, DSDTSE also reports no error.

the dsdt.dsl not compile for me i use dsdt editor also !!
PC : AMD Phenom ii x4 955 / ASUS M5A97 / Sapphire HD 6850 / 2x2 1333 KingSton Ram / 2*500GB + 640GB HDD / Thermaltake 500 W
NB : DELL INSPIRON N5110 : CORE I5 2410M / 4GB 1333 Nanya Ram / Intel HD Graphics 3000 + Nvidia GeForce 525M / 640 HDD / DELL Wireless 1702
Mido
post Feb 11 2012, 04:48 PM
Post #19
?
PC : AMD Phenom ii x4 955 / ASUS M5A97 / Sapphire HD 6850 / 2x2 1333 KingSton Ram / 2*500GB + 640GB HDD / Thermaltake 500 W
NB : DELL INSPIRON N5110 : CORE I5 2410M / 4GB 1333 Nanya Ram / Intel HD Graphics 3000 + Nvidia GeForce 525M / 640 HDD / DELL Wireless 1702
DoiX
post Feb 12 2012, 11:05 AM
Post #20
Sorry, had to leave last night. Try reinstalling DSDTSE, sometimes the compiler gets corrupted.

Here is your file compiled, maybe if you use it to add your future mods you will avoid the compiler error.
Attached File  mido.aml.zip ( 16.77K ) Number of downloads: 40

7 Pages V   1 2 3 > » 
Add Reply Start a new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: