Jump to content
lucasR

Disable nvidia card in DSDT

3 posts in this topic

Recommended Posts

i got a Lg a550, with a i5-3210m and an Gt 640m, i need to disable the Gt 640m so i can save battery, i extracted the ssdt and i found the OFF method in SSDT4 but i can't find any information on where to put the OFF method, so i am asking for help to do this.

 

i really hope that anyone can help me.

thanks.

 


Share this post


Link to post
Share on other sites
Advertisement

i got a Lg a550, with a i5-3210m and an Gt 640m, i need to disable the Gt 640m so i can save battery, i extracted the ssdt and i found the OFF method in SSDT4 but i can't find any information on where to put the OFF method, so i am asking for help to do this.

 

i really hope that anyone can help me.

thanks.

 

attachicon.gifNVD.zip

What I would do:

 

make sure SSDT4.aml is loading: You are probably using DropSSDT=Yes, so it is not currently in ACPI namespace. Instead eliminate just the CPU p/c state related tables. And include the raw binary (no need to recompile) SSDTs, as SSDT-1.aml, SSDT-2.aml, etc.

 

call the method from _SB.PCI0._INI: You should be able to do it like this:

External(\_SB.PCI0.PEG0.PEGP._OFF, MethodObj)
if (CondRefOf(\_SB.PCI0.PEG0.PEGP._OFF)) { \_SB.PCI0.PEG0.PEGP._OFF() }
So, your _INI would start out like:

        Method (_INI, 0, NotSerialized)
        {
            External(\_SB.PCI0.PEG0.PEGP._OFF, MethodObj)
            if (CondRefOf(\_SB.PCI0.PEG0.PEGP._OFF)) { \_SB.PCI0.PEG0.PEGP._OFF() }
            Store (0x07D0, OSYS)
            If (CondRefOf (\_OSI, Local0))
            {
                If (_OSI ("Windows 2001"))     
...
In your case, SSDT1, SSDT2, SSDT3 are all not necessary, so you should DropSSDT=Yes and then include SSDT4.AML as SSDT-1.AML (assuming SSDT.AML) has your normal CPU p/c states (eg. from Pike's script). The bootloader will load DSDT.AML, SSDT.AML, and SSDT-1.AML (contents same as SSDT4.AML). Recompiling SSDT4 is complicated, so I recommend you don't bother. Instead just include the binary as extracted from Linux.

 

Note: I have no idea if that will work, as I don't buy laptops with discrete cards, but if I did have your situation, that's what I would try.

Share this post


Link to post
Share on other sites

Sorry to bump.

 

From your reply, can I say that I only need to put SSDT-11.aml(that contains NVIDIA in my case) to Clover ACPI/patched/ and add those lines to _SB.PCI0._INI, right?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By metaphysician
      hi folks! i'm just checking for opinions here on a Clover based install of High Sierra. currently i can't boot directly from the internal drive on my hackbook, an ASUS ROG GL502-VS laptop (with the replaced WiFi card), though i can boot from the USB bootloader/installer

      i installed 10.13.6 fine using a prepared vanilla installer on HFS+ (not APFS), but my configuration is somewhat unusual. i have two drives. the first SSD has the Windows system, the second has two partitions with the 2nd partition holding the macOS system. when i ran Clover installer i could not use the UEFI option to copy to the EFI partition because it couldn't find one on that drive. so it installed the EFI folder on the root of the macOS partition instead.
       
      however, after a bit of tinkering around, i found out that there is an existing EFI partition on the primary drive called SYSTEM. it has a EFI folder and underneath that is a Windows folder, a Boot folder, and one called APPLE. i can mount this partition with Clover Configurator and copy files to it, but i don't know if this is a good or risky solution. i was thinking i would manually copy the CLOVER folder and the uefi64.boot file to this partition , making sure not to overwrite anything existing. using the UEFI setup, i can create a boot path from the SYSTEM partition to the Clover boot file, but i'm just curious if this is a useful solution or not, and i don't want to ruin the existing Windows 10 installation for sure. any advice appreciated!
    • By Drovosek
      For my laptop Hp Pavilion 15-au028ur worked patch for HP 3165sf
      I also experimented with manual patching and assembled my own version:

      #Maintained by: RehabMan for: Laptop Patches #Battery_HP-DV6-1380ek.txt # created by RehabMan 2019-xx-xx # based on Battery_HP-DV6-1380ek.txt # additional patches for dv6-1380ek provided by chihab222, credit gsly # works for: #  HP Pavilion 15-au028ur, per Drovosek into method label B1B2 remove_entry; into definitionblock code_regex . insert begin Method (B1B2, 2, NotSerialized) { Return (Or (Arg0, ShiftLeft (Arg1, 8))) }\n end; # 16-bit EC0 registers #                BADC,   16, #                BFCC,   16, #                MCUR,   16, #                MBRM,   16, #                MBCV,   16, into device label EC0 code_regex BADC,\s+16, replace_matched begin ADC0,8,ADC1,8, end; into device label EC0 code_regex BFCC,\s+16, replace_matched begin FCC0,8,FCC1,8, end; into device label EC0 code_regex MCUR,\s+16, replace_matched begin CUR0,8,CUR1,8, end; into device label EC0 code_regex MBRM,\s+16, replace_matched begin BRM0,8,BRM1,8, end; into device label EC0 code_regex MBCV,\s+16, replace_matched begin BCV0,8,BCV1,8, end; # 16-bit method access into method label CLRI code_regex (\^.*)MBRM replaceall_matched begin B1B2\(%1BRM0,%1BRM1\) end; into method label UPBS code_regex (\^.*)MBRM replaceall_matched begin B1B2\(%1BRM0,%1BRM1\) end; into method label UPBI code_regex (\^.*)BFCC replaceall_matched begin B1B2\(%1FCC0,%1FCC1\) end; into method label UPBS code_regex (\^.*)MCUR replaceall_matched begin B1B2\(%1CUR0,%1CUR1\) end; into method label UPBS code_regex (\^.*)MBCV replaceall_matched begin B1B2\(%1BCV0,%1BCV1\) end;
      The only problem - when it reaches 100% charge, it no longer falls until you reset the CMOS (15-30 seconds hold down the power button on the laptop). In the rehabman guide there is a patch for ASUS in this case, there is a patch method FBST. There is no such method in my DSDT.
      Can someone help?
      Here's a patched and clean DSDT: https://vk.com/doc183234383_509697931
    • By dbx103
      I'm having so much problem following guide and forums making impossible for me to understand,  MaciASL, Could someone disable my Nvidia card by editing my files.
       
      origin.zip
×