Contribute
Register

Unmodified DSDT.dsl compile error

Status
Not open for further replies.
Joined
Oct 16, 2012
Messages
4
Motherboard
Lenovo T470p (Clover)
CPU
i7 7700HQ/QM175
Graphics
Intel HD 630 / NVIDIA GeForce 940MX, 1920x1080
Mobile Phone
  1. iOS
Hello,

I'm unable to patch my DSDT. I've dumped the native SSDT/DSDT files using F4 in Clover and then disassembled them using the latest iasl from RehabMan's bitbucket repo using the command

iasl -da -dl DSDT.aml SSDT*.aml

When I open the disassembled DSDT.dsl in the latest MaciASL also from RehabMan's repo and try to compile it, i get the following error:

Screen Shot 2018-01-04 at 13.33.17.png


Did anybody met the same problem? I'm curious how to fix it. Thanks a lot!
 

Attachments

  • DSDT.dsl
    908.2 KB · Views: 238
Hello,

I'm unable to patch my DSDT. I've dumped the native SSDT/DSDT files using F4 in Clover and then disassembled them using the latest iasl from RehabMan's bitbucket repo using the command

iasl -da -dl DSDT.aml SSDT*.aml

When I open the disassembled DSDT.dsl in the latest MaciASL also from RehabMan's repo and try to compile it, i get the following error:

View attachment 303531


Did anybody met the same problem? I'm curious how to fix it. Thanks a lot!

The fix is obvious.
Change:
Code:
    Name (SS3, One)
    One
    Name (SS4, One)
    One

To:
Code:
    Name (SS3, One)
    //One
    Name (SS4, One)
    //One

Then...
From:
Code:
    External (BNUM, UnknownObj)    // (from opcode)

To:
Code:
//    External (BNUM, UnknownObj)    // (from opcode)
 
You're absolutely right.

There's a prepared patch for T470p battery status (I'm not the author, just found it on this forum).

If anyone needs a working battery status, you can patch your DSDT with the attached "T470p-battery.txt".

Before compilation, search the disassembled DSDT file for "HWAC" and replace the line

Store (\_SB.PCI0.LPCB.EC.HWAC, Local0)

With:

Store (B1B2 (\_SB.PCI0.LPCB.EC.WAC0, \_SB.PCI0.LPCB.EC.WAC1), Local0)



Thanks a lot for your time, RehabMan!!!
 

Attachments

  • T470p-battery.txt
    4.6 KB · Views: 223
You're absolutely right.

There's a prepared patch for T470p battery status (I'm not the author, just found it on this forum).

If anyone needs a working battery status, you can patch your DSDT with the attached "T470p-battery.txt".

Before compilation, search the disassembled DSDT file for "HWAC" and replace the line

Store (\_SB.PCI0.LPCB.EC.HWAC, Local0)

With:

Store (B1B2 (\_SB.PCI0.LPCB.EC.WAC0, \_SB.PCI0.LPCB.EC.WAC1), Local0)



Thanks a lot for your time, RehabMan!!!

There is likely an existing patch already in my laptop repo for your battery.
No need for a new one.
 
Status
Not open for further replies.
Back
Top