Contribute
Register

[Guide] Patching LAPTOP DSDT/SSDTs

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,075
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
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
18
Motherboard
ASUS Z170-P
CPU
i7-6700
Graphics
GTX 970
Mobile Phone
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
354
Motherboard
Lenovo Yoga 910
CPU
i7-7500U
Graphics
UHD 620
Mac
MacBook Pro
Mobile Phone
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
66
Motherboard
Acer Aspire 7 A717-72G
CPU
i7-8750H
Graphics
UHD 630/GTX1060
Mac
MacBook Pro
Mobile Phone
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
18
Motherboard
ASUS Z170-P
CPU
i7-6700
Graphics
GTX 970
Mobile Phone
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 !!!
 
Joined
Jul 25, 2013
Messages
18
Motherboard
ASUS Z170-P
CPU
i7-6700
Graphics
GTX 970
Mobile Phone
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.
Whoooo !!! Yeahhh !!! it worked, Thank you so much. Appreciated :headbang:
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,075
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
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
Post #3095 .dsl has incorrect/failed patches applied.
Check for error free compilation after each edit.
 
Joined
Jul 25, 2013
Messages
18
Motherboard
ASUS Z170-P
CPU
i7-6700
Graphics
GTX 970
Mobile Phone
iOS
Post #3095 .dsl has incorrect/failed patches applied.
Check for error free compilation after each edit.
Yeah, Looked into it !! Made the Right Correction and now it's fine :headbang:

Thank you so much for your help :thumbup:
 
Top