Contribute
Register

[Guide] Patching LAPTOP DSDT/SSDTs

Please help me i have DSDT my system and it have a ton of erors :

Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20161222-32
Copyright (c) 2000 - 2016 Intel Corporation

dsdt-modified.dsl 6019: _T_0 = Local1
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 6020: If ((_T_0 == Zero))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 6024: ElseIf ((_T_0 == 0xFF))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 6030: _T_1 = Local3
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6031: If ((_T_1 == Zero))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6035: ElseIf ((_T_1 == One))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6039: ElseIf ((_T_1 == 0x02))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6043: ElseIf ((_T_1 == 0x03))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6047: ElseIf ((_T_1 == 0x04))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6051: ElseIf ((_T_1 == 0x05))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6055: ElseIf ((_T_1 == 0x06))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6059: ElseIf ((_T_1 == 0x07))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6063: ElseIf ((_T_1 == 0x08))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6068: _T_2 = Local4
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6069: If ((_T_2 == Zero))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6073: ElseIf ((_T_2 == One))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6077: ElseIf ((_T_2 == 0x02))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6081: ElseIf ((_T_2 == 0x03))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6085: ElseIf ((_T_2 == 0x04))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6089: ElseIf ((_T_2 == 0x05))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6093: ElseIf ((_T_2 == 0x06))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6097: ElseIf ((_T_2 == 0x07))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6101: ElseIf ((_T_2 == 0x08))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6105: ElseIf ((_T_2 == 0x09))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 7457: _T_0 = ToInteger (Arg2)
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7458: If ((_T_0 == Zero))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7460: _T_1 = ToInteger (Arg1)
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7461: If ((_T_1 == One))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7476: ElseIf ((_T_0 == One))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7480: ElseIf ((_T_0 == 0x02))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7503: _T_0 = ToInteger (Arg2)
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7504: If ((_T_0 == Zero))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7506: _T_1 = ToInteger (Arg1)
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7507: If ((_T_1 == One))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7522: ElseIf ((_T_0 == One))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7526: ElseIf ((_T_0 == 0x02))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7717: _T_0 = ToInteger (Arg2)
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7718: If ((_T_0 == Zero))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7720: _T_1 = ToInteger (Arg1)
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7721: If ((_T_1 == One))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7736: ElseIf ((_T_0 == One))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7740: ElseIf ((_T_0 == 0x02))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7763: _T_0 = ToInteger (Arg2)
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7764: If ((_T_0 == Zero))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7766: _T_1 = ToInteger (Arg1)
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7767: If ((_T_1 == One))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7782: ElseIf ((_T_0 == One))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7786: ElseIf ((_T_0 == 0x02))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 8810: _T_0 = ToInteger (Arg2)
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 8811: If ((_T_0 == Zero))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 8813: _T_1 = ToInteger (Arg1)
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 8814: If ((_T_1 == One))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 8837: ElseIf ((_T_0 == One))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 8841: ElseIf ((_T_0 == 0x02))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 8854: ElseIf ((_T_0 == 0x03))
Error 6084 - Object does not exist ^ (_T_0)

ASL Input: dsdt-modified.dsl - 10460 lines, 356818 bytes, 4549 keywords

Compilation complete. 55 Errors, 4 Warnings, 10 Remarks, 176 Optimizations
 
Please help me i have DSDT my system and it have a ton of erors :

Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20161222-32
Copyright (c) 2000 - 2016 Intel Corporation

dsdt-modified.dsl 6019: _T_0 = Local1
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 6020: If ((_T_0 == Zero))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 6024: ElseIf ((_T_0 == 0xFF))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 6030: _T_1 = Local3
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6031: If ((_T_1 == Zero))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6035: ElseIf ((_T_1 == One))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6039: ElseIf ((_T_1 == 0x02))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6043: ElseIf ((_T_1 == 0x03))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6047: ElseIf ((_T_1 == 0x04))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6051: ElseIf ((_T_1 == 0x05))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6055: ElseIf ((_T_1 == 0x06))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6059: ElseIf ((_T_1 == 0x07))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6063: ElseIf ((_T_1 == 0x08))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 6068: _T_2 = Local4
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6069: If ((_T_2 == Zero))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6073: ElseIf ((_T_2 == One))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6077: ElseIf ((_T_2 == 0x02))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6081: ElseIf ((_T_2 == 0x03))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6085: ElseIf ((_T_2 == 0x04))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6089: ElseIf ((_T_2 == 0x05))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6093: ElseIf ((_T_2 == 0x06))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6097: ElseIf ((_T_2 == 0x07))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6101: ElseIf ((_T_2 == 0x08))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 6105: ElseIf ((_T_2 == 0x09))
Error 6084 - Object does not exist ^ (_T_2)

dsdt-modified.dsl 7457: _T_0 = ToInteger (Arg2)
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7458: If ((_T_0 == Zero))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7460: _T_1 = ToInteger (Arg1)
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7461: If ((_T_1 == One))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7476: ElseIf ((_T_0 == One))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7480: ElseIf ((_T_0 == 0x02))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7503: _T_0 = ToInteger (Arg2)
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7504: If ((_T_0 == Zero))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7506: _T_1 = ToInteger (Arg1)
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7507: If ((_T_1 == One))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7522: ElseIf ((_T_0 == One))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7526: ElseIf ((_T_0 == 0x02))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7717: _T_0 = ToInteger (Arg2)
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7718: If ((_T_0 == Zero))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7720: _T_1 = ToInteger (Arg1)
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7721: If ((_T_1 == One))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7736: ElseIf ((_T_0 == One))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7740: ElseIf ((_T_0 == 0x02))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7763: _T_0 = ToInteger (Arg2)
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7764: If ((_T_0 == Zero))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7766: _T_1 = ToInteger (Arg1)
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7767: If ((_T_1 == One))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 7782: ElseIf ((_T_0 == One))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 7786: ElseIf ((_T_0 == 0x02))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 8810: _T_0 = ToInteger (Arg2)
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 8811: If ((_T_0 == Zero))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 8813: _T_1 = ToInteger (Arg1)
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 8814: If ((_T_1 == One))
Error 6084 - Object does not exist ^ (_T_1)

dsdt-modified.dsl 8837: ElseIf ((_T_0 == One))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 8841: ElseIf ((_T_0 == 0x02))
Error 6084 - Object does not exist ^ (_T_0)

dsdt-modified.dsl 8854: ElseIf ((_T_0 == 0x03))
Error 6084 - Object does not exist ^ (_T_0)

ASL Input: dsdt-modified.dsl - 10460 lines, 356818 bytes, 4549 keywords

Compilation complete. 55 Errors, 4 Warnings, 10 Remarks, 176 Optimizations

No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 
Replace:
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)
                            }))
                }

With:
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)
                            }

Hi Rehabman.
Just a quick note:
Your current fix here doesn't work, and I would like for you to update to this code instead:
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)
                            }
                }

Cheers
 
Hi Rehabman.
Just a quick note:
Your current fix here doesn't work, and I would like for you to update to this code instead:
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)
                            }
                }

Cheers

Your proposal is wrong.
 
Your proposal is wrong.

Its your own answer:

Very common code lately (bug in iasl disassembler):
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)
                            }))
                }

Obvious fix:
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)
                            }
                }

https://www.tonymacx86.com/threads/need-help-patching-compiling-my-dsdt.213069/

Edit: Why both code works? I can't explain myself why :(
 
Last edited:
Its your own answer:

My original answer was later corrected to the answer now in the guide.
The second if is not to be nested in the first.

The correct edit is in post #1.
 
Rehabman, I am done with with extracting, disassembling and compiling of my laptop dadt and ssdt but when copy and paste them in the EFI/Clover/Acpi/patched folder and edit my config.plist, set DropOem= true and check for Automerge=true. Still there is no changes with laptop. Sleep does not work nothing works what should
My laptop is Acer aspire v3-572pg with Intel HD 4400, and Nvidea 840m graphics.
 

Attachments

  • config.plist
    15.4 KB · Views: 251
  • SSDT-0.dsl
    28.6 KB · Views: 196
  • SSDT-2.dsl
    15.4 KB · Views: 139
  • SSDT-3.dsl
    106.3 KB · Views: 138
  • SSDT-4.dsl
    52.9 KB · Views: 183
  • SSDT-1.dsl
    7.5 KB · Views: 205
Last edited:
My original answer was later corrected to the answer now in the guide.
The second if is not to be nested in the first.

The correct edit is in post #1.
will you help me with my dsdt, config.plist and ssdt.
 
Rehabman, I am done with with extracting, disassembling and compiling of my laptop dadt and ssdt but when copy and paste them in the EFI/Clover/Acpi/patched folder and edit my config.plist, set DropOem= true and check for Automerge=true. Still there is no changes with laptop. Sleep does not work nothing works what should
My laptop is Acer aspire v3-572pg with Intel HD 4400, and Nvidea 840m graphics.

You should not be using DropOem=true.
Use AutoMerge=true and place only the DSDT+SSDTs requiring patches in ACPI/patched.
Read post #1, "Recommended configurations".
 
Hi,

I can't seem to clear this (see pic) error with the suggested syntax patches. I've tried applying suggested patches one by one first and the trying the fix PARSEOP patches but it doesn't seem to work.

i'd like to patch this DSDT to get voodooI2C working. One way i've been able to clear the error is by deleting that whole block of code but i'm a newb and i'm not sure if that is right.

so what would be the best way of clearing this error?

Thanks
 

Attachments

  • Screen Shot 2018-03-02 at 5.44.19 PM.png
    Screen Shot 2018-03-02 at 5.44.19 PM.png
    288.2 KB · Views: 154
  • DSDT.dsl
    895.6 KB · Views: 201
Back
Top