Contribute
Register

DSDT patching to disable Nvidia card on Acer 5755G

Status
Not open for further replies.
Joined
Apr 20, 2014
Messages
154
Motherboard
Acer 5755G, Acer 7750G
CPU
i7-2670QM, i7-2630QM
Graphics
Intel HD3000 1366x768 + NVIDIA GeForce GT 540M, AMD Radeon 6850M
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. 0
I am trying to disable my Nvidia from DSDT following instruction given on
http://www.tonymacx86.com/lion-lapt...g-discrete-nvidia-gpu-optimus.html#post286576

but I canon pass the step 5 when compile DSDT, and got this error: 10134, 4096, syntax error, unexpected PARSEOP_FIELD

This same error shows when I tried compile SSDT directly: 259, 4096, syntax error, unexpected PARSEOP_FIELD

Line 259: OperationRegion (PCIS, SystemMemory, EBAS (0x0100), Field (PCIS, ByteAcc, NoLock, Preserve)
{
DVID, 16,
DSID, 16,
CMDR, 8,
VGAR, 2008
})

Both SSDT and DSDT attached.

Please help! Thanks a lot!
 

Attachments

  • DSDT5755.aml
    36.4 KB · Views: 154
  • SSDT-6.aml
    19.8 KB · Views: 194
I am trying to disable my Nvidia from DSDT following instruction given on
http://www.tonymacx86.com/lion-lapt...g-discrete-nvidia-gpu-optimus.html#post286576

but I canon pass the step 5 when compile DSDT, and got this error: 10134, 4096, syntax error, unexpected PARSEOP_FIELD

This same error shows when I tried compile SSDT directly.

Both SSDT and DSDT attached.

Please help! Thanks a lot!

I only have TNOT error (there is a patch for it in my laptop repo) when compiling DSDT.


SSDT should be disassembled using DSDT/SSDTs as context...

Place all SSDT/DSDT in a single directory and use a recent build of iasl to disassemble:
http://www.tonymacx86.com/attachmen...ell-inspiron-17-7000-hackintosh-able-iasl.zip
Code:
cd "to directory where you placed all SSDT/DSDT"
iasl -da *.aml

Now you can load SSDT-6.dsl and compile without errors (*usually ... I'm guessing as you didn't provide all files).
 
I am using the Clover F4 dumped SSDTs. Everything has been already disassembled.
 
I am using the Clover F4 dumped SSDTs. Everything has been already disassembled.

Post your files. You will still need to disassemble the output from Clover F4. Use a current version of iasl and the command line I showed.
 
Everything under ACPI\oringin is in the zip.

Thanks!
 

Attachments

  • origin.zip
    31.9 KB · Views: 98
Everything under ACPI\oringin is in the zip.

Thanks!

After disassembling using my previous instructions, apply the following patch to ssdt-6.dsl. It will then compile without errors.

Code:
into scope label \_SB.PCI0.PEG0.PEGP code_regex Name\s+\(_IRC,\s+([^\)].*)\) replace_matched
begin
Method(_IRC, 0, NotSerialized) { Return(%1) }
end;

into_all method label MXMX remove_entry;
into method label WMMX remove_entry;
into method label _BCM parent_label DD02 replace_content begin // nothing end;
 
After disassembling using my previous instructions, apply the following patch to ssdt-6.dsl. It will then compile without errors.

Code:
into scope label \_SB.PCI0.PEG0.PEGP code_regex Name\s+\(_IRC,\s+([^\)].*)\) replace_matched
begin
Method(_IRC, 0, NotSerialized) { Return(%1) }
end;

into_all method label MXMX remove_entry;
into method label WMMX remove_entry;
into method label _BCM parent_label DD02 replace_content begin // nothing end;


Not sure what I did wrong, I cannot run your command successfully.

If run the command in origin folder, I got a lot errors
Code:
[FONT=Menlo]Last login: Sun May  4 09:39:39 on ttys001[/FONT][FONT=Menlo]erics-MacBook-Pro:~ eric$ cd ~/Desktop/origin/[/FONT]
[FONT=Menlo]erics-MacBook-Pro:origin eric$ /Users/eric/Downloads/iasl -da *.aml[/FONT]
[FONT=Menlo]
[/FONT]
[FONT=Menlo]Intel ACPI Component Architecture[/FONT]
[FONT=Menlo]ASL Optimizing Compiler version 20131115-64 [Dec  1 2013][/FONT]
[FONT=Menlo]Copyright (c) 2000 - 2013 Intel Corporation[/FONT]
[FONT=Menlo]
[/FONT]
[FONT=Menlo]Loading Acpi table from file APIC.aml[/FONT]
[FONT=Menlo]Loading Acpi table from file XSDT.aml[/FONT]
[FONT=Menlo]Pass 1 parse of [XSDT][/FONT]
[FONT=Menlo]Pass 2 parse of [XSDT][/FONT]
[FONT=Menlo]ACPI Error: Unknown opcode 0xC0 at table offset 0x0025, ignoring (20131115/psobject-183)[/FONT]
[FONT=Menlo]/*[/FONT]
[FONT=Menlo]Error: Unknown opcode 0xC0 at table offset 0x0025, context:[/FONT]
[FONT=Menlo] 0015: 44 43 54 01 00 00 00 20 20 20 20 13 00 00 01 00  DCT....    .....[/FONT]
[FONT=Menlo] 0025: C0 FF 96 00 00 00 00 00 D0 FF 96 00 00 00 00 00  ................[/FONT]
[FONT=Menlo] 0035: B0 FF 96 00 00 00 00 00 A0 FF 96 00 00 00 00 00  ................[/FONT]
[FONT=Menlo]*/[/FONT]
[FONT=Menlo]ACPI Error: Unknown opcode 0xD0 at table offset 0x002D, ignoring (20131115/psobject-183)[/FONT]
[FONT=Menlo]/*[/FONT]
[FONT=Menlo]Error: Unknown opcode 0xD0 at table offset 0x002D, context:[/FONT]
[FONT=Menlo] 001D: 20 20 20 13 00 00 01 00 C0 FF 96 00 00 00 00 00     .............[/FONT]
[FONT=Menlo] 002D: D0 FF 96 00 00 00 00 00 B0 FF 96 00 00 00 00 00  ................[/FONT]
[FONT=Menlo] 003D: A0 FF 96 00 00 00 00 00 90 FF 96 00 00 00 00 00  ................[/FONT]
[FONT=Menlo]*/[/FONT]
[FONT=Menlo]ACPI Error: Unknown opcode 0xB0 at table offset 0x0035, ignoring (20131115/psobject-183)[/FONT]
[FONT=Menlo]/*[/FONT]
[FONT=Menlo]Error: Unknown opcode 0xB0 at table offset 0x0035, context:[/FONT]
[FONT=Menlo] 0025: C0 FF 96 00 00 00 00 00 D0 FF 96 00 00 00 00 00  ................[/FONT]
[FONT=Menlo] 0035: B0 FF 96 00 00 00 00 00 A0 FF 96 00 00 00 00 00  ................[/FONT]
[FONT=Menlo] 0045: 90 FF 96 00 00 00 00 00 E0 FE 96 00 00 00 00 00  ................[/FONT]
[FONT=Menlo]*/[/FONT]
[FONT=Menlo]Loading Acpi table from file SSDT-6.aml[/FONT]
[FONT=Menlo]Acpi table [SSDT] successfully installed and loaded[/FONT]
[FONT=Menlo]Pass 1 parse of [SSDT][/FONT]
[FONT=Menlo]Pass 2 parse of [SSDT][/FONT]
[FONT=Menlo]Loading Acpi table from file SSDT-5x.aml[/FONT]
[FONT=Menlo]Acpi table [SSDT] successfully installed and loaded[/FONT]
[FONT=Menlo]Pass 1 parse of [SSDT][/FONT]
[FONT=Menlo]Pass 2 parse of [SSDT][/FONT]
[FONT=Menlo]Loading Acpi table from file SSDT-4x.aml[/FONT]
[FONT=Menlo]Acpi table [SSDT] successfully installed and loaded[/FONT]
[FONT=Menlo]Pass 1 parse of [SSDT][/FONT]
[FONT=Menlo]Pass 2 parse of [SSDT][/FONT]
[FONT=Menlo]Loading Acpi table from file SSDT-3x.aml[/FONT]
[FONT=Menlo]Acpi table [SSDT] successfully installed and loaded[/FONT]
[FONT=Menlo]Pass 1 parse of [SSDT][/FONT]
[FONT=Menlo]Pass 2 parse of [SSDT][/FONT]
[FONT=Menlo]Loading Acpi table from file SSDT-2.aml[/FONT]
[FONT=Menlo]Acpi table [SSDT] successfully installed and loaded[/FONT]
[FONT=Menlo]Pass 1 parse of [SSDT][/FONT]
[FONT=Menlo]Pass 2 parse of [SSDT][/FONT]
[FONT=Menlo]Loading Acpi table from file SSDT-1.aml[/FONT]
[FONT=Menlo]Acpi table [SSDT] successfully installed and loaded[/FONT]
[FONT=Menlo]Pass 1 parse of [SSDT][/FONT]
[FONT=Menlo]Pass 2 parse of [SSDT][/FONT]
[FONT=Menlo]Loading Acpi table from file SSDT-0.aml[/FONT]
[FONT=Menlo]Acpi table [SSDT] successfully installed and loaded[/FONT]
[FONT=Menlo]Pass 1 parse of [SSDT][/FONT]
[FONT=Menlo]Pass 2 parse of [SSDT][/FONT]
[FONT=Menlo]Loading Acpi table from file SLIC.aml[/FONT]
[FONT=Menlo]Pass 1 parse of [SLIC][/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x52000024), repaired: [***R] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x00314153), repaired: [SA1*] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x6634BF45), repaired: [E*4*] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x01B71215), repaired: [****] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x8E6D574D), repaired: [MW**] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0xE777E353), repaired: [S***] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Error: ^\?o??0♛?ГF??z??L2ԑ???l?<sφ-??P??~[^'f:1?[/FONT]
[FONT=Menlo]                                                    ???I\́?w2R?][?ޝ%????: Path has too many parent prefixes (^) - reached beyond root node (20131115/nsaccess-522)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x99E2305F), repaired: [_0**] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x17D8AB46), repaired: [F***] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x91D4324C), repaired: [L2**] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x50069A95), repaired: [***P] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x9F313A01), repaired: [**1*] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x77BA81CC), repaired: [****] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x00012053), repaired: [S***] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x34AC9049), repaired: [I**4] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0xFB2C6252), repaired: [R***] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0xA5883B55), repaired: [U***] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x5D0B684A), repaired: [J***] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x2866C149), repaired: [I***] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x97B4FE47), repaired: [G***] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x2F5DA055), repaired: [U***] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x259BD359), repaired: [Y***] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0xCAE72753), repaired: [S***] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x1F4BA447), repaired: [G*K*] (20131115/utstring-711)[/FONT]
[FONT=Menlo]Pass 2 parse of [SLIC][/FONT]
[FONT=Menlo]ACPI Warning: Invalid character(s) in name (0x52000024), repaired: [***R] (20131115/utstring-711)[/FONT]
[FONT=Menlo]ACPI Exception: AE_CTRL_PENDING, While creating Arg 1 (20131115/dsutils-889)[/FONT]
[FONT=Menlo]Segmentation fault: 11[/FONT]
[FONT=Menlo]erics-MacBook-Pro:origin eric$[/FONT]
 
Tried this command instead

iasl -da DSDT.aml SSDT*.aml

That seems to work, but I am not sure I am missing anything.
 
Tried this command instead

iasl -da DSDT.aml SSDT*.aml

That seems to work, but I am not sure I am missing anything.

Yes, the instructions I posted read "Place all SSDT/DSDT in a single directory". If you fail to follow that advice, then you have to filter your disassembly as you show above.
 
Yes, the instructions I posted read "Place all SSDT/DSDT in a single directory". If you fail to follow that advice, then you have to filter your disassembly as you show above.

Yes. My bad.

The DSDT is currently patched and no errors.

What I was not sure was what "Call the OFF-method by adding "OFF()" (or whatever your method is called) to the _WAK method in your DSDT" means.

So I did this:

Code:
    Method (_WAK, 1, Serialized)    {
        _OFF ()
        Store (Zero, P80D)
        If (NEXP)
        {
            If (And (OSCC, 0x02))
            {
                \_SB.PCI0.NHPG ()
            }


            If (And (OSCC, 0x04))
            {
                \_SB.PCI0.NPME ()
            }
        }
...


Put that in the ACPI\patched folder, reboot, and I still have the Nvidia card detected in system report. Any idea please?

Thanks!
 

Attachments

  • DSDT.aml
    37 KB · Views: 184
  • SSDT-6.dsl
    113 KB · Views: 178
Status
Not open for further replies.
Back
Top