Jump to content

Problem DSDT Lenovo ThinkPad Yoga S1 Battery Fix


jarek1100
 Share

7 posts in this topic

Recommended Posts

On line 8430-8431:

Return (MDBG)
 Arg0

that's not a correct statement. it should be:

Store (Arg0, MDBG)
Return

and on line 8461:

    Method (HRPR, 0, NotSerialized)
    {
        OperationRegion (HRPE, SystemMemory, \_GPE.MMTB (0x04), Field (HRPE, DWordAcc, Lock, Preserve)
            {
                VDPC,   32
            })

should be

   Method (HRPR, 0, NotSerialized)
    {
        OperationRegion (HRPE, SystemMemory, \_GPE.MMTB, 0x04)
        Field (HRPE, DWordAcc, Lock, Preserve)
            {
                VDPC,   32
            }

fixed version attached

DSDT.aml.zip

Link to comment
Share on other sites

On line 8430-8431:

Return (MDBG)
 Arg0
that's not a correct statement. it should be:

Store (Arg0, MDBG)
Return

 

No.

 

MDBG is actually a method that takes a single argument.

You would need to change the External declaration appropriately:

External (MDBG, MethodObj)
And fix the code in ADBG:

Return(MDBG(Arg0))
You can use the iasl -fe option (during disassembly) and provide it with a refs.txt:

External(MDBG, MethodObj, 1)
It will then never have that issue...

 

Or, since we know that CondRefOf(MDBG) is always false, you can simply remove the code within the CondRefOf block, such that ADBG reads:

    Method (ADBG, 1, Serialized)
    {
        Return (Zero)
    }
Link to comment
Share on other sites

 Share

×
×
  • Create New...