Contribute
Register

<< Solved >> OpenCore battery patch

Joined
Mar 8, 2017
Messages
763
Motherboard
Dell XPS 9700 4K (OpenCore)
CPU
i7-10875H
Graphics
UHD 630, 3840x2400
Mobile Phone
  1. Android
@tingyichen

And you've tried to only load this kext, without any acpi manipulation regarding Battery/EC? If so, I'll look into your files.
 
Joined
Jan 19, 2021
Messages
12
Motherboard
Funhouse F10 MPro (OpenCore)
CPU
i5-10110U
Graphics
UHD 620, 2256x1504
Mobile Phone
  1. Android
Joined
Mar 8, 2017
Messages
763
Motherboard
Dell XPS 9700 4K (OpenCore)
CPU
i7-10875H
Graphics
UHD 630, 3840x2400
Mobile Phone
  1. Android
@tingyichen

Just to make absolutely sure, please try the attached version of your EFI folder. If that still yields the same result, I guess you need a custom battery patch - for whatever reason. This will take some time.
 

Attachments

  • EFI.zip
    32.1 MB · Views: 50
Joined
Jan 19, 2021
Messages
12
Motherboard
Funhouse F10 MPro (OpenCore)
CPU
i5-10110U
Graphics
UHD 620, 2256x1504
Mobile Phone
  1. Android
@BlvckBytes
Tried this EFI,same as before,battery showing 1% percentage and have _STA acpi error in log
 
Joined
Mar 8, 2017
Messages
763
Motherboard
Dell XPS 9700 4K (OpenCore)
CPU
i7-10875H
Graphics
UHD 630, 3840x2400
Mobile Phone
  1. Android
@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.
 

Attachments

  • EFI.zip
    32.1 MB · Views: 41
Joined
Jan 19, 2021
Messages
12
Motherboard
Funhouse F10 MPro (OpenCore)
CPU
i5-10110U
Graphics
UHD 620, 2256x1504
Mobile Phone
  1. Android
@BlvckBytes Just tried,_STA errors still present,and _BIF and _BST generated AE_BAD_PARAMETER errors. with following errors :B1DC/B1FV/B1FC/XX15/B1ST/B1CR/B1RCB1VT Namespace lookup failure, AE_ALREADY_EXISTS
For that _STA error,I believe it is caused by insufficient code as per ACPI spec:
The OS runs _REG control methods to inform AML code of a change in the availability of an operation region. When an operation region handler is unavailable, AML cannot access data fields in that region. (Operation region writes will be ignored and reads will return indeterminate data.
The _STA tried to access ECWR before _REG method in EC,but I don't know why it still fails to read battery stats after boot up.
 
Joined
Mar 8, 2017
Messages
763
Motherboard
Dell XPS 9700 4K (OpenCore)
CPU
i7-10875H
Graphics
UHD 630, 3840x2400
Mobile Phone
  1. Android
@tingyichen

I'm sorry, I totally messed up on the region patch using duplicate names, please try again. Now, those AE_ALREADY_EXISTS errors should be gone. If you still experience the _STA issues, it would be interesting to know if they only appear on boot, since the region handler should now be available.
 

Attachments

  • EFI.zip
    32.1 MB · Views: 38
Joined
Jan 19, 2021
Messages
12
Motherboard
Funhouse F10 MPro (OpenCore)
CPU
i5-10110U
Graphics
UHD 620, 2256x1504
Mobile Phone
  1. Android
@BlvckBytes
Still not working,I got these errors:
kernel[0]: (AppleSmartBatteryManager) <AppleSmartBatteryManager`AppleSmartBattery::_smcKeyInfo(unsigned int, int*, bool*) const> Failed to read keyInfo . rc:0x84
kernel[0]: (AppleSmartBatteryManager) <AppleSmartBatteryManager`AppleSmartBattery::smcKeysToDictionary(smcToRegistry*) const> SMC Key is not supported.
I think ec memory regions are broken and system can't read correct info from it..
 
Joined
Mar 8, 2017
Messages
763
Motherboard
Dell XPS 9700 4K (OpenCore)
CPU
i7-10875H
Graphics
UHD 630, 3840x2400
Mobile Phone
  1. Android
@tingyichen

Is there a way you could provide more lines of the log, as that is just too little info to make sense of anything?

// Edit: Found another typo, updated attached files
 

Attachments

  • EFI.zip
    32.1 MB · Views: 44
Last edited:
Joined
Jan 19, 2021
Messages
12
Motherboard
Funhouse F10 MPro (OpenCore)
CPU
i5-10110U
Graphics
UHD 620, 2256x1504
Mobile Phone
  1. Android

Attachments

  • boot1.txt
    932 KB · Views: 35
Top