Contribute
Register

[Guide] How to patch DSDT for working battery status

I'm pretty sure that the existing patch "HP G6 2221ss" will work for your laptop.

Please test and let me know...

I just applied the patch to my clean DSDT and tried to compile, I'm getting 80 errors. I'll sit down later and go through the errors properly and get back to you.
 
I just applied the patch to my clean DSDT and tried to compile, I'm getting 80 errors. I'll sit down later and go through the errors properly and get back to you.

I applied it to the DSDT you provided (after reverting what was an obvious edit). No errors...

Make sure you extract and disassemble your file again...
 
Asus T300LA dsdt.dsl attached

battery_ASUS-G75vw.txt

85 patches/85 changes

1 additional patch
Code:
into method label OLPM code_regex \(\\_SB\.PCI0\.LPCB\.EC0\.B0DC, replace_matched begin (B1B2(\\_SB.PCI0.LPCB.EC0.B0D0,\\_SB.PCI0.LPCB.EC0.B0D1), end;
 

Attachments

  • T300LA-DSDT.dsl.zip
    62.5 KB · Views: 56
Asus T300LA dsdt.dsl attached

battery_ASUS-G75vw.txt

85 patches/85 changes

1 additional patch
Code:
into method label OLPM code_regex \(\\_SB\.PCI0\.LPCB\.EC0\.B0DC, replace_matched begin (B1B2(\\_SB.PCI0.LPCB.EC0.B0D0,\\_SB.PCI0.LPCB.EC0.B0D1), end;

Thanks. Added.
 
I applied it to the DSDT you provided (after reverting what was an obvious edit). No errors...

Make sure you extract and disassemble your file again...

You were correct. I can confirm the patch works on my HP Pavilion 15-p199sa
 
You were correct. I can confirm the patch works on my HP Pavilion 15-p199sa

Added the comment reflecting support for that laptop in the HP G6 2221ss patch. Thanks!
 
@RehabMan

Hello, how to use your patches that already have been made by you available on your Github site?

By the way could you please look at HP 15-k301tu? Much appreciated.
 
Hi, I have a surface pro 3, and I used the patch from your repo but the battery status is not stable, it lose recognization randomly. So I start to dig into my DSDT.

I find a strange 16 bit field in my EC0 with name "PLSV".
It is not called inside EC0 device, but rather in a method in the root, where it is been named, read and written.
My question is for this situation do I need to patch it or not ? I don't know whether it is just a duplicate name, because they are in different scope. If it needs to be changed, what to do with the "Name" function.

there is a quote of the related code:
Code:
OperationRegion (ECMM, EmbeddedControl, Zero, 0x0100)
                        Field (ECMM, ByteAcc, Lock, Preserve)
                        {
                            ...
                            PLSV,   16,
Code:
OperationRegion (MBAR, SystemMemory, Add (ShiftLeft (\_SB.PCI0.MHBR, 0x0F), 0x5000), 0x1000)
    Name (PLSV, 0x8000)
    ...
    Method (SPL1, 0, Serialized)
    {
        ...
        Store (PPL1, PLSV)
    }
    Method (RPL1, 0, Serialized)
    {
        Store (PLSV, PPL1)
    }

Thank you in advance!
 
Hi, I have a surface pro 3, and I used the patch from your repo but the battery status is not stable, it lose recognization randomly. So I start to dig into my DSDT.

I find a strange 16 bit field in my EC0 with name "PLSV".
It is not called inside EC0 device, but rather in a method in the root, where it is been named, read and written.
My question is for this situation do I need to patch it or not ? I don't know whether it is just a duplicate name, because they are in different scope. If it needs to be changed, what to do with the "Name" function.

there is a quote of the related code:
Code:
OperationRegion (ECMM, EmbeddedControl, Zero, 0x0100)
                        Field (ECMM, ByteAcc, Lock, Preserve)
                        {
                            ...
                            PLSV,   16,
Code:
OperationRegion (MBAR, SystemMemory, Add (ShiftLeft (\_SB.PCI0.MHBR, 0x0F), 0x5000), 0x1000)
    Name (PLSV, 0x8000)
    ...
    Method (SPL1, 0, Serialized)
    {
        ...
        Store (PPL1, PLSV)
    }
    Method (RPL1, 0, Serialized)
    {
        Store (PLSV, PPL1)
    }

Thank you in advance!

Post native ACPI files (extract from Linux).
 
Back
Top