Contribute
Register

[Guide] Patching LAPTOP DSDT/SSDTs

Hi RehabMan,

I`ve managed to fix all the DSDT errors (no patch applied so far, just plain DSDT), but one:
Line Code Message
12641 6126 Syntax error, unexpected PARSEOP_ARGO

googling has suggested to delete the line containing Arg0... I get no errors, but hell of a lot of warnings, remarks and optimizations
Code:
Method (ADBG, 1, Serialized)
    {[INDENT]If (CondRefOf (MDBG))[/INDENT]
[INDENT]{[/INDENT]
[INDENT=2]MNIO (Arg0)[/INDENT]
[INDENT=2]MNIO ("\n")[/INDENT]
[INDENT=2]Return (MDBG)[/INDENT]
[INDENT=2]Arg0[/INDENT]
[INDENT]}

[/INDENT]
[INDENT]Return (Zero)[/INDENT]
    }

I`m posting .dsl file - all according to your guides: extracted from Linux, dissasembled with iasl (from repo of yours). As acpi compile version in MaciASL I`ve set ACPI 5.0A (no plain 5.0 in my options)

It is obvious. Apply "Fix ADBG Error".
 
Hi RehabMan,

I have 6 CPU related SSDTs: SSDT-2, SSDT-3, SSDT-4x, SSDT-5x, SSDT-6x, SSDT-9.
It seems I have 3 choices to handle them:

1. drop all of them.
2. keep all of them.
3. just drop SSDT-4x/SSDT-5x/SSDT-6x but keep SSDT-2/SSDT-3/SSDT-9 with other SSDTs in my final CLOVER/ACPI/patched/ folder.

Please help me to decide which is one is the best. Thanks!
 
Attached my DSDT/SSDTs.
 

Attachments

  • patched.tar.gz
    106.9 KB · Views: 147
Hi RehabMan,

I have 6 CPU related SSDTs: SSDT-2, SSDT-3, SSDT-4x, SSDT-5x, SSDT-6x, SSDT-9.
It seems I have 3 choices to handle them:

1. drop all of them.
2. keep all of them.
3. just drop SSDT-4x/SSDT-5x/SSDT-6x but keep SSDT-2/SSDT-3/SSDT-9 with other SSDTs in my final CLOVER/ACPI/patched/ folder.

Please help me to decide which is one is the best. Thanks!

#3... Keep all static SSDTs, drop all dynamic SSDTs.
 
#3... Keep all static SSDTs, drop all dynamic SSDTs.

Got it! Thank you!

BTW, after dropping all dynamic SSDTs, should I keep the sequence numbers of static SSDTs or renumber them to remove breaks?

I have defined SSDT orders in clover config.plist:

<key>SortedOrder</key>
<array>
<string>SSDT.aml</string>
<string>SSDT-0.aml</string>
<string>SSDT-1.aml</string>
<string>SSDT-2.aml</string>
<string>SSDT-3.aml</string>
<string>SSDT-4.aml</string>
<string>SSDT-5.aml</string>
<string>SSDT-6.aml</string>
<string>SSDT-7.aml</string>
<string>SSDT-8.aml</string>
<string>SSDT-9.aml</string>
<string>SSDT-10.aml</string>
<string>SSDT-11.aml</string>
<string>SSDT-12.aml</string>
...
 
Got it! Thank you!

BTW, after dropping all dynamic SSDTs, should I keep the sequence numbers of static SSDTs or renumber them to remove breaks?

If you're using Clover, keep the original names. It is less confusing.

Only Chameleon has the dumb requirement that SSDTs be numbered sequentially.
 
If you're using Clover, keep the original names. It is less confusing.

Only Chameleon has the dumb requirement that SSDTs be numbered sequentially.

Good, thanks for the quick reply!
 
Hi,

Im trying to fix my audio, I`ve found patched appleHDA which might work, so want to ask...

Are these all patches neccesary?:

- remove _DSM
-FIX layout
- FIX IRQ

On insanelymac they also mentioned: HDEF or AZAL to HDEF in both DTGP method has to be present in our DSDT.aml. ....AFTER deleting _DSM and inserting DTGP and patching HDEF I get bunch of errors - so I guess thats not the right way, I must be doing something wrong

After that will it be enough to just install patched appleHDA ?
 
Hi,

Im trying to fix my audio, I`ve found patched appleHDA which might work, so want to ask...

Are these all patches neccesary?:

- remove _DSM
-FIX layout
- FIX IRQ

On insanelymac they also mentioned: HDEF or AZAL to HDEF in both DTGP method has to be present in our DSDT.aml. ....AFTER deleting _DSM and inserting DTGP and patching HDEF I get bunch of errors - so I guess thats not the right way, I must be doing something wrong

After that will it be enough to just install patched appleHDA ?

Read post #1.
 
Hey there,

I'm stuck again. I'm trying to get my Lenovo M30-70 to work. So I started creating my personal dsdt and ssdt's. I got my acpi files from the linux live system. Then I Used my virtual Mac Machine (Mountain lion) to decompile with iasl. Everythng worked and I got my .dsl files. Now I want to fix the erros with maciasl. There I searched for "syn" and got some hints, so I need to patch them. But how and how to determine which patch I need. I put my files in the attachment. Probably there will be some help...

Thanks


Thomas
 

Attachments

  • aml+dsl.zip
    451 KB · Views: 67
Back
Top