Jump to content
onemanosx

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Recommended Posts

[ref]yamvmax[/ref], This is expected. You must now go to that error line and replace manually the second set of patches. Read the guide on post 1 under the section "Fixing 16 bit Method"

 

B1DC - B1B2(\_SB_.PCI0.LPCB.H_EC.ONE0,\_SB_.PCI0.LPCB.H_EC.MAN1)
B1FV - B1B2(\_SB_.PCI0.LPCB.H_EC.VF10,\_SB_.PCI0.LPCB.H_EC.VF11)
B1FC - B1B2(\_SB_.PCI0.LPCB.H_EC.CF10,\_SB_.PCI0.LPCB.H_EC.CF11)
B1CR - B1B2(\_SB_.PCI0.LPCB.H_EC.RC10,\_SB_.PCI0.LPCB.H_EC.RC11)
B1RC - B1B2(\_SB_.PCI0.LPCB.H_EC.CR10,\_SB_.PCI0.LPCB.H_EC.CR11)
B1LC - B1B2(\_SB_.PCI0.LPCB.H_EC.CL10,\_SB_.PCI0.LPCB.H_EC.CL11)

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)

Link to comment
Share on other sites

[ref]yamvmax[/ref], Did you read the guide?


Replace B1DC with

B1B2(\_SB_.PCI0.LPCB.H_EC.ONE0,\_SB_.PCI0.LPCB.H_EC.MAN1)

 

And B1FV with

B1B2(\_SB_.PCI0.LPCB.H_EC.VF10,\_SB_.PCI0.LPCB.H_EC.VF11)

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)

Link to comment
Share on other sites

[ref]yamvmax[/ref], Did you read the guide?


Replace B1DC with

B1B2(\_SB_.PCI0.LPCB.H_EC.ONE0,\_SB_.PCI0.LPCB.H_EC.MAN1)

 

And B1FV with

B1B2(\_SB_.PCI0.LPCB.H_EC.VF10,\_SB_.PCI0.LPCB.H_EC.VF11)

 

I read it. Its foreign language to me. Sorry, im sure its easy for you. Im trying the best i can. Thanks, will see if i can do this

ASUS VivoBook Flip 14 TP412UA-IH31T

Link to comment
Share on other sites

OK, I replaced all files...im stuck with this error. Im so close!


Added in 55 seconds:

[ref]yamvmax[/ref], We have to start somewhere. ;)

Yes we do...I have one error left...Heres a screen shot.


Added in 36 minutes 3 seconds:

Update!!!!!! Got a battery showing! Unfortunately its zero percent :(


Added in 3 minutes 47 seconds:

I will be buying you some beers when i get paid next week. You have been very patient with me!

Screen Shot 2019-06-17 at 10.17.30 AM.zip

ASUS VivoBook Flip 14 TP412UA-IH31T

Link to comment
Share on other sites

[ref]yamvmax[/ref], not at my mac right now. But, which battery kext are you using? Try to rebuild cache and permissions and see if that helps


Also, upload debug files by running this app RunMe

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)

Link to comment
Share on other sites

[ref]yamvmax[/ref], not at my mac right now. But, which battery kext are you using? Try to rebuild cache and permissions and see if that helps


Also, upload debug files by running this app RunMe

 

All that work...and now i cant boot...I tried installing ACIPBatterymanager.kext...and she wont boot. UGH. Any ideas? How do I boot without that kext?


Added in 1 minute 40 seconds:

I should have left it alone


Added in 2 minutes 55 seconds:

It bootedTook forever.........i now have 100% batt with acpibattmanager. I will try removing smcbatt manager


Added in 33 seconds:

Sick of me yet? :D


Added in 37 minutes 49 seconds:

OK, smcbatterymanager kext...And i get 0%. Using acpibattery kext i get 100%....they never change.

Send me richs-MBP.zip

ASUS VivoBook Flip 14 TP412UA-IH31T

Link to comment
Share on other sites

[ref]yamvmax[/ref], Virtualsmc kext will only work with smcbatterymanager kext. You are using virtualsmc with acpibatterymanager kext, which is wrong. If you prefer acpibatterymanager then use fakesmc kext.


Only use one of the combo and not both at the same time.

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)

Link to comment
Share on other sites

[ref]yamvmax[/ref], Virtualsmc kext will only work with smcbatterymanager kext. You are using virtualsmc with acpibatterymanager kext, which is wrong. If you prefer acpibatterymanager then use fakesmc kext.


Only use one of the combo and not both at the same time.

I am using vitualsmc, and smcbattery manager...I get 0 percent....I tried only acpibatterrymanager, and get only 100. I sent the logs using virtual and smcbatt.

ASUS VivoBook Flip 14 TP412UA-IH31T

Link to comment
Share on other sites

Why am I getting 0percent with virtual smc, and smcbattery?

No idea why. Possibly incompatibility issue with most Asus.

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)

Link to comment
Share on other sites

[ref]yamvmax[/ref], my comment based on your config


1. You are using the wrong battery kext for virtualsmc. Read my previous comment. Use a combo or the other and definitely not all together.

https://imgur.com/tn4eovy

 

Virtualsmc kext will only work with smcbatterymanager kext. You are using virtualsmc with acpibatterymanager kext, which is wrong. If you prefer acpibatterymanager then use fakesmc kext.


Only use one of the combo and not both at the same time.

 


2. Disable these battery related patches in clover plist

https://imgur.com/4BkGZ8b


3. Make sure windows patch is implemented in DSDT.


4. You may try my patched DSDT instead if you prefer.

yamvmax- DSDT.aml.zip

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)

Link to comment
Share on other sites

[ref]yamvmax[/ref], my comment based on your config


1. You are using the wrong battery kext for virtualsmc. Read my previous comment. Use a combo or the other and definitely not all together.

https://imgur.com/tn4eovy

 

 

 


2. Disable these battery related patches in clover plist

https://imgur.com/4BkGZ8b


3. Make sure windows patch is implemented in DSDT.


4. You may try my patched DSDT instead if you prefer.

yamvmax- DSDT.aml.zip

 

Wow. I completely forgot I had those edits in my config.plist. I will give that a try. Tha ks for being so understanding.

ASUS VivoBook Flip 14 TP412UA-IH31T

Link to comment
Share on other sites

Wondering why mine didnt?

 

No different from the patch I posted for you to try. Glad it works! Enjoy!


Btw, what is the model and make of your laptop?

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)

Link to comment
Share on other sites

 

 

No different from the patch I posted for you to try. Glad it works! Enjoy!


Btw, what is the model and make of your laptop?

 

Thats strange, wouldn't boot the other day. Its an ASUS VivoBook Flip 14 TP412UA-IH31T. BTW, Donation coming when I get paid. I really appreciate it.

ASUS VivoBook Flip 14 TP412UA-IH31T

Link to comment
Share on other sites

[ref]ameen[/ref], Hi, Sorry, I am not familiar with complex works for battery hot patch. But for certain it requires an extensive renames and overlay method that requires a lot of patience. ;)


However, for the kicks of it, try these files and see if works

 

Archive.zip

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)

Link to comment
Share on other sites

For my laptop Hp Pavilion 15-au028ur worked patch for HP 3165sf

I also experimented with manual patching and assembled my own version:

#Maintained by: RehabMan for: Laptop Patches
#Battery_HP-DV6-1380ek.txt

# created by RehabMan 2019-xx-xx
# based on Battery_HP-DV6-1380ek.txt
# additional patches for dv6-1380ek provided by chihab222, credit gsly

# works for:
#  HP Pavilion 15-au028ur, per Drovosek

into method label B1B2 remove_entry;
into definitionblock code_regex . insert
begin
Method (B1B2, 2, NotSerialized) { Return (Or (Arg0, ShiftLeft (Arg1, 8))) }\n
end;

# 16-bit EC0 registers
#                BADC,   16,
#                BFCC,   16,
#                MCUR,   16,
#                MBRM,   16,
#                MBCV,   16,
into device label EC0 code_regex BADC,\s+16, replace_matched begin ADC0,8,ADC1,8, end;
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;

# 16-bit method access
into method label CLRI code_regex (\^.*)MBRM replaceall_matched begin B1B2\(%1BRM0,%1BRM1\) end;
into method label UPBS code_regex (\^.*)MBRM replaceall_matched begin B1B2\(%1BRM0,%1BRM1\) end;
into method label UPBI code_regex (\^.*)BFCC replaceall_matched begin B1B2\(%1FCC0,%1FCC1\) end;
into method label UPBS code_regex (\^.*)MCUR replaceall_matched begin B1B2\(%1CUR0,%1CUR1\) end;
into method label UPBS code_regex (\^.*)MBCV replaceall_matched begin B1B2\(%1BCV0,%1BCV1\) end;

 

The only problem - when it reaches 100% charge, it no longer falls until you reset the CMOS (15-30 seconds hold down the power button on the laptop). In the rehabman guide there is a patch for ASUS in this case, there is a patch method FBST. There is no such method in my DSDT.


Can someone help?


Here's a patched and clean DSDT: https://vk.com/doc183234383_509697931

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