Jump to content
onemanosx

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Recommended Posts

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

Link to comment
Share on other sites

  • Administrators

New Year, new life in Hackintosh!

check ur dsdt, search for _OSI

-Donations-

PayPal HERE - Stripe HERE - Ko-Fi HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 - BNB 0x10D1d656eCa00bD521f9b4A43B83098B8142e115 - USDT BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9 - USDT TRC20 TUR6Z9AVS4AYzqPnULoHrfFvppRbhXmNbZ - KASPA kaspa:qpxzufgfj8p6r0krg58yzvs0009h2mwqgvcawa0xc2pth7sgzpv56j4f6dtvk - PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Sign up for a Bybit account and claim exclusive rewards HERE

New ways to earn money with Linkvertise HERE

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

 

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

Link to comment
Share on other sites

  • Administrators
12 hours ago, R-88 said:

(Wbin Airbook

try it

EFI.zip

-Donations-

PayPal HERE - Stripe HERE - Ko-Fi HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 - BNB 0x10D1d656eCa00bD521f9b4A43B83098B8142e115 - USDT BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9 - USDT TRC20 TUR6Z9AVS4AYzqPnULoHrfFvppRbhXmNbZ - KASPA kaspa:qpxzufgfj8p6r0krg58yzvs0009h2mwqgvcawa0xc2pth7sgzpv56j4f6dtvk - PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Sign up for a Bybit account and claim exclusive rewards HERE

New ways to earn money with Linkvertise HERE

Link to comment
Share on other sites

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

Link to comment
Share on other sites

 

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 ...

Link to comment
Share on other sites

  • Administrators
38 minutes ago, R-88 said:

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 ...

fix all bit registers

-Donations-

PayPal HERE - Stripe HERE - Ko-Fi HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 - BNB 0x10D1d656eCa00bD521f9b4A43B83098B8142e115 - USDT BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9 - USDT TRC20 TUR6Z9AVS4AYzqPnULoHrfFvppRbhXmNbZ - KASPA kaspa:qpxzufgfj8p6r0krg58yzvs0009h2mwqgvcawa0xc2pth7sgzpv56j4f6dtvk - PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Sign up for a Bybit account and claim exclusive rewards HERE

New ways to earn money with Linkvertise HERE

Link to comment
Share on other sites

  • Administrators
16 minutes ago, R-88 said:

Uhm...all bit in the ssdt-1?

dsdt, device ec

NowPCVL.png

fix it, check

Ca0nN3I.png

 

-Donations-

PayPal HERE - Stripe HERE - Ko-Fi HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 - BNB 0x10D1d656eCa00bD521f9b4A43B83098B8142e115 - USDT BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9 - USDT TRC20 TUR6Z9AVS4AYzqPnULoHrfFvppRbhXmNbZ - KASPA kaspa:qpxzufgfj8p6r0krg58yzvs0009h2mwqgvcawa0xc2pth7sgzpv56j4f6dtvk - PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Sign up for a Bybit account and claim exclusive rewards HERE

New ways to earn money with Linkvertise HERE

Link to comment
Share on other sites

  • Administrators
22 minutes ago, R-88 said:

Ok...how to? Have you a guide to fix the registers?

first post

-Donations-

PayPal HERE - Stripe HERE - Ko-Fi HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 - BNB 0x10D1d656eCa00bD521f9b4A43B83098B8142e115 - USDT BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9 - USDT TRC20 TUR6Z9AVS4AYzqPnULoHrfFvppRbhXmNbZ - KASPA kaspa:qpxzufgfj8p6r0krg58yzvs0009h2mwqgvcawa0xc2pth7sgzpv56j4f6dtvk - PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Sign up for a Bybit account and claim exclusive rewards HERE

New ways to earn money with Linkvertise HERE

Link to comment
Share on other sites

  • Administrators
6 minutes ago, divyesh jaiswal said:

Can someone please help me? I'm trying this on a Thinkpad l412 running Mojave.

first try with only virtualsmc

-Donations-

PayPal HERE - Stripe HERE - Ko-Fi HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 - BNB 0x10D1d656eCa00bD521f9b4A43B83098B8142e115 - USDT BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9 - USDT TRC20 TUR6Z9AVS4AYzqPnULoHrfFvppRbhXmNbZ - KASPA kaspa:qpxzufgfj8p6r0krg58yzvs0009h2mwqgvcawa0xc2pth7sgzpv56j4f6dtvk - PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Sign up for a Bybit account and claim exclusive rewards HERE

New ways to earn money with Linkvertise HERE

Link to comment
Share on other sites

3 minutes ago, MaLd0n said:

first try with only virtualsmc

Hi. Thanks for the fast reply. Appreciate it.

Virtualsmc didn't work. I tried many other battery fixing kexts as well one by one, but none seemed to worked... Any suggestions?

Should I upload anything, so you could check?

Thanks for the help

Link to comment
Share on other sites

  • Administrators
30 minutes ago, divyesh jaiswal said:

Hi. Thanks for the fast reply. Appreciate it.

https://www.olarila.com/files/Utils/RunMe.app.zip
https://www.youtube.com/watch?v=k9wmIfGLe3A

-Donations-

PayPal HERE - Stripe HERE - Ko-Fi HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 - BNB 0x10D1d656eCa00bD521f9b4A43B83098B8142e115 - USDT BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9 - USDT TRC20 TUR6Z9AVS4AYzqPnULoHrfFvppRbhXmNbZ - KASPA kaspa:qpxzufgfj8p6r0krg58yzvs0009h2mwqgvcawa0xc2pth7sgzpv56j4f6dtvk - PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Sign up for a Bybit account and claim exclusive rewards HERE

New ways to earn money with Linkvertise HERE

Link to comment
Share on other sites

  • Administrators
43 minutes ago, divyesh jaiswal said:

I have attached the zip here.

test it with none usb stick bootable

EFI 2.zip

-Donations-

PayPal HERE - Stripe HERE - Ko-Fi HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 - BNB 0x10D1d656eCa00bD521f9b4A43B83098B8142e115 - USDT BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9 - USDT TRC20 TUR6Z9AVS4AYzqPnULoHrfFvppRbhXmNbZ - KASPA kaspa:qpxzufgfj8p6r0krg58yzvs0009h2mwqgvcawa0xc2pth7sgzpv56j4f6dtvk - PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Sign up for a Bybit account and claim exclusive rewards HERE

New ways to earn money with Linkvertise HERE

Link to comment
Share on other sites

  • Administrators
52 minutes ago, Guillep84 said:

Hello,

DSDT.aml.zip

  • Like 1

-Donations-

PayPal HERE - Stripe HERE - Ko-Fi HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 - BNB 0x10D1d656eCa00bD521f9b4A43B83098B8142e115 - USDT BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9 - USDT TRC20 TUR6Z9AVS4AYzqPnULoHrfFvppRbhXmNbZ - KASPA kaspa:qpxzufgfj8p6r0krg58yzvs0009h2mwqgvcawa0xc2pth7sgzpv56j4f6dtvk - PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Sign up for a Bybit account and claim exclusive rewards HERE

New ways to earn money with Linkvertise HERE

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.





×
  • Create New...