Giter VIP home page Giter VIP logo

Comments (10)

jsassu20 avatar jsassu20 commented on August 16, 2024 1

HEY WHATS GOING ON BOSS ITS ALMOST ALWAYS GOING TO BE...

_SB_.PCI0.LPCB.EC__.BATx (BATA BATB BATC, something close to this)
LPCB can also sometimes be LPC_
EC__ may also be H_EC or EC0_ or ECDV

The underscore is important to pay attention to. ACPI devices use 4 character references across usually in the form of letters combined with numbers on most systems. But when ever you see a device with only 2 or 3 characters visible in writing then the _ will be used as the 4th and sometimes 3rd and 4th characters and it matters which order its written. When something is written EC for example the actual reference may be EC _ _ (no spaces between so EC__ but there are two underscores eventhough it may look like one ) it could also be E_ C (E__C) or E_C (EC is almost always gonna be EC _ _ (EC__) I was just using the letters as a way to explain the naming scheme)

This is significant because SB.PCI0.E_C_ is a totally different ACPI location in the computers translation than SB.PCI0.EC__ even though it uses EC in both examples and can be very easy to miss out on entirely which can drive you insane

SOMETIMES ITS 2 BATTERIES AND SOMETIMES ITS ONE IF YOU HAVE A LENOVO T440 450 460 470 480 OR T25 FOR EXAMPLE THEY HAVE THE ABILITY TO HOTSWAPP BATTERIES WHICH REQUIRES A BUILT IN BATTERY AND A DETACHABLE WHICH IS GOOD BUT IN MAC THE BATTERY HAS TO BE SEEN AS A SINGLE BAT REFERENCE INAACPI IN ORDER FOR IT TO FUNCTION PROPERLY. WHAT TYPE OF MACHINE DO YOU HAVE

from opencore-hotpatching-guide.

Human79 avatar Human79 commented on August 16, 2024

I have found my ACPI battery path but where to replace it? I just says match your battery path.
Attaching an image for better understanding.
170ou6izy1371

from opencore-hotpatching-guide.

jsassu20 avatar jsassu20 commented on August 16, 2024

tell me the pc make and model it'll be easier for me to help you

from opencore-hotpatching-guide.

Human79 avatar Human79 commented on August 16, 2024

HP Probook 430 G3. It is a laptop. Battery ACPI path is PCI0.LPCB.EC0.BSTA.
Regards.

from opencore-hotpatching-guide.

jsassu20 avatar jsassu20 commented on August 16, 2024

Archive.zip

there ya go boss it should give you a working battery

you need to add the patches to open core and include the aml in your config file then reboot
everything you need is in the archive patches need to be put under ACPI/Patch in OC configurator

your system has either two batteries or uses a dual battery ACPI config The actual Battery is located at SB.PCI0.BAT0 and is also using SB.PCI0.BAT1 which most likely means you have 2 separate batteries which some companies do to enable hot swapping batteries without having to be plugged into an outlet when your battery is dead and you have a second you want to switch it with without powering off the system. The location you sent me of where your battery is is not correct and should be ignored as its not controlling anythingnot at the location. SSDT-BATC joins each of those batteries into one ACPI device which macOS will only work properly with and the required references have all been patched so they return bytes of 8 or less which is also required to have a proper battery config with Mac.

DSDT files can sometimes include references to BATT devices in multiple areas however the one which is the actual location of your systems is whoever location defines sub info referring to call methods that are named _STA _BIF _BIX and BST any battery device which does not contain those references can be ignored. More than one device with the references is a pretty solid use of more than one charge that's a much simpler way to avoid making any complex edits before you're able to get the gist of how batteries are seen and reported across multiple avenues rather than through than one system battery in the device otherwise your system wouldn't need to split the devices in order for two different battery status indicators which report the combined charge of each as if it were a single battery

STA handles reporting the current charge level of your system, bif handles the battery info for where it was made and by whom, and bix is extended reporting for how its operating as one battery when its actually many different batteries whose combined individual charge act like one battery wile still giving you the freedom to use more than one battery without requiring that your charger be with you should you need to use the system for long periods of time where no charger is an option or an annoyance

Untitled

from opencore-hotpatching-guide.

jsassu20 avatar jsassu20 commented on August 16, 2024

Untitled 3

from opencore-hotpatching-guide.

Human79 avatar Human79 commented on August 16, 2024

Thank you for your help, boss! However, while using your ssdt battery is not detected. Also, my device has a single battery.
Attaching native (vanilla) DSDT for your reference.
Regards.
DSDT.aml.zip

from opencore-hotpatching-guide.

jsassu20 avatar jsassu20 commented on August 16, 2024

https://github.com/mdraan1/HP-Probook-430-G3-macos

or use this lilu plugin it looks like this guy made it so there's no battery patching needed

ECEnabler.kext.zip

https://github.com/1Revenger1/ECEnabler

that's the link

might not work cuz you have 2 batteries but worth a shot if not use the first link and try his EFI folder

from opencore-hotpatching-guide.

Human79 avatar Human79 commented on August 16, 2024

Hey there
Nevermind I created my own patch and it works well.
Thank you for your time.

from opencore-hotpatching-guide.

TomiKVM avatar TomiKVM commented on August 16, 2024

Hey i have HP Elitebook 850 g3, i dont have dsdt in my build but i have many ssdts. Everything else works but no battery indicator.

from opencore-hotpatching-guide.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.