Contribute
Register

[Guide] How to patch DSDT for working battery status

Dear RehabMan, help me please to solve this problem. The problem is the battery but rather the charge comes to 84-85% and stops, does not reach 100%. Not very strong in the DSDT, so please help. The model of the laptop in the signature. DSDT is also attached. Thank you.

Read post #1, "Problem Reporting".
 
You can't use RefOf with the result of B1B2.
Constructs such as ECRD(RefOf(B1DC)), need to be translated to just B1B2(DC10,DC11).

The compiler will help you find errors... work on each field one at a time.


I correctly understood I need this code
Store (Divide (Multiply (ECRD (RefOf (B1DC)), ECRD (RefOf (B1DV))), 0x03E8, ), Index (BPK1, 0x02))
replaced by
Store (Divide (Multiple) (ECRD (B1B2 (DC10, DC11))), ECRD (RefOf (B1B2 (DV10, DV11))), 0x03E8,), Index (BPK1, 0x02))
 
I correctly understood I need this code
Store (Divide (Multiply (ECRD (RefOf (B1DC)), ECRD (RefOf (B1DV))), 0x03E8, ), Index (BPK1, 0x02))
replaced by
Store (Divide (Multiple) (ECRD (B1B2 (DC10, DC11))), ECRD (RefOf (B1B2 (DV10, DV11))), 0x03E8,), Index (BPK1, 0x02))

No.
As I wrote... replace with:
Store (Divide (Multiply (B1B2(DC10, DC11), B1B2(DV10, DV11)), 0x03E8, ), Index (BPK1, 0x02))
 
No.
As I wrote... replace with:
Store (Divide (Multiply (B1B2(DC10, DC11), B1B2(DV10, DV11)), 0x03E8, ), Index (BPK1, 0x02))

And so it is possible or it will not be correct

Store (Divide (Multiply (ECRD (RefOf (DC10)), ECRD (RefOf (DV10))), 0x03E8, ), Index (BPK1, 0x02))

Store (Divide (Multiply (ECRD (RefOf (DC11)), ECRD (RefOf (DV11))), 0x03E8, ), Index (BPK1, 0x02))
 
And so it is possible or it will not be correct

Store (Divide (Multiply (ECRD (RefOf (DC10)), ECRD (RefOf (DV10))), 0x03E8, ), Index (BPK1, 0x02))

Store (Divide (Multiply (ECRD (RefOf (DC11)), ECRD (RefOf (DV11))), 0x03E8, ), Index (BPK1, 0x02))

Wrong.
Read post #3845 and #3841.
 
I understood. Just decided to be wiser. Sorry for the extra time you spent on me.
Thank you.

FYI: I would be worth the effort for you to read the ACPI spec regarding RefOf and DerefOf.
 
Is there DSDT patch available for Skylake processor ?
 
Ca
I understood. Just decided to be wiser. Sorry for the extra time you spent on me.
Thank you.
Krennn, Can you attach you corrected DSDT patch, yours one is skylake, matches with mine.
 
Back
Top