Contribute
Register

[Guide] How to patch DSDT for working battery status

Hello!

I'm having difficulties patching my DSDT to enable battery status monitoring on my laptop.

I would be grateful for clues regarding that DSDT patch. Please refer to attached files for original DSDT (Clover F4 dump) and my modified DSDT (brightness keys working, all EC0 occurrences changed to EC).
Hi @raqall, I believe that this is not only a you problem. I'm also in the same situation after updating OpenCore to 0.5.6. Looking for some help on SSDT-BAT.dsl patch for coffee lake if anyone can. Thank you.
 
Hi, I am having trouble patching my dsdt.
I would need some help.
Greetings and thank you.
 

Attachments

  • Acer Aspire E15 E5-573.zip
    635 KB · Views: 67
I am having trouble patching my dsdt.
Hi, your BAT1 _STA methods is returning 0xf, that's no good...

Schermata 2020-04-01 alle 18.45.33.png
It must be 0x1f.

I suggest to patch your _STA method from
Code:
Method (_STA, 0, NotSerialized)  // _STA: Status
{
    If (ECOK)
    {
        If (^^PCI0.LPCB.EC0.MBTS)
        {
             Return (0x1F)
        }
        Else
        {
            Return (0x0F)
        }
    }
    Else
    {
        Return (0x0F)
    }
}
to
Code:
Method (_STA, 0, NotSerialized)  // _STA: Status
{
    If (ECOK)
    {
        Return (0x1F)
    }
    Else
    {
        Return (0x0F)
    }
}
Reboot and look at IOReg (as per above picture), _STA must be 0x1f
After that, you can test if your battery patch is working.
 
OK thank you very much.
I'm going to try and tell you.

I've tried it
but I still get 0xf
 
Last edited:
0x1f ok
I put two images of how it looks with different kexts.
A Voodoobattery and another ACPIBatteryManager
If you could help me configure the dsdt, I would appreciate it.
Anyway thank you very much.
 

Attachments

  • Captura de pantalla 2020-04-02 a las 20.07.57.png
    Captura de pantalla 2020-04-02 a las 20.07.57.png
    819.9 KB · Views: 102
  • Captura de pantalla 2020-04-02 a las 20.10.43.png
    Captura de pantalla 2020-04-02 a las 20.10.43.png
    873.6 KB · Views: 98
0x1f ok
I put two images of how it looks with different kexts.
A Voodoobattery and another ACPIBatteryManager
If you could help me configure the dsdt, I would appreciate it.
Anyway thank you very much.
As per rules, please update your hardware profile to allow others to help you easier

please read the faq for proper hardware profile setup:
 
Updated
Thank you
 
If you could help me
ECOK cannot be 0 as it is in your case...
Try this
Code:
Method (_STA, 0, NotSerialized)  // _STA: Status
{
    If (LEqual (ECOK, Zero))
    {
        Store (One, ECOK)
    }
    Return (0x1F)
}
I suggest to use ACPIBatteryManager

Always attach correct problem reporting files as per guide
 
Hello again.
everything ok except a problem
it restarts after 2 minutes if I don't use it.
 
Back
Top