Contribute
Register

<< Solved >> OpenCore battery patch

Status
Not open for further replies.
Hi @BlvckBytes
Using Rehab man battery patch on my elitebook g6 and got question. All works great with virtualSMC and SMCBatteryManager but there are some sensors missing like fanspeed, ambientsensor etc.
I do have this all with FakeSMC but charging status is broken whatever if I'm using SMCBatteryManager or ACPIBatteryManager. Solution for this is with charger plugged in need to send it to sleep and after disconnecting same. After waking up from sleep battery status is ok.


Thats what I'm getting after plugging in charger with FakeSMC kext.

Code:
2020-08-14 18:18:01.715918+0100  localhost kernel[0]: (AppleACPIPlatform) <AppleACPIPlatform`AcpiOsVprintf> ACPI Exception: AE_BAD_PARAMETER,
2020-08-14 18:18:01.715921+0100  localhost kernel[0]: (AppleACPIPlatform) <AppleACPIPlatform`AcpiOsVprintf> ACPI Exception: AE_BAD_PARAMETER,
2020-08-14 18:18:01.715928+0100  localhost kernel[0]: (AppleACPIPlatform) <AppleACPIPlatform`AcpiOsVprintf> Returned by Handler for [EmbeddedControl]
2020-08-14 18:18:01.715930+0100  localhost kernel[0]: (AppleACPIPlatform) <AppleACPIPlatform`AcpiOsVprintf> Returned by Handler for [EmbeddedControl]
2020-08-14 18:18:01.715936+0100  localhost kernel[0]: (AppleACPIPlatform) <AppleACPIPlatform`AcpiOsVprintf>  (20160930/evregion-388)
2020-08-14 18:18:01.715938+0100  localhost kernel[0]: (AppleACPIPlatform) <AppleACPIPlatform`AcpiOsVprintf>  (20160930/evregion-388)
2020-08-14 18:18:01.715947+0100  localhost kernel[0]: (AppleACPIPlatform) <AppleACPIPlatform`AcpiOsVprintf> [EC12] @00038 #002D:
2020-08-14 18:18:01.715948+0100  localhost kernel[0]: (AppleACPIPlatform) <AppleACPIPlatform`AcpiOsVprintf> [EC12] @00038 #002D:
 
@Borygo77

You should attach your current EFI folder if you want me to be able to help you at all...
 
Thank you! :) If there is nothing obvious don't put much energy into it :)
 
@Borygo77

You are using clover, and this is an OC thread. I'm sorry, but I can't really help you with that. I know next to nothing about your system, the actual things that need patching, and what those (partially) huge SSDTs are for.
 
@Borygo77

I can only advise you to switch to OC and then create the needed patches in a clean manner, if you want to make the updateability of your system guaranteed.

Reading up on it and making a basic boot without any patches isn't that hard, after that I could help you with the patches. Just something to think about.
 
Don't know why but I rather stay with Clover :) Had bad experience with my ryzentosh using OC. Finally got it going but had to reinstall Windows twice and lost some data... Had this laptop on OC running nice but really want it on Clover ;)
 
@IkeaRecliner


I think that this information may help with your problem. I'd need to read up on the actual code in SMCBatteryManager or ACPIBatteryManager, to see how they calculate stuff, and what ACPI methods respond with what data.

This seems rather complicated, so I can't really promise it'll happen very soon. I will try to learn about it on the side, tho. I'll get back to you...
 
Hi @BlvckBytes, I see that you've helped a lot of people in this thread. I was wondering if you could take a look at my files. I've been trying for about two weeks to make my battery hotpatch but can't get it working. I've included the original DSDT + DSDT w/ Static Batt patch + the SSDT-BATT that I've created + my OC folder. The DSDT with the static patches that I created works perfectly but I must be missing something when transferring all the changes to the SSDT. Thanks for your time.

To be clear nothing from the SSDT gets patched to the DSDT, only the "External.." declarations.
 

Attachments

  • HP Spectre.zip
    20.2 MB · Views: 55
Status
Not open for further replies.
Back
Top