Contribute
Register

[Guide] How to patch DSDT for working battery status

Joined
Dec 18, 2019
Messages
28
Motherboard
Acer Aspire A715-74G-78KF
CPU
i7-9750H
Graphics
UHD 630
Mac
MacBook Pro
@freejack , Tx for your reply. Happy new year !

It is a bit confusing to me, kindly clarify

1. are you saying the patch _STA to XSTA must be disabled like this ?

Screenshot 2020-01-03 at 08.27.06.png


2. AND THAT the method must return 0x1F like this: hence removing all the code from If (ECOK ())

Code:
Device (BAT1)
        {
            Method (_STA, 0, NotSerialized)  // _STA: Status
            {
               Return (0x1F)
              /*If (ECOK ())
                {
                    If (^^EC0.BOL0)
                    {
                        Return (0x1F)
                    }
                    Else
                    {
                        Return (0x0F)
                    }
                }
                Else
                {
                    Return (0x1F)
                }*/             
            }
        }

3. Likewise the patch for changing GFX0 to IGPU should be: ?
Screenshot 2020-01-03 at 08.43.23.png


I can't help but to note that in clover boot loader under DSDT patch ACPI the reciprocal seems to be the case. See picture below. If you use clover configurator and set disabled flag to true it would not be selected at runtime when you load the boot loader.

So I'm not sure which to use ?

IMG_6338.jpeg
 
Last edited:
Joined
Dec 18, 2019
Messages
28
Motherboard
Acer Aspire A715-74G-78KF
CPU
i7-9750H
Graphics
UHD 630
Mac
MacBook Pro
it is also best to just perform renames in config.plist rather than renames in dsdt and ssdt's :)
@Feartech & @FreeJHack,

Thx for your help. It did point me into the right direction.

Patching STA to XSTA to be disabled like above was only half of the solution. In the end I still needed to apply:
ACPI Patch like Pilgrim suggested here: ACPI Patch on post #19.

Screenshot 2020-01-03 at 11.25.16.png


If I don't use ACPI Patch I get this ACPIBatteryManager warning (hang at boot, slow and non-responsive) :

IMG_6335.jpeg


Now, finally the battery status is showing up.

Appreciate your efforts !
 

Attachments

Last edited:
Joined
Dec 18, 2019
Messages
28
Motherboard
Acer Aspire A715-74G-78KF
CPU
i7-9750H
Graphics
UHD 630
Mac
MacBook Pro
@P1LGRIM and @Feartech,

Thx so much for your help !.

Seeing there is very little information on tonymacx86 about this patch, I would like to understand the purpose or intent of the ACPI patch. This patch (see here ACPI Patch) allowed me to boot and now my battery status is working. Without this patch I was not able to boot.
 
Joined
Nov 21, 2019
Messages
1
Motherboard
Timb3r9438
CPU
i7
Graphics
hd 3000
Hp ProBook G5 some one can help me whit the battery patch plz
 

Attachments

Joined
Nov 15, 2018
Messages
2
Motherboard
acer veriton x4620g
CPU
i7-2600
Graphics
GTX 1050 Ti
Mac
iMac, MacBook Pro
Classic Mac
Apple
Mobile Phone
Android
I need patch file for Lenov V310 Mac os Catalina
 
Joined
Nov 15, 2018
Messages
2
Motherboard
acer veriton x4620g
CPU
i7-2600
Graphics
GTX 1050 Ti
Mac
iMac, MacBook Pro
Classic Mac
Apple
Mobile Phone
Android
hi Rehabman I added 64bit register patches for my ideapad 320 into battery_Lenovo-Ideapad-Y700.txt
this worked perfectly and I double checked when I patch through MaciASL 60 patches 61 changes this is perfect worked
I already added into battery_Lenovo-Ideapad-Y700.txt please upload in your Laptop-DSDT-Patch-master under battery section
your sincerely
I Need You help for my laptop Same u bro
 
Joined
Dec 29, 2014
Messages
16
Motherboard
HP Envy 17 k-206-nl
CPU
i5 5200U
Graphics
HD 5500, GT 840M
Mobile Phone
Android
Hi! Can you help me with my laptop please? I tried a lot of times but I didn't manage to do it :banghead:
Thanks!
 

Attachments

Joined
Apr 29, 2019
Messages
36
Motherboard
Lenovo Z50-70
CPU
i7-4510U
Graphics
Intel HD4400 1920x1080
Mobile Phone
Android
I'm not very good at this coding stuff (None of this wording in this article I know) lucky, I found a .txt file for my laptop. Do I just open it in MaciASL? Then do I save it as a patch file. I'm not sure how all this works. I am not a tech savvy person. Any help would be great.
 
Top