Contribute
Register

Need help patching/compiling my DSDT

Status
Not open for further replies.
Joined
Jan 10, 2014
Messages
1
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. 0
Hi I am trying to apply the "Brightness Fix" patch to my DSDT, but there is come errors when trying to compile it.
I've tried using the refs.txt, and googling the errors but I can't seem to find the answers.

These are the three errors I am getting, even when i try recompiling the file with no changes made:
3944, 6126, syntax error, unexpected PARSEOP_IF, expecting PARSEOP_CLOSE_PAREN or ','
3948, 6126, syntax error, unexpected PARSEOP_CLOSE_PAREN
9196, 6126, syntax error, unexpected PARSEOP_SCOPE, expecting $end and premature End-Of-File

My device is a Dell Inspiron 13 7353, i7-6500u, with Clover.

Any help is appreciated.
Thanks
 

Attachments

  • RehabMan.zip
    49 KB · Views: 248
Hi I am trying to apply the "Brightness Fix" patch to my DSDT, but there is come errors when trying to compile it.
I've tried using the refs.txt, and googling the errors but I can't seem to find the answers.

These are the three errors I am getting, even when i try recompiling the file with no changes made:
3944, 6126, syntax error, unexpected PARSEOP_IF, expecting PARSEOP_CLOSE_PAREN or ','
3948, 6126, syntax error, unexpected PARSEOP_CLOSE_PAREN
9196, 6126, syntax error, unexpected PARSEOP_SCOPE, expecting $end and premature End-Of-File

My device is a Dell Inspiron 13 7353, i7-6500u, with Clover.

Any help is appreciated.
Thanks

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)
                            }
                }
 
This one gives me 3 errors:
Code:
//
// SSDT to reset RHUB devices on XHCI controllers to force hardware querying of ports
//
// WARNING: May conflict with existing SSDT-USB-Reset!  Verify names and paths before
//          merging!
//
DefinitionBlock ("", "SSDT", 2, "CORP", "RHBReset", 0x00001000)
{
    /*
     * Start copying here if you're adding this info to an existing SSDT-USB-Reset!
     */

    External (_SB.PCI0.IOU1.PXS2.APPLEASMEDIA3142USBXHCI, DeviceObj)

    Scope(_SB.PCI0.IOU1.PXS2.APPLEASMEDIA3142USBXHCI)
    {
        Method (_STA, 0, NotSerialized)  // _STA: Status
        {
            If (_OSI ("Darwin"))
            {
                Return (Zero)
            }
            Else
            {
                Return (0x0F)
            }
        }
    }

    /*
     * End copying here if you're adding this info to an SSDT-USB-Reset!
     */
}
1608495104639.png
 
Status
Not open for further replies.
Back
Top