Contribute
Register

[Guide] How to patch DSDT for working battery status

Feartech

Moderator
Joined
Aug 3, 2013
Messages
29,055
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
  1. iMac
Mobile Phone
  1. iOS
Hello, I apologize in advance if my English is bad, the problem is that nothing has changed after the patch, it just starts up a little longer, Lenovo x240 laptop, I received the files through Clover f4 and parsed through iasl, also patched through MaciASL, saved, threw I patched it to the EFI / CLOVER / ACPI / folder, then rebooted the laptop and nothing has changed, it did not give any errors, what could be the problem?
zip and upload your EFI
 
Joined
Jul 10, 2022
Messages
1
Motherboard
Lenovo Yoga x380
CPU
i5 8265U
Graphics
UHD 620
This is my DSDT file and im trying to patch battery on lenovo X380 but whenever I do
into device label EC code_regex ERIB,\s+16, replace_matched begin ERI0,8,ERI1,8, end;
I get 1 patches, 0 changes and it also has 4 errors before I even patch anything and I'm not too sure whats happening? Some guidance would be appreciated
 

Attachments

  • DSDT.dsl
    1.1 MB · Views: 22
Joined
Sep 13, 2020
Messages
17
Motherboard
I didn't Read
CPU
the Rules!
Graphics
So, ignore me!
Mac
  1. MacBook Pro
wow I want to thank rehabman for this thread, I was getting AE_BAD_PARAMETER from my coreboot/tianocore osx mbp10,1 .. I was using the smbus hc in linux direct access which works fine in linux but in osx I had to switch back to BAT0 legacy.. in linux it was ok but in osx the dsdt even retail one kept giving me AE_BAD_PARAMETER.. while using the sbs0 and smb0 did not work it just keep timing out when polling for some reason. tried acid0001 also not work. thank you again, it will be impossible to have understood that it was caused by 8 bit problem and also the way to fix it by splitting the bytes
 
Joined
Jul 4, 2014
Messages
10
Motherboard
Gigabyte Z97X-UD5H
CPU
Intel-Core-i5-4690 - 3.50GHz
Graphics
intelHD 4600
Mac
  1. iMac
Mobile Phone
  1. Android
  2. iOS
Hi Rehabman

I managed to acquire another notebook and hackintoshed it as well.
however I cannot get the battery patch to work.

Please assist.

files attached

Regards

Theks
 

Attachments

  • HP-ProBook-450G2.zip
    556.1 KB · Views: 4

Feartech

Moderator
Joined
Aug 3, 2013
Messages
29,055
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
  1. iMac
Mobile Phone
  1. iOS
Hi Rehabman

I managed to acquire another notebook and hackintoshed it as well.
however I cannot get the battery patch to work.

Please assist.

files attached

Regards

Theks
ECEnabler.kext may work without the need to patching DSDT
 
Joined
Feb 22, 2020
Messages
182
Motherboard
Dell Precision M4700
CPU
i7-3740QM
Graphics
M4000
ECEnabler is generally useful even if it doesn't fix the battery. Can help reduce the number of patches needed to combine batteries, fix cycle counts, or other fixes. Any SSDTs you write can just access the full 16+ bit size field instead of having to break them up.
 
Joined
Jul 4, 2014
Messages
10
Motherboard
Gigabyte Z97X-UD5H
CPU
Intel-Core-i5-4690 - 3.50GHz
Graphics
intelHD 4600
Mac
  1. iMac
Mobile Phone
  1. Android
  2. iOS
ECEnabler.kext may work without the need to patching DSDT
Tried ECENabler.kext but battery still shows 1% and not charging.
 
Top