Contribute
Register

[Guide] How to patch DSDT for working battery status

Hi @RehabMan,

I'm not familiar with the DSDT/SSDT and ACPI :(
I tried installing catalina on my ThinkPad T490 for 2 weeks :( I finally succeeded! :headbang:
But my hackintosh does not show battery status (always 0% - not show on task bar), and HDIM not working too.
(everything else works ok, e.g.: ethernet, sound, usb, touchpad, backlight...)

I know that I have to make some patches, but I can't :(

Could you please help me? if not, never mind and please ignore me :)

Thank you so muchhhh,
Huy

P/S: Sorry for my English.
 

Attachments

  • Archive.zip
    4.7 MB · Views: 122
Last edited:
Hello, is it possible to patch my Dell 7720 for an 3rd-party 7800 mAh battery? I don't get any warnings, and in Mojave the battery menu item quits immediately.
 
Could you please help me?
Necessary files missing...
Carefully follow the below guide

... and your Clover/kext/other folder is not correctly setup.
You may need to remove the below kexts to avoid conflicts:
SMCBatteryManager.kext
SMCProcessor.kext
SMCSuperIO.kext
 
Last edited:
Necessary files missing...
Carefully follow the below guide

Hi @FreeJHack,
I have re-uploaded new file in attachment.
Minor note: when I run script gen_debug, it alway fail at "check internet connection" step, I must change testURL to "google.com"
Screenshot at Apr 13 11-27-43.png

Screenshot at Apr 13 11-28-50.png


... and your Clover/kext/other folder is not correctly setup.
You may need to remove the below kexts to avoid conflicts:
SMCBatteryManager.kext
SMCProcessor.kext
SMCSuperIO.kext
I removed them.

Thank you for your help.
Huy
 

Attachments

  • debug_13472.zip
    4.3 MB · Views: 114
@hh3003it, you have a lot ACPI errors.
Look at Kernel.log
You added patches without the required SSDT pair files:
change _OSI to XOSI, pair with SSDT-XOSI.aml
change Method(GPRW,2,N) to XPRW, pair with SSDT-GPRW.aml
change Method(_PTS,1,N) to ZPTS, pair with SSDT-PTSWAK.aml

I'm not familiar with the DSDT/SSDT and ACPI
DSDT/SSDT patching is necessary for your laptop, you should be familiar with below guide
 
@hh3003it, you have a lot ACPI errors.
Look at Kernel.log
You added patches without the required SSDT pair files:
change _OSI to XOSI, pair with SSDT-XOSI.aml
change Method(GPRW,2,N) to XPRW, pair with SSDT-GPRW.aml
change Method(_PTS,1,N) to ZPTS, pair with SSDT-PTSWAK.aml


DSDT/SSDT patching is necessary for your laptop, you should be familiar with below guide

Hi @FreeJHack,
I will try!! Thanks for your suggestion ;)
 
Can anyone help me how to get rid of this log error.
Screenshot 2020-04-17 at 09.54.55.png

I have OpenCore 0.57 - macOs 10.15.3 (19D2064) - G50-70
I only have hotpatches - i tried repeatedly to insert
Code:
#RehabMan: fixing BAT0._STA logic bug
into method label _STA parent_label BAT0 code_regex ([\s\S]*) replace_matched
begin
If(!ECON) { Return(0xf) }\n
%1
end;


I have no idea where to put that into SSDT-BATT.aml and whether this is the right method in my case.
Thanks in advance.
 

Attachments

  • debug_2847.zip
    3.6 MB · Views: 133
Last edited:
Hi, I'm having problems patching my DSDT to make battery indicator work on my surface pro 5.
I changed
Code:
Method (_STA, 0, NotSerialized)  // _STA: Status
{
    Return (0x0F)
}
to
Code:
Method (_STA, 0, NotSerialized)  // _STA: Status
{
    Return (0x1F)
}
And now I can successfully enter the MacOS with ACPIBatteryManager.
But the battery always shows 100% and Replace Now with an exclamation mark.
Because there is no EC in DSDT so I don't know what to do next.
I would need some help, Thanks a million.
屏幕快照 2020-04-18 16.34.39.png
1.jpg
2.jpg
3.jpg
 

Attachments

  • Archive.zip
    4.7 MB · Views: 124
  • DSDT.aml
    96.1 KB · Views: 165
Last edited:
Hi, I'm having problems patching my DSDT to make battery indicator work on my surface pro 5.
I changed
Code:
Method (_STA, 0, NotSerialized)  // _STA: Status
{
    Return (0x0F)
}
to
Code:
Method (_STA, 0, NotSerialized)  // _STA: Status
{
    Return (0x1F)
}
and now I can successfully enter the MacOX with ACPIBatteryManager.
But the battery always shows 100% and Replace Now with an exclamation mark.
Because there is no EC in DSDT so I don't know what to do next.
I would need some help, Thanks a million.
View attachment 463344View attachment 463345View attachment 463346View attachment 463348
remove SMC* kexts from clover/kexts/other as they don't work with FakeSMC

or remove FakeSMC* and ACPIBatteryManager.kext and install VirtualSMC.kext
 
Back
Top