Jump to content
onemanosx

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Recommended Posts

RehabMan's battery patch worked for my laptop but I had to make some modifications. I'll write it here for future hackintoshers.

1. No existing patch supported my laptop(HP Pavilion au-003tx) so I tried the b1b2 method on my DSDT. This didn't work.

2. Tried out different patches for HP laptops but all gave errors. One patch(HP Pavilion n012tx) raised the least number of errors so I thought of tweaking it.

3. Applied b1b2 method on the missing parameters and it worked! 🎸🎸🎸

 

Laptop: HP Pavilion au-003tx

  • Like 1
Link to comment
Share on other sites

Hello dear members,

I began the process of patching my DSDT and there's only one error left, but I can't seem to find a solution anywhere.

Could someone help me with it please?

The part of the code:

   OperationRegion (SPRT, SystemIO, 0xB2, 0x02)
    Field (SPRT, ByteAcc, Lock, Preserve)
    {
        Return(0)
    }

The line is: Return(0)

The error: Code 6126 | syntax error, unexpected PARSEOP_RETURN, expecting ','or '}'

DSDT.zip

Link to comment
Share on other sites

  • Administrators
16 hours ago, mathewgx said:

Can anyone please check if I need any kind of patch for my battery?

use rehabman repo

 

9 hours ago, leafbottom said:

Hello dear members

Extract tables with F4 key in Clover boot screen, files generated in Clover/Acpi/origin, post here

-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
9 minutes ago, mathewgx said:

There is no patch for my laptop (DELL 5570).

ma ny dells work with only virtualsmc and battery plugin

-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

1 hour ago, MaLd0n said:

ma ny dells work with only virtualsmc and battery plugin

Sometimes battery jumps from 40% or so to 5-6% instantly.

i have changed battery (original) and the problem persists.

And I don't know if there is something wrong with my configuration or a hardware problem.

Link to comment
Share on other sites

  • Administrators
11 hours ago, leafbottom said:

Thanks for the reply. I've done as asked. Files attached. 

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

Ok Maldon and Onemanosx,
thanks for the guide but i need some help. 
I took the first step and I have several errors, if I proceed with the second step it doesn't work ...

This is my first step:

into device label EC code_regex B2RC,\s+16, replace_matched begin 2RC0,8, 2RC1,8, end;
into device label EC code_regex B2FC,\s+16, replace_matched begin 2FC0,8, 2FC1,8, end;
into device label EC code_regex B2FV,\s+16, replace_matched begin 2FV0,8, 2FV1,8, end;
into device label EC code_regex B2DI,\s+16, replace_matched begin 2DI0,8, 2DI1,8, end;
into device label EC code_regex B2CI,\s+16, replace_matched begin 2CI0,8, 2CI1,8, end;
into device label EC code_regex B2DC,\s+16, replace_matched begin 2DC0,8, 2DC1,8, end;
into device label EC code_regex B2DV,\s+16, replace_matched begin 2DV0,8, 2DV1,8, end;

I have too many errors, and the first (PICM) is not in the EC


Can I have a suggestion on how to proceed?

I attach the dsdt without my modification (point 1)
Try it yourself

 

 

DSDT.zip

Link to comment
Share on other sites

Can someone help me to patch battery on my laptop (Dell 5570)?

In dsdt there are BAT0 and BAT1.

I've read the guide but it is too complicated for me.

Could someone help me?

Battery percentage droping suddenly from 40-45% to 5-6% and it is driving me crazy. 

Here are the debug files if someone will.

Thanks in advance.


debug.zip

Link to comment
Share on other sites

Can someone please help me getting my battery status and % work again before adding my second ssd it was working Fine with this DSDT everything was working fine DSDTBeforeSecondSSDInstalled.zip  Then I have installed a second SSD and i couldn't boot up into my hack then i have changed DSDT to this DSDTAfterSecondSSDInstalled.zip i managed to boot to my hack again but my battery status isn't working so can anyone helps me getting my battery back to work again

Link to comment
Share on other sites

  • Administrators
On 5/8/2020 at 5:19 AM, divyesh jaiswal said:

try with only virtualsmc and battery plugin first

 

1 hour ago, mjoku said:

Can someone please help me getting my battery status

check 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

@MaLd0n I have tried to follow the steps and couldn't do it more than once one of my tries i have corrupted my dsdt file and another one i have destroyed it if you can help me which batch would fit with my laptop brand Eluktronics Mech 15 G2Rx of the ones provided by http://raw.github.com/RehabMan/Laptop-DSDT-Patch/master that would be a great help and if it's not available if you can help me doing it that would be a great help and Thanks in advance for your time and help.

Link to comment
Share on other sites

  • Administrators
39 minutes ago, mjoku said:

first try with virtualsmc and battery plugin

-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
2 hours ago, mjoku said:

@MaLd0n both of them are already installed with all of virtualSMC plugins and all of them working except battery indicator and i have tried more uninstalling them and reinstalling them again and still no Changes :(

inside device ec

g7DpIOV.png

u have many work

-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
1 hour ago, mjoku said:

@MaLd0n isn't there a patch fixing this part for me or should i keep trying myself on specific DSDT and saving a backup one so i can boot if there's something went wrong ?

go to step by step, save, backup

-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

just / many times

-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

  

16 hours ago, MaLd0n said:


Sei nem pra onde que vai! :D

Eu tentei usar patch com o Miasl, usando o path do Razerblade 15(por ter a configuração parecida com o Samsung Odyssey) mas não ativou a bateria :(

Me indicaria algum patch desse site?:

GitHub - RehabMan/Laptop-DSDT-Patch: Common DSDT patches for Ivy/Sandy/Haswell laptops for running OS X

 

Configuração do note:

i7 9750H

Nvidia GTX 1650

Cannon Lake PHC\Coffee Lake-H

Trackpad I2C HID (Elan)

Intel Wireless AC-9560

Realtek ALC 256

 

 

 

HahAhAH

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