Contribute
Register

[Guide] Patching LAPTOP DSDT/SSDTs

Feartech

Moderator
Joined
Aug 3, 2013
Messages
26,997
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
  1. iMac
Mobile Phone
  1. iOS
I'm So tired of this error, Please help me out !! :crazy:
Use this tool and upload your problem reporting files:
 
Joined
Jul 25, 2013
Messages
17
Motherboard
ASUS Z170-P
CPU
i7-6700
Graphics
GTX 970
Mobile Phone
  1. iOS
Use this tool and upload your problem reporting files:
I just have only one error in compiling, Because the problem is only with the DSDT Compiling, Please check that out
 

Feartech

Moderator
Joined
Aug 3, 2013
Messages
26,997
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
  1. iMac
Mobile Phone
  1. iOS
I just have only one error in compiling, Because the problem is only with the DSDT Compiling, Please check that out
can't do much without all your files....
 
Joined
Jul 25, 2013
Messages
17
Motherboard
ASUS Z170-P
CPU
i7-6700
Graphics
GTX 970
Mobile Phone
  1. iOS
can't do much without all your files....
Here is my Clover Extracted Origin folder, Please help me out Skip those errors.
 

Attachments

  • origin copy.zip
    44.1 KB · Views: 66
  • Decompiled Using Refs.txt method.zip
    117.4 KB · Views: 134

RehabMan

Moderator
Joined
May 2, 2012
Messages
184,100
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Here is my Clover Extracted Origin folder, Please help me out Skip those errors.

The error you have is covered in post #1.
Please read it carefully.
 
Joined
Jul 25, 2013
Messages
17
Motherboard
ASUS Z170-P
CPU
i7-6700
Graphics
GTX 970
Mobile Phone
  1. iOS
The error you have is covered in post #1.
Please read it carefully.
Fixed as u said already using ACPI 6.1 but I cannot fix the $end of premature file error, Please help me fix it . Please look at the .dsl attached in the post 3,095
 
Joined
Dec 18, 2013
Messages
487
Motherboard
Lenovo Yoga C740
CPU
i7-10510U
Graphics
Intel UHD Graphics
Mac
  1. MacBook Air
  2. MacBook Pro
Mobile Phone
  1. Android
In the "Common Patches" section, does the patching order matters? For example, are the results of patching Patch A and then Patch B the same as those of patching Patch B and then Patch A?
My approach is to apply the patches as they are listed here. Mr. RehabMan always says "Read the guide very carefully. Again!". So I ended up following every word as written.
 
Joined
Jan 15, 2016
Messages
56
Motherboard
Acer Aspire 7 A717-72G
CPU
i7-8750H
Graphics
UHD 630/GTX1060
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Fixed as u said already using ACPI 6.1 but I cannot fix the $end of premature file error, Please help me fix it . Please look at the .dsl attached in the post 3,095
Decompile your DSDT and SSDTs with iasl -da -dl DSDT.aml SSDT-*.aml


390951

That is the fix for the first two errors:

Before:
Code:
                If (LEqual (PM6H, One))
                {
                    CreateBitField (BUF0, \_SB.PCI0._Y0C._RW, ECRW)  // _RW_: Read-Write Status
                    Store (Zero, ECRW (If (PM0H)
                            {
                                CreateDWordField (BUF0, \_SB.PCI0._Y0D._LEN, F0LN)  // _LEN: Length
                                Store (Zero, F0LN)
                            }))
                }
After:
Code:
                If (LEqual (PM6H, One))
                {
                    CreateBitField (BUF0, \_SB.PCI0._Y0C._RW, ECRW)  // _RW_: Read-Write Status
                    Store (Zero, ECRW) If (PM0H)
                            {
                                CreateDWordField (BUF0, \_SB.PCI0._Y0D._LEN, F0LN)  // _LEN: Length
                                Store (Zero, F0LN)
                            }
                }

Then you have to fix the last error:

390952

From:
Code:
    Method (ADBG, 1, Serialized)
    {
        If (CondRefOf (MDBG))
        {
            Return (MDBG)
            Arg0
        }

        Return (Zero)
    }

To:
Code:
    Method (ADBG, 1, Serialized)
    {
        If (CondRefOf (MDBG))
        {
            Store (Arg0, MDBG)
            Return
        }

        Return (Zero)
    }

Result:
390954

As you can see your errors are described in post #1.
Please read carefully.
 
Joined
Jul 25, 2013
Messages
17
Motherboard
ASUS Z170-P
CPU
i7-6700
Graphics
GTX 970
Mobile Phone
  1. iOS
Decompile your DSDT and SSDTs with iasl -da -dl DSDT.aml SSDT-*.aml


View attachment 390951
That is the fix for the first two errors:

Before:
Code:
                If (LEqual (PM6H, One))
                {
                    CreateBitField (BUF0, \_SB.PCI0._Y0C._RW, ECRW)  // _RW_: Read-Write Status
                    Store (Zero, ECRW (If (PM0H)
                            {
                                CreateDWordField (BUF0, \_SB.PCI0._Y0D._LEN, F0LN)  // _LEN: Length
                                Store (Zero, F0LN)
                            }))
                }
After:
Code:
                If (LEqual (PM6H, One))
                {
                    CreateBitField (BUF0, \_SB.PCI0._Y0C._RW, ECRW)  // _RW_: Read-Write Status
                    Store (Zero, ECRW) If (PM0H)
                            {
                                CreateDWordField (BUF0, \_SB.PCI0._Y0D._LEN, F0LN)  // _LEN: Length
                                Store (Zero, F0LN)
                            }
                }

Then you have to fix the last error:

View attachment 390952
From:
Code:
    Method (ADBG, 1, Serialized)
    {
        If (CondRefOf (MDBG))
        {
            Return (MDBG)
            Arg0
        }

        Return (Zero)
    }

To:
Code:
    Method (ADBG, 1, Serialized)
    {
        If (CondRefOf (MDBG))
        {
            Store (Arg0, MDBG)
            Return
        }

        Return (Zero)
    }

Result:
View attachment 390954
As you can see your errors are described in post #1.
Please read carefully.
Yea , i have fixed the first two errors but I can’t able to fix the last one, now am clear and will try once i get home, thank you so much for your help !!!
 
Top