Contribute
Register

[Guide] How to patch DSDT for working battery status

Joined
Feb 17, 2020
Messages
6
Motherboard
Acer E15 E5-573-33K9
CPU
1,7 GHz Intel Core i3 de doble núcleo
Graphics
Intel HD Graphics 4400
Hi, I am having trouble patching my dsdt.
I would need some help.
Greetings and thank you.
 

Attachments

Joined
Nov 10, 2015
Messages
114
Motherboard
Clevo 970EF Defiance VI - OpenCore
CPU
i7-8750H/HM370
Graphics
UHD630, RTX 2070, 1920x1080
Mac
iMac, MacBook Pro, Mac mini
Classic Mac
128K, iMac, PowerBook
Mobile Phone
iOS
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.
 
Joined
Feb 17, 2020
Messages
6
Motherboard
Acer E15 E5-573-33K9
CPU
1,7 GHz Intel Core i3 de doble núcleo
Graphics
Intel HD Graphics 4400
OK thank you very much.
I'm going to try and tell you.

I've tried it
but I still get 0xf
 
Last edited:
Joined
Nov 10, 2015
Messages
114
Motherboard
Clevo 970EF Defiance VI - OpenCore
CPU
i7-8750H/HM370
Graphics
UHD630, RTX 2070, 1920x1080
Mac
iMac, MacBook Pro, Mac mini
Classic Mac
128K, iMac, PowerBook
Mobile Phone
iOS
Joined
Feb 17, 2020
Messages
6
Motherboard
Acer E15 E5-573-33K9
CPU
1,7 GHz Intel Core i3 de doble núcleo
Graphics
Intel HD Graphics 4400
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

Feartech

Moderator
Joined
Aug 3, 2013
Messages
17,739
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
iMac
Mobile Phone
iOS
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:
 
Joined
Feb 17, 2020
Messages
6
Motherboard
Acer E15 E5-573-33K9
CPU
1,7 GHz Intel Core i3 de doble núcleo
Graphics
Intel HD Graphics 4400
Updated
Thank you
 
Joined
Nov 10, 2015
Messages
114
Motherboard
Clevo 970EF Defiance VI - OpenCore
CPU
i7-8750H/HM370
Graphics
UHD630, RTX 2070, 1920x1080
Mac
iMac, MacBook Pro, Mac mini
Classic Mac
128K, iMac, PowerBook
Mobile Phone
iOS
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
 
Joined
Feb 17, 2020
Messages
6
Motherboard
Acer E15 E5-573-33K9
CPU
1,7 GHz Intel Core i3 de doble núcleo
Graphics
Intel HD Graphics 4400
Hello again.
everything ok except a problem
it restarts after 2 minutes if I don't use it.
 
Top