Contribute
Register

<< Solved >> OpenCore battery patch

Joined
Feb 22, 2020
Messages
166
Motherboard
Dell Precision M4700
CPU
i7-3740QM
Graphics
M4000
@tingyichen

I'm not yet sure why your system tripped up on _STA, since it only uses an 8 bit sized field inside the if-statement. I now patched _BST and _BIF by creating a custom SSDT-BATT, please give this a try. If it still trips up, re-attach the *current* output of Hackintool from boot, since at least EC should have changed to H_EC inside the error log. I just want to see things change and apply.
I think it can happen if AppleACPIEC hasn't attached yet? Possibly? I'm not quite sure tbh.
 
Joined
Jan 19, 2021
Messages
12
Motherboard
Funhouse F10 MPro (OpenCore)
CPU
i5-10110U
Graphics
UHD 620, 2256x1504
Mobile Phone
  1. Android
I think it can happen if AppleACPIEC hasn't attached yet? Possibly? I'm not quite sure tbh.
ioreg shows ACPIEC already attached to H_EC device..
 
Last edited:
Joined
Feb 22, 2020
Messages
166
Motherboard
Dell Precision M4700
CPU
i7-3740QM
Graphics
M4000
ioreg shows ACPIEC already attached to H_EC device..
This would be during early boot, when _STA is being initially read. I don't think SMCBatteryManager/ACPIBatteryManager care though since they both check the ACPI Plane in IORegistry instead of the IOService plane, which should show devices even if _STA errors out. They will check _STA themselves later during the boot process, when AppleACPIEC should've attached.
 
Joined
Jan 19, 2021
Messages
12
Motherboard
Funhouse F10 MPro (OpenCore)
CPU
i5-10110U
Graphics
UHD 620, 2256x1504
Mobile Phone
  1. Android
This would be during early boot, when _STA is being initially read. I don't think SMCBatteryManager/ACPIBatteryManager care though since they both check the ACPI Plane in IORegistry instead of the IOService plane, which should show devices even if _STA errors out. They will check _STA themselves later during the boot process, when AppleACPIEC should've attached.
According to original dsdt,BAT0 _STA will return 0x0 when it fails to read EC region.I tried to hook it and return 0x1f always,still can't read battery percentage,same as before.
 
Joined
Mar 8, 2017
Messages
763
Motherboard
Dell XPS 9700 4K (OpenCore)
CPU
i7-10875H
Graphics
UHD 630, 3840x2400
Mobile Phone
  1. Android
@tingyichen

How did you check that _STA actually returned 0xF? Did you ensure in IOReg? Just wanting to make sure.
 
Joined
Sep 9, 2017
Messages
11
Motherboard
HP Omen > Need model # > See Rules!
CPU
i7-9750H/H300M
Graphics
UHD 620
Mac
  1. iMac
  2. Mac mini
  3. Mac Pro
Classic Mac
  1. Apple
Mobile Phone
  1. Android
  2. iOS
hey im getting non hp battery eroor on boot maschine isnt booting without adpter
battery status is there but isnt correct battery isnt charging
THE SPECS:
- CPU : Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
- iGPU: Intel CoffeeLake-H GT2 [UHD Graphics 630] 1536MB
- dGPU : Nvdia GTX 1650Ti Disabled
- RAM : 2x 16GB DDR4 2667MHz
- Audio Codec : Realtek ALC 295
- Touchpad : Synaptics SMBus Touchpad
- Ethernet : Realtek Gaming GBe Lan RTL 8111
- Wifi/Bluetooth : Intel® Wireless-AC 9560 802.11b Wi-Fi® and Bluetooth®
- Display: 1x 1920x1080@60Hz
- Storage : 1x WD S550 Blue 500GB; 1x Toshiba 1 TB SATA HDD
- Bootloader : OpenCore r0.7.6
- macOS Version : macOS Big Sur Version 11.6.2 (Build 20G314)

Like



Comment
 

Attachments

  • Send me Ankurs-MBP.zip
    26.9 MB · Views: 28
Joined
Jan 19, 2021
Messages
12
Motherboard
Funhouse F10 MPro (OpenCore)
CPU
i5-10110U
Graphics
UHD 620, 2256x1504
Mobile Phone
  1. Android
I think it can happen if AppleACPIEC hasn't attached yet? Possibly? I'm not quite sure tbh.
It seems ACPIEC is not working.
I tried manually patched the DSDT,and got following error:
ACPI Error: Result stack is empty! State=ffffff902d6d0810 (20160930/dswstate-182)
ACPI Exception: AE_AML_NO_RETURN_VALUE, Missing or null operand (20160930/dsutils-775)
ACPI Exception: AE_AML_NO_RETURN_VALUE, While creating Arg 0 (20160930/dsutils-902) [ECRD] @00015 #0070:
Local1 = -Return Value- ()
Local0: ffffff902cfde640 <Obj> Integer 0000000000000000

Initialized Arguments for Method [ECRD]: (0 arguments defined for method invocation)
Arg0: ffffff902cfde2d0 [RefOf] <Node> Name LSTE Uninitialized

ACPI Error: Method parse/execution failed [\_SB.PCI0.LPCB.H_EC.ECRD] (Node ffffff99c6abf3c0) , AE_AML_NO_RETURN_VALUE (20160930/psparse-632)
ACPI Error: Method parse/execution failed [\_SB.PCI0.LPCB.H_EC.LID0._LID] (Node ffffff99c6abe690), AE_AML_NO_RETURN_VALUE

Looks like EC fields are not read at all.
 
Joined
Aug 12, 2020
Messages
22
Motherboard
HP Elitebook 850 g3-OC
CPU
i5-6200U
Graphics
HD 520
Mac
  1. iMac
  2. MacBook Pro
Mobile Phone
  1. Android
  2. iOS
Hey! I been in army so i havent had that much time to work on this, etc etc.. but here is an update in my case! I have two disks in my laptop so i managed to format one of them to be the bootloader/efi and it works. Now i just need to partition it so i can use rest of the drive cause i think 500gb is littlebit too much just for efi partition xD
 
Top