Jump to content

[Guide] Laptop Battery Indicator - The DSDT Patching Horror


Recommended Posts

Posted

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
Posted

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

  • Administrators
Posted
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

-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

  • Administrators
Posted
9 minutes ago, mathewgx said:

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

ma ny dells work with only virtualsmc and battery plugin

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

  • Administrators
Posted
11 hours ago, leafbottom said:

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

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

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

Posted

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

Posted

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

  • Administrators
Posted
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

-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

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

  • Administrators
Posted
39 minutes ago, mjoku said:

first try with virtualsmc and battery plugin

-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

@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 :(

  • Administrators
Posted
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

-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

@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 ?

  • Administrators
Posted
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

-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 5/12/2020 at 4:56 AM, MaLd0n said:

try with only virtualsmc and battery plugin first

 

 

@MaLd0n, It doesn't work with only virtualSMC. I fixed 16-bit and 32-bit  registers, but, I don't know how to fix 128-bit registers. Please help.

  • Administrators
Posted

just / many times

-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

  

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

Posted (edited)

How can I do this, mano?

My Battery don't appear nas preferências do sistema

Edited by Zarach

HahAhAH

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