Jump to content

[Guide] Laptop Battery Indicator - The DSDT Patching Horror


Recommended Posts

Posted

great work sir


i have installed macOS Catalina on my Lenovo IdeaPad L340-15IWL

i7 8565U / UHD 620


by Olarila help here

also i patched my files here to improve many and many in the system and a lot of thank for you for what i reached now


but still 2 major problems

1st the battery life time is only 2 hours

and i searched many and many to make it better but i did not

even in the guide here i can not walk through it cause there are not more than 8 bytes , and i have no experience

so please sir could you help me to make batter be better ?

 

DSDT.aml.zip

config.plist.zip

Posted

[ref]m0ustafamahm0ud[/ref], Battery consumption is generally worst in hackintosh than in Windows. You simply cannot compare.

Donate

Gitter Chat


Acer Aspire V15 Nitro- Black Edition VN7-592G/HM170 Chipset

Intel i7-6700HQ, 8GB RAM (UEFI Clover Catalina)


MSI B360 Gaming Arctic

Intel i5-8600 16GB RAM Asus Radeon RX580 8GB (UEFI Clover Catalina)

Posted

Hi,

can anyone help me with this problem?

I try to patch dsdt for battery and find this fields that are call in EC:


B1DC, 16,

B1FV, 16,

B1FC, 16,

B1CR, 16,

B1RC, 16,

BCYC, 16,


then patch as guide suggested :


into device label EC code_regex B1DC,\s+16, replace_matched begin 1DC0,8,1DC1,8, end;

into device label EC code_regex B1FV,\s+16, replace_matched begin 1FV0,8,1FV1,8, end;

into device label EC code_regex B1FC,\s+16, replace_matched begin 1FC0,8,1FC1,8, end;

into device label EC code_regex B1CR,\s+16, replace_matched begin 1CR0,8,1CR1,8, end;

into device label EC code_regex B1RC,\s+16, replace_matched begin 1RC0,8,1RC1,8, end;

into device label EC code_regex BCYC,\s+16, replace_matched begin CYC0,8,CYC1,8, end;


when i compile dsdt i receive this error :

18980, 6126, syntax error, unexpected PARSEOP_INTEGER, expecting ',' or '}'

and I don't know how to go on.


Pleasse help me!


Thinkbook 13 IWL:

CPU: i5-8265U

Display : 13,3" FHD 1920x1080

Ram : 8GB

SSD: 256GB Solid State Drive PCIe-NVMe M.2 Samsung

Audio: Alc257

DSDT.aml.zip

Posted

I try to patch dsdt for battery and find this fields that are call in EC:


B1DC, 16,

B1FV, 16,

B1FC, 16,

B1CR, 16,

B1RC, 16,

BCYC, 16,


then patch as guide suggested :


into device label EC code_regex B1DC,\s+16, replace_matched begin 1DC0,8,1DC1,8, end;

into device label EC code_regex B1FV,\s+16, replace_matched begin 1FV0,8,1FV1,8, end;

into device label EC code_regex B1FC,\s+16, replace_matched begin 1FC0,8,1FC1,8, end;

into device label EC code_regex B1CR,\s+16, replace_matched begin 1CR0,8,1CR1,8, end;

into device label EC code_regex B1RC,\s+16, replace_matched begin 1RC0,8,1RC1,8, end;

into device label EC code_regex BCYC,\s+16, replace_matched begin CYC0,8,CYC1,8, end;


when i compile dsdt i receive this error :

18980, 6126, syntax error, unexpected PARSEOP_INTEGER, expecting ',' or '}'

and I don't know how to go on.

This is just one of the steps. Did you follow up with the subsequent steps as suggested in original post?

Donate

Gitter Chat


Acer Aspire V15 Nitro- Black Edition VN7-592G/HM170 Chipset

Intel i7-6700HQ, 8GB RAM (UEFI Clover Catalina)


MSI B360 Gaming Arctic

Intel i5-8600 16GB RAM Asus Radeon RX580 8GB (UEFI Clover Catalina)

Posted

Hi onemanosx,


I have followed your guide to patch dsdt for HP Spectre X360 late 2019 laptop but I still cannot see the battery % and status. I have attached RunMe dump onedrive link (file too big to attach). I need battery status working so I can access touchpad settings properly. I2c trackpad and touchscreen work except tap to click and two tap for right clicking but clicking the trackpad physically, works for left mouse clicking.


link - https://1drv.ms/u/s!AgsMleu5IhjT-1pA17DpNG_h1Jrv?e=QrksZ0



Patches applied to dsdt prior to patching for battery status include the following

- remove _DSM methods

- Fix _IRC Error

- Fix ADBG Error

- Add MCHC

- Fix _WAK Arg0 v2

- Fix Mutex

- Fix HPET

- Fix IRQ

- OS Check Fix (Windows 10)

- USB 3_PRW 0X6D Skylake

- Brightness Fix

- GPIO Controller Enable [sKL+]


For battery patching, i did the following


*Variables greater than 8 bytes in EmbeddedControl


SMD0, 256 ——> x ---> Not called elsewhere in EC

BADC, 16 ———>X ----> Not called elsewhere in EC

BFCC, 16 ———> YES

MCUR, 16 ———>YES

MBRM, 16 ———>YES

MBCV, 16 ————>YES


*insert code below to patch window

into device label EC0 code_regex BFCC,\s+16, replace_matched begin FCC0,8,FCC1,8, end;

into device label EC0 code_regex MCUR,\s+16, replace_matched begin CUR0,8,CUR1,8, end;

into device label EC0 code_regex MBRM,\s+16, replace_matched begin BRM0,8,BRM1,8, end;

into device label EC0 code_regex MBCV,\s+16, replace_matched begin BCV0,8,BCV1,8, end;


* manually edit errors

^^PCI0.LPCB.EC0.BFCC -> B1B2(^^PCI0.LPCB.EC0.FCC0,^^PCI0.LPCB.EC0.FCC1) /* \_SB_.PCI0.LPCB.EC0_.BFCC */

^^PCI0.LPCB.EC0.MCUR -> B1B2(^^PCI0.LPCB.EC0.CUR0,^^PCI0.LPCB.EC0.CUR1) /* \_SB_.PCI0.LPCB.EC0_.MCUR */

^^PCI0.LPCB.EC0.MBRM -> B1B2(^^PCI0.LPCB.EC0.BRM0,^^PCI0.LPCB.EC0.BRM1) /* \_SB_.PCI0.LPCB.EC0_.MBRM */

^^PCI0.LPCB.EC0.MBCV -> B1B2(^^PCI0.LPCB.EC0.BCV0,^^PCI0.LPCB.EC0.BCV1) /* \_SB_.PCI0.LPCB.EC0_.MBCV */


*insert code below to patch window

into method label B1B2 remove_entry;

into definitionblock code_regex . insert

begin

Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n

end;



*Insert code below in patch window

#utility methods to read/write buffers from/to EC......


No luck, any advice would be greatly appreciated!!

Thank you

Posted

BADC, 16

Add patch for BADC.


For I2C, You should remove VoodooI2CELAN from wherever folder that you had installed it. Only use VoodooI2CHID and VoodooI2C kexts.

Donate

Gitter Chat


Acer Aspire V15 Nitro- Black Edition VN7-592G/HM170 Chipset

Intel i7-6700HQ, 8GB RAM (UEFI Clover Catalina)


MSI B360 Gaming Arctic

Intel i5-8600 16GB RAM Asus Radeon RX580 8GB (UEFI Clover Catalina)

Posted

I have a problem, I can't find any item above 8, what do I do?

Just install battery kext in C/K/O. Read post 1.

Donate

Gitter Chat


Acer Aspire V15 Nitro- Black Edition VN7-592G/HM170 Chipset

Intel i7-6700HQ, 8GB RAM (UEFI Clover Catalina)


MSI B360 Gaming Arctic

Intel i5-8600 16GB RAM Asus Radeon RX580 8GB (UEFI Clover Catalina)

Posted

New Year, new life in Hackintosh! :lol::lol::lol::lol::lol::lol:


Congratulations for this contribution!!!


By the way, I have one doubt about patching DSDT/SSDT. RehabMan says that "the OS Check Fix patch we use has nothing to do with the version of Windows the laptop came with, nor with the version of Windows we're currently using."


So how can I decide which Windows OS Check Fix I must apply to my DSDT?


THANK YOU!!!

SAMSUNG NP300E4C-AD2BR core i3 2328m Intel HD Graphics 3000 (1366x768) 4Gb RAM DDR3 HDD 120Gb Ethernet Realtek RTL8168 Wi-Fi Atheros AR9485 Bluetooth Atheros AR3012

  • Administrators
Posted

New Year, new life in Hackintosh!

check ur dsdt, search for _OSI

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Hackintosh Support since 2006 HERE

Posted
On 12/14/2019 at 9:31 PM, pchitech said:

Hi,

can anyone help me with this problem?

I try to patch dsdt for battery and find this fields that are call in EC:

 

B1DC, 16,

B1FV, 16,

B1FC, 16,

B1CR, 16,

B1RC, 16,

BCYC, 16,

 

then patch as guide suggested :

 

into device label EC code_regex B1DC,\s+16, replace_matched begin 1DC0,8,1DC1,8, end;

into device label EC code_regex B1FV,\s+16, replace_matched begin 1FV0,8,1FV1,8, end;

into device label EC code_regex B1FC,\s+16, replace_matched begin 1FC0,8,1FC1,8, end;

into device label EC code_regex B1CR,\s+16, replace_matched begin 1CR0,8,1CR1,8, end;

into device label EC code_regex B1RC,\s+16, replace_matched begin 1RC0,8,1RC1,8, end;

into device label EC code_regex BCYC,\s+16, replace_matched begin CYC0,8,CYC1,8, end;

 

when i compile dsdt i receive this error :

18980, 6126, syntax error, unexpected PARSEOP_INTEGER, expecting ',' or '}'

and I don't know how to go on.

 

Pleasse help me!

 

Thinkbook 13 IWL:

CPU: i5-8265U

Display : 13,3" FHD 1920x1080

Ram : 8GB

SSD: 256GB Solid State Drive PCIe-NVMe M.2 Samsung

Audio: Alc257

DSDT.aml.zip 53.29 kB · 4 downloads

@pchitech I've patched the battery and it is working thank to the @onemanosx detailed guide. In the attachment of this file you can find the patch

battery_Lenovo-ThinkBook-13s.zip

Posted
On 2/12/2020 at 1:22 AM, astibojr said:

@pchitech I've patched the battery and it is working thank to the @onemanosx detailed guide. In the attachment of this file you can find the patch

battery_Lenovo-ThinkBook-13s.zip 1.34 kB · 5 downloads

Tnx astibojr,

i try it but dosen't work with my origin DSDT.

After a few attempts I managed to modify the patch so that it also works on mine.

Now i've a full working Hackintosh ;-)

 

battery_Lenovo-ThinkBook-13s modificata da me.txt.zip

Posted

 

Hi @onemanosx and thanks for the guide, two years ago I wrote my notebook patch. RH published it in its repositories (Wbin Airbook)

The problem is that today it no longer works. I extracted the dsdt / ssdt again, as you can see from my attachment

I noticed that there are more files than before, I mean that when I patched not all the RSDT-XXXX files.

In addition, the extracted files are full of errors that were not there before ...

My patch no longer works, you see the battery but I do not detect the battery charge or the state of charge, only occasionally it works, but not always, as it happened until some time ago.

Can you tell me what these RSDT are ?? Do I have to patch these too?

Send me MacBook-Pro.home-life.hub.zip

  • Administrators
Posted
12 hours ago, R-88 said:

(Wbin Airbook

try it

EFI.zip

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Hackintosh Support since 2006 HERE

Posted
17 hours ago, MaLd0n said:

Thanks for replying, but unfortunately nothing changes. The PC sees the battery but continues not to detect the charger, and does not show me the "charging" status.
I did a rune with your EFI, I had to keep my SSDT-1 because with the DSDT only it doesn't see the battery at all.
I noticed that you inserted a DEVICE (EC) ... embedded ... in the DSDT, in the original one there is not.
I wonder if the problem isn't caused by the modified DSDT.

With thisone DSDT i have also too many ACPI error at boot, please check the attached file
Should I also keep SSDT-EC and SSDT-UIAC in the patched folder?

This is a runme with the last  folder you sent me yesterday,
If I re-apply my patch (RH repo Wbin Airbook) to the original SSDT-1 file it does not apply all the patches… .this is strange

Send me MacBook-Pro.home-life.hub.zip

Posted

 

but the strangest thing is this: immediately after sending you the message above I put my previous EFI back. I started and now I see the battery charger .... and the status of the battery being charged. If reboot disappears again ...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...