Contribute
Register

Need help patching/compiling my DSDT

Joined
Jan 10, 2014
Messages
1
Mac
Classic Mac
Mobile Phone
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: 172

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,061
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
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)
                            }
                }
 
Joined
May 10, 2012
Messages
55
Motherboard
CF31L-1
CPU
I3 M-350
Graphics
Ironlake
Mac
  1. Mac Pro
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
 
Top