Contribute
Register

<< Solved >> OpenCore battery patch

Status
Not open for further replies.
I need your help with the following problem on a Dell 5570 laptop.

When I use SMCBatterymanagerkext I get the following ACPI error :

2020-11-14 06:22:00.129160+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Exception: AE_NOT_FOUND,
2020-11-14 06:22:00.129161+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Exception: AE_NOT_FOUND,
2020-11-14 06:22:00.129162+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) During name lookup/catalog
2020-11-14 06:22:00.129163+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) During name lookup/catalog
2020-11-14 06:22:00.129165+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psobject-310)
2020-11-14 06:22:00.129165+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psobject-310)
2020-11-14 06:22:00.129167+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2020-11-14 06:22:00.129168+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2020-11-14 06:22:00.129169+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) Method parse/execution failed
2020-11-14 06:22:00.129170+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) Method parse/execution failed
2020-11-14 06:22:00.129172+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) [_SB.PCI0.RP08.PXSX] (Node ffffff804b964630)
2020-11-14 06:22:00.129173+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) [_SB.PCI0.RP08.PXSX] (Node ffffff804b964630)
2020-11-14 06:22:00.129175+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) , AE_NOT_FOUND
2020-11-14 06:22:00.129175+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) , AE_NOT_FOUND
2020-11-14 06:22:00.129177+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psparse-632)
2020-11-14 06:22:00.129177+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psparse-632)
2020-11-14 06:22:00.133778+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI:
2020-11-14 06:22:00.133779+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI:
2020-11-14 06:22:00.133781+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) Executed 65 blocks of module-level executable AML code
2020-11-14 06:22:00.133782+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) Executed 65 blocks of module-level executable AML

With AcpiBatteryManager.kext ,this acpi error doesn't not happen and AppleACPICAdapter is loaded under ac.
Also , battery cycle count is different between the 2 kexts.

Seems that VirtualSMC accesses a codepath which is defective in my ACPI.

Can someone help me to solve this acpi error ? Maybe a battery patch is needed?
 

Attachments

  • ACPIBatteryManager.CycleCount.pdf
    96.7 KB · Views: 41
  • ACPIBatteryManager.Debug.zip
    7.4 MB · Views: 57
  • SMCBatteryManager.CycleCount.pdf
    134 KB · Views: 58
  • SMCBatteryManager.debug.zip
    8.6 MB · Views: 42
need help please i did not understand how to get ssdt-batt.aml for my laptop , i'm using opencore
i joined native dsdt and txt file.
 

Attachments

  • DSDT.aml
    96.8 KB · Views: 40
  • battery_Lenovo-Ideapad-310-15IKB.txt
    7.8 KB · Views: 33
Last edited:
your patch is similar to Hp Probook 450 g5 patch, I verified it and made slight changes and applied the patch to your dsdt (dsdt-patched.dsl)
Hello! Do you have probook 450 g5 battery patch for opencore? Thanks!
 
Hello Friend,

Wondering if you can help with my Battery Status. I am unable to find a battery fix close enough to my current model HP EliteBook x360 G3. I have tried a few of rehab's patches (battery_HP-G6-2221ss.txt / battery_HP-Pavilion-n012tx.txt / battery_HP-x360.txt) but none work and or kernel panic my system when passing patched DSDT.

I have attached my original DSDT and EFI folder. Thank you!
Hello, so I made SSDT according to your DSDT

  • Delete DSDT from your ACPI folder and add SSDT-BAT
  • Add renaming patches to your config plist
  • Make sure to have EFI backup
  • If the battery didn't work then do the following
    • Run this command in terminal and send me the output
    • Code:
      Log show --last boot | grep -i acpi
    • Download MaciASL open it and look for the renamed methods (can be found in patches.plist e.g. XACW, XBAW etc), list the methods you couldn't find
 

Attachments

  • HP EliteBook x360 G3-Battery-Patch.zip
    4.8 KB · Views: 38
@BlvckBytes
Hello !
for whatever reason I can't reply to your message, I'm getting this error
Your content can not be submitted. This is likely because your content is spam-like or contains inappropriate elements. Please change your content or try again later. If you still have problems, please contact an administrator.

anyways great you are back to continue the development

I'll look into what DSDTs I have and send you complex ones, or if you want I'll send you all the DSDTs I have, whatever you like

One more thing, I saw this on another forum and thought it might be helpful somehow
https://github.com/1Revenger1/BatteryPatcher looks like someone already attempted to make battery patcher, idk how good is this tool as I haven't tried it
 
Last edited by a moderator:

Attachments

  • Hp Probook 450 g5 -Battery-Patch.rtf.zip
    2.3 KB · Views: 52
I need your help with the following problem on a Dell 5570 laptop.

When I use SMCBatterymanagerkext I get the following ACPI error :

2020-11-14 06:22:00.129160+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Exception: AE_NOT_FOUND,
2020-11-14 06:22:00.129161+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Exception: AE_NOT_FOUND,
2020-11-14 06:22:00.129162+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) During name lookup/catalog
2020-11-14 06:22:00.129163+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) During name lookup/catalog
2020-11-14 06:22:00.129165+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psobject-310)
2020-11-14 06:22:00.129165+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psobject-310)
2020-11-14 06:22:00.129167+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2020-11-14 06:22:00.129168+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2020-11-14 06:22:00.129169+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) Method parse/execution failed
2020-11-14 06:22:00.129170+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) Method parse/execution failed
2020-11-14 06:22:00.129172+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) [_SB.PCI0.RP08.PXSX] (Node ffffff804b964630)
2020-11-14 06:22:00.129173+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) [_SB.PCI0.RP08.PXSX] (Node ffffff804b964630)
2020-11-14 06:22:00.129175+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) , AE_NOT_FOUND
2020-11-14 06:22:00.129175+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) , AE_NOT_FOUND
2020-11-14 06:22:00.129177+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psparse-632)
2020-11-14 06:22:00.129177+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psparse-632)
2020-11-14 06:22:00.133778+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI:
2020-11-14 06:22:00.133779+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI:
2020-11-14 06:22:00.133781+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) Executed 65 blocks of module-level executable AML code
2020-11-14 06:22:00.133782+0200 0x71 Default 0x0 0 0 kernel: (AppleACPIPlatform) Executed 65 blocks of module-level executable AML

With AcpiBatteryManager.kext ,this acpi error doesn't not happen and AppleACPICAdapter is loaded under ac.
Also , battery cycle count is different between the 2 kexts.

Seems that VirtualSMC accesses a codepath which is defective in my ACPI.

Can someone help me to solve this acpi error ? Maybe a battery patch is needed?
your EFI is kinda a mess, read OC guide, start fresh and make your own SSDTs
you have a lot of SSDTs and renaming patches that conflict with SSDTs (ECDV to EC to be specific)

anyways I checked your DSDT and you don't have any fields that’s above 8 bit (no dsdt battery is needed)

read this comment
 
Just copy the text inside txt file, open your dsdt with MaciASL and paste it in patch section

Note that it's better to read those two guide for better understanding
[Guide] How to patch DSDT for working battery status
[Guide] Using Clover to "hotpatch" ACPI
thanks for the replay ,

i have already patched before my DSDT to make my battery working and it's working but i don't want to use DSDT.aml in my acpi folder (multiboot with windows) so i need to generate an SSDT-BAT.aml but i did not understand well how to do that.
i'm usine opencore and everything is working fine with SSDT-XXX prebuild file and kext only the battery not working
if can help to generate the SSDT-BAT.aml please.
 
Status
Not open for further replies.
Back
Top