-->Donations via PayPal [External Link Removed for Guests] :guitar
-->Installation/Post Installation Tutorial [Local Link Removed for Guests]
-->Useful Links [Local Link Removed for Guests]
-->Olarila Images - Updated images [Local Link Removed for Guests]
-->Guides and Tutorials [Local Link Removed for Guests]
-->Clover Folder for All Chipsets [Local Link Removed for Guests]
-->DSDT Patch Requests [Local Link Removed for Guests]

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

User avatar
onemanosx
Olarila Staff
Olarila Staff
Posts: 1344
Joined: 03 Feb 2018, 05:42
CPU: Intel i7-6700HQ HM170 Chipset
Motherboard: Acer Aspire VN7-592G Laptop
GPU: Intel HD 530 + Nvidia GTX 960M

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by onemanosx » 15 Jun 2019, 17:50

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]
15 Jun 2019, 16:41
Im dealing with a new problem...I had to reinstall everything due to a bad kext, now my patched dsdt makes my comp not boot. Is this normal? Do i need to repatch my dsdt? I thought my patched dsdt would have been fine.
DSDT should be fine with last working config
[External Link Removed for Guests]
[External Link Removed for Guests]

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)
yamvmax
Posts: 35
Joined: 05 Jun 2019, 18:26
CPU: i3
Motherboard: asus
GPU: intel

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by yamvmax » 15 Jun 2019, 19:41

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]
15 Jun 2019, 17:50
DSDT should be fine with last working config
Thinking my config.plist is f'd up. That would make me not boot. Correct? Is my full config.plist in that file I uploaded?
ASUS VivoBook Flip 14 TP412UA-IH31T
yamvmax
Posts: 35
Joined: 05 Jun 2019, 18:26
CPU: i3
Motherboard: asus
GPU: intel

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by yamvmax » 15 Jun 2019, 21:41

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]
14 Jun 2019, 12:00
yamvmax, Before I go any further, lets test your own patched DSDT. Please download smcbatterymanager.kext and replace acpibatterymanager.kext.

When using virtualsmc.kext, it is paired with smcbatterymanager.kext and not acpibatterymanager.kext

[External Link Removed for Guests]
I am back up running, I tried what you said....Nothing, still no battery. Are any edits to be done to my dsdt???

Added in 22 minutes 30 seconds:
I think my biggest issue is patching my dsdt...I get errors. I try using MacIASL, but i get syntex errors

Added in 2 minutes 29 seconds:
Also, I still have ACIPoller.kext...Leave that?
ASUS VivoBook Flip 14 TP412UA-IH31T
User avatar
onemanosx
Olarila Staff
Olarila Staff
Posts: 1344
Joined: 03 Feb 2018, 05:42
CPU: Intel i7-6700HQ HM170 Chipset
Motherboard: Acer Aspire VN7-592G Laptop
GPU: Intel HD 530 + Nvidia GTX 960M

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by onemanosx » 16 Jun 2019, 02:49

yamvmax, No idea what ACIPoller kext does.

Disable all patches shown here



There are also other patches you dont need. But that is not the scope in this topic here.

Try this:
DSDT.aml.zip
.

Use Virtualsmc +SMCBatteryManager Kexts
You do not have the required permissions to view the files attached to this post.
[External Link Removed for Guests]
[External Link Removed for Guests]

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)
yamvmax
Posts: 35
Joined: 05 Jun 2019, 18:26
CPU: i3
Motherboard: asus
GPU: intel

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by yamvmax » 16 Jun 2019, 11:15

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]
16 Jun 2019, 02:49
yamvmax, No idea what ACIPoller kext does.

Disable all patches shown here



There are also other patches you dont need. But that is not the scope in this topic here.

Try this: DSDT.aml.zip.

Use Virtualsmc +SMCBatteryManager Kexts
It wont boot. It starts, then i get the zero with slash through it

Added in 8 minutes 5 seconds:
Did you use my patched dsdt??? Because the one you uploaded is my original. My patched is patched for touchscreen and track pad working, which do with the patched.
You do not have the required permissions to view the files attached to this post.
ASUS VivoBook Flip 14 TP412UA-IH31T
User avatar
onemanosx
Olarila Staff
Olarila Staff
Posts: 1344
Joined: 03 Feb 2018, 05:42
CPU: Intel i7-6700HQ HM170 Chipset
Motherboard: Acer Aspire VN7-592G Laptop
GPU: Intel HD 530 + Nvidia GTX 960M

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by onemanosx » 16 Jun 2019, 11:51

yamvmax, I'll post the patch and you do it. That will be better.

Code: [Local Link Removed for Guests]

#16 bits registers
into device label H_EC code_regex B1DC,\s+16, replace_matched begin ONE0,8,MAN1,8, end;
into device label H_EC code_regex B1FV,\s+16, replace_matched begin VF10,8,VF11,8, end;
into device label H_EC code_regex B1FC,\s+16, replace_matched begin CF10,8,CF11,8, end;
into device label H_EC code_regex B1CR,\s+16, replace_matched begin RC10,8,RC11,8, end;
into device label H_EC code_regex B1RC,\s+16, replace_matched begin CR10,8,CR11,8, end;
into device label H_EC code_regex B1LC,\s+16, replace_matched begin CL10,8,CL11,8, end;
Manual Patch

Code: [Local Link Removed for Guests]

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)
Standard H_EC patch

Code: [Local Link Removed for Guests]

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

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

into device label H_EC insert
begin
Method (RE1B, 1, NotSerialized)\n
{\n
	OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n
	Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n
	Return(BYTE)\n
}\n
Method (RECB, 2, Serialized)\n
{\n
	ShiftRight(Arg1, 3, Arg1)\n
	Name(TEMP, Buffer(Arg1) { })\n
	Add(Arg0, Arg1, Arg1)\n
	Store(0, Local0)\n
	While (LLess(Arg0, Arg1))\n
	{
		Store(RE1B(Arg0), Index(TEMP, Local0))\n
		Increment(Arg0)\n
		Increment(Local0)\n
	}\n
	Return(TEMP)\n
}\n
end;

into device label H_EC insert
begin
Method (WE1B, 2, NotSerialized)\n
{\n
    OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n
    Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n
    Store(Arg1, BYTE)\n
}\n
Method (WECB, 3, Serialized)\n
{\n
    ShiftRight(Arg1, 3, Arg1)\n
    Name(TEMP, Buffer(Arg1) { })\n
    Store(Arg2, TEMP)\n
    Add(Arg0, Arg1, Arg1)\n
    Store(0, Local0)\n
    While (LLess(Arg0, Arg1))\n
    {\n
        WE1B(Arg0, DerefOf(Index(TEMP, Local0)))\n
        Increment(Arg0)\n
        Increment(Local0)\n
    }\n
}\n
end;
Read the guide on 1st post on how-to
[External Link Removed for Guests]
[External Link Removed for Guests]

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)
yamvmax
Posts: 35
Joined: 05 Jun 2019, 18:26
CPU: i3
Motherboard: asus
GPU: intel

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by yamvmax » 16 Jun 2019, 12:10

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]
16 Jun 2019, 11:55
yamvmax, I'll post the patch and you do it. That will be better.

Code: [Local Link Removed for Guests]

#16 bits registers
into device label H_EC code_regex B1DC,\s+16, replace_matched begin ONE0,8,MAN1,8, end;
into device label H_EC code_regex B1FV,\s+16, replace_matched begin VF10,8,VF11,8, end;
into device label H_EC code_regex B1FC,\s+16, replace_matched begin CF10,8,CF11,8, end;
into device label H_EC code_regex B1CR,\s+16, replace_matched begin RC10,8,RC11,8, end;
into device label H_EC code_regex B1RC,\s+16, replace_matched begin CR10,8,CR11,8, end;
into device label H_EC code_regex B1LC,\s+16, replace_matched begin CL10,8,CL11,8, end;
Manual Patch

Code: [Local Link Removed for Guests]

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)
Standard H_EC patch

Code: [Local Link Removed for Guests]

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

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

into device label H_EC insert
begin
Method (RE1B, 1, NotSerialized)\n
{\n
	OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n
	Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n
	Return(BYTE)\n
}\n
Method (RECB, 2, Serialized)\n
{\n
	ShiftRight(Arg1, 3, Arg1)\n
	Name(TEMP, Buffer(Arg1) { })\n
	Add(Arg0, Arg1, Arg1)\n
	Store(0, Local0)\n
	While (LLess(Arg0, Arg1))\n
	{
		Store(RE1B(Arg0), Index(TEMP, Local0))\n
		Increment(Arg0)\n
		Increment(Local0)\n
	}\n
	Return(TEMP)\n
}\n
end;

into device label H_EC insert
begin
Method (WE1B, 2, NotSerialized)\n
{\n
    OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n
    Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n
    Store(Arg1, BYTE)\n
}\n
Method (WECB, 3, Serialized)\n
{\n
    ShiftRight(Arg1, 3, Arg1)\n
    Name(TEMP, Buffer(Arg1) { })\n
    Store(Arg2, TEMP)\n
    Add(Arg0, Arg1, Arg1)\n
    Store(0, Local0)\n
    While (LLess(Arg0, Arg1))\n
    {\n
        WE1B(Arg0, DerefOf(Index(TEMP, Local0)))\n
        Increment(Arg0)\n
        Increment(Local0)\n
    }\n
}\n
end;
Read the guide on 1st post on how-to
I have been trying manual patches for weeks. I just cant figure it out. Im so lost.
ASUS VivoBook Flip 14 TP412UA-IH31T
yamvmax
Posts: 35
Joined: 05 Jun 2019, 18:26
CPU: i3
Motherboard: asus
GPU: intel

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by yamvmax » 16 Jun 2019, 23:33

I get errors when adding these.
ASUS VivoBook Flip 14 TP412UA-IH31T
User avatar
onemanosx
Olarila Staff
Olarila Staff
Posts: 1344
Joined: 03 Feb 2018, 05:42
CPU: Intel i7-6700HQ HM170 Chipset
Motherboard: Acer Aspire VN7-592G Laptop
GPU: Intel HD 530 + Nvidia GTX 960M

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by onemanosx » 17 Jun 2019, 08:52

yamvmax, What error? I used the same patch to your DSDT and compiled with no errors.
[External Link Removed for Guests]
[External Link Removed for Guests]

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)
yamvmax
Posts: 35
Joined: 05 Jun 2019, 18:26
CPU: i3
Motherboard: asus
GPU: intel

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by yamvmax » 17 Jun 2019, 11:49

Syntax errors,,end of line or something. Gonna try again today. If not, I'm done. I have no idea what I'm doing. All I need is battery working, so I'm get touchpad settings working.
ASUS VivoBook Flip 14 TP412UA-IH31T
yamvmax
Posts: 35
Joined: 05 Jun 2019, 18:26
CPU: i3
Motherboard: asus
GPU: intel

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by yamvmax » 17 Jun 2019, 12:52

OK, so my error is actually the b1 files are missing. How do I place them?
ASUS VivoBook Flip 14 TP412UA-IH31T
User avatar
onemanosx
Olarila Staff
Olarila Staff
Posts: 1344
Joined: 03 Feb 2018, 05:42
CPU: Intel i7-6700HQ HM170 Chipset
Motherboard: Acer Aspire VN7-592G Laptop
GPU: Intel HD 530 + Nvidia GTX 960M

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by onemanosx » 17 Jun 2019, 12:54

yamvmax, post screenshot.
[External Link Removed for Guests]
[External Link Removed for Guests]

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)
yamvmax
Posts: 35
Joined: 05 Jun 2019, 18:26
CPU: i3
Motherboard: asus
GPU: intel

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by yamvmax » 17 Jun 2019, 13:33

its a zip
You do not have the required permissions to view the files attached to this post.
ASUS VivoBook Flip 14 TP412UA-IH31T
User avatar
onemanosx
Olarila Staff
Olarila Staff
Posts: 1344
Joined: 03 Feb 2018, 05:42
CPU: Intel i7-6700HQ HM170 Chipset
Motherboard: Acer Aspire VN7-592G Laptop
GPU: Intel HD 530 + Nvidia GTX 960M

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by onemanosx » 17 Jun 2019, 13:35

yamvmax, 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"

Code: [Local Link Removed for Guests]

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)
[External Link Removed for Guests]
[External Link Removed for Guests]

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)
yamvmax
Posts: 35
Joined: 05 Jun 2019, 18:26
CPU: i3
Motherboard: asus
GPU: intel

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by yamvmax » 17 Jun 2019, 13:40

OK, i get that. right now it says b1dc, so i channge it to b1b2??? Then change b1fv to b1 b2????
ASUS VivoBook Flip 14 TP412UA-IH31T
User avatar
onemanosx
Olarila Staff
Olarila Staff
Posts: 1344
Joined: 03 Feb 2018, 05:42
CPU: Intel i7-6700HQ HM170 Chipset
Motherboard: Acer Aspire VN7-592G Laptop
GPU: Intel HD 530 + Nvidia GTX 960M

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by onemanosx » 17 Jun 2019, 13:41

yamvmax, Did you read the guide?

Replace B1DC with

Code: [Local Link Removed for Guests]

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

Code: [Local Link Removed for Guests]

B1B2(\_SB_.PCI0.LPCB.H_EC.VF10,\_SB_.PCI0.LPCB.H_EC.VF11)
[External Link Removed for Guests]
[External Link Removed for Guests]

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)
yamvmax
Posts: 35
Joined: 05 Jun 2019, 18:26
CPU: i3
Motherboard: asus
GPU: intel

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by yamvmax » 17 Jun 2019, 13:55

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]
17 Jun 2019, 13:41
yamvmax, Did you read the guide?

Replace B1DC with

Code: [Local Link Removed for Guests]

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

Code: [Local Link Removed for Guests]

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
User avatar
onemanosx
Olarila Staff
Olarila Staff
Posts: 1344
Joined: 03 Feb 2018, 05:42
CPU: Intel i7-6700HQ HM170 Chipset
Motherboard: Acer Aspire VN7-592G Laptop
GPU: Intel HD 530 + Nvidia GTX 960M

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by onemanosx » 17 Jun 2019, 13:57

yamvmax, We have to start somewhere. ;)
[External Link Removed for Guests]
[External Link Removed for Guests]

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)
yamvmax
Posts: 35
Joined: 05 Jun 2019, 18:26
CPU: i3
Motherboard: asus
GPU: intel

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by yamvmax » 17 Jun 2019, 14:19

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

Added in 55 seconds:
[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]
17 Jun 2019, 13:57
yamvmax, 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!
You do not have the required permissions to view the files attached to this post.
ASUS VivoBook Flip 14 TP412UA-IH31T
User avatar
onemanosx
Olarila Staff
Olarila Staff
Posts: 1344
Joined: 03 Feb 2018, 05:42
CPU: Intel i7-6700HQ HM170 Chipset
Motherboard: Acer Aspire VN7-592G Laptop
GPU: Intel HD 530 + Nvidia GTX 960M

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Post by onemanosx » 17 Jun 2019, 15:13

yamvmax, 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 [Local Link Removed for Guests]
[External Link Removed for Guests]
[External Link Removed for Guests]

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)
Post Reply

Return to “Guides and tutorials”