Jump to content

Disabling NVIDIA Optimus card on all laptops


Whit3Spirit
 Share

345 posts in this topic

Recommended Posts

How come System Information still says my nVidia is still there? 

I got 3 errors while patching the DSDT is that it and how do I get rid of those errors?

 

Do not use the patch automatically but manually enter the patch written in the "Information About Patch" in your DSDT. Do not copy and paste, rewrite everything by hand copying small strings at a time. It should work. 
 
If there are errors compiling the DSDT will not be saved. 
 
To compile manually using MaciASL
Link to comment
Share on other sites

 

Do not use the patch automatically but manually enter the patch written in the "Information About Patch" in your DSDT. Do not copy and paste, rewrite everything by hand copying small strings at a time. It should work. 
 
If there are errors compiling the DSDT will not be saved. 
 
To compile manually using MaciASL

 

 

Okay I'm sorry but I'm not understanding this correctly, 22K lines of code here

 

I' supposed to use MaciASL to add the patch manually?

If so I have no Idea where it shold go, there's about 22K lines of code here.

 

I was using Chameleon wizard to try and patch the DSDT , got errors, Am i supposed t try and patch it with MaciASL now?

Link to comment
Share on other sites

Okay I'm sorry but I'm not understanding this correctly, 22K lines of code here

 

I' supposed to use MaciASL to add the patch manually?

If so I have no Idea where it shold go, there's about 22K lines of code here.

 

I was using Chameleon wizard to try and patch the DSDT , got errors, Am i supposed t try and patch it with MaciASL now?

 

If you want a clean DSDT, go to the right topic. There is just for disabling Nvidia.

Start to here : http://www.insanelymac.com/forum/forum/345-laptops/

Link to comment
Share on other sites

Hello!

 

If you are on Clover you can meanwhile try to set in option the argument: nv_disable=1.

 

Have fun.

 

PS: Sorry for the delay about bluetooth. I think I have the file anywhere on my hdd. If I find it, I´ll upload it on your german thread. Thank´s for the DSDT.aml.

Link to comment
Share on other sites

Hello!

 

Nvidia drivers get not loaded. But the card is not disabled with it. You can also avoid with it NVidia blackscreen issue.  Then gfx is only loaded in vesa mode on Nvidia cards.

 

Have fun.

 

 

Thank you, it's good to know !

Link to comment
Share on other sites

Thanks for the quick response, gotta find the culprit somewhere else then. Cheers :)

 

EDIT_2: You were right, after throwing out IntelHDGraphics* from the Installer Media, it booted nicely.. but with some Geforce/Nvidia @ kernel-boottime

 

For anybody interested, I create a little patch to disable Optimus - you still have to find the right device path for your laptop / DSDT tho.. maybe I can work out how to automatically grab that later...

optimus_patch.txt

Link to comment
Share on other sites

  • 2 weeks later...

hello

@ tuxuser

is your patch functional with your laptop

because if i patch the dsdt that you send in post 215 with your patch, i obtain some errors .

like with my dsdt

what is your bootloader and what are the config.plist ?

thank you

post-433412-0-47188800-1407907872_thumb.png

Link to comment
Share on other sites

You can find RPL in the patch tho...

 

You have to replace RPL with your devicestring either before patching or after that.

 

you can find the correct devicestring by searching for

0xF8, 0xD8, 0x86, 0xA4, 0xDA, 0x0B, 0x1B, 0x47

in your DSDT and SSDTs

 

Here some pictures to clarify:

 

post-1353950-0-64528200-1407914414_thumb.jpg

post-1353950-0-07338600-1407914419_thumb.jpg

post-1353950-0-39639000-1407914423_thumb.jpg

 

In this case the devicestring is: SB.PCI0.PEGP.P0P2

 

So you replace

"External(\_RPL._PS0, MethodObj)" --> "External(\_SB.PCI0.PEGP.P0P2._PS0, MethodObj)"

 

You have to do that for all the entries in the patch, that contain RPL

 

Hope that clears it up a little!

 

BTW: I use Clover, no special patching needed.. except PatchVBios for the Intel card.

 

Link to comment
Share on other sites

  • 3 weeks later...

Hi

 

Can anyone help me patch my DSDT to disable NVidia Card. I already tried tuxuser's patch but it didn't work for me.

 

EDIT: I also tried Whit3Spirit's patch but i get errors.

 

Thanks

Extract all DSDT/SSDTs from Linux @ /sys/firmware/acpi/tables and /sys/firmware/acpi/tables/dynamic.

 

You cannot accomplish this with DSDT alone.

Link to comment
Share on other sites

Here it is.

_OFF method is in SSDT-2.aml.

 

Disassemble all at once with "iasl -da *.aml". Work with the resulting *.dsl.

 

Then add _OFF call to _INI inside SSDT-2.aml:

        Method (_INI, 0, NotSerialized)  // _INI: Initialize
        {
            Store (Zero, \_SB.PCI0.PEG0.PEGP._ADR)
            _OFF() // added to turn nvidia off
        }
Make sure that you apply any renames you may have applied to DSDT (or other SSDTs) to this one too. Common case is renaming GFX0 to IGPU. This SSDT has GFX0 references, so it won't work if you rename in one place, but not the other.

 

Then include patched SSDT-2.aml where it can be loaded by the bootloader.

 

Make sure to drop OEM SSDTs. You cannot provide a patched SSDT without dropping the OEM SSDTs.

  • Like 3
Link to comment
Share on other sites

 Share

×
×
  • Create New...