Contribute
Register

[Guide] Patching LAPTOP DSDT/SSDTs

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: 80
  • Decompiled Using Refs.txt method.zip
    117.4 KB · Views: 152
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.
 
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
 
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.
 
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.
 
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 !!!
 
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:
 
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.
 
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:
 
Back
Top