Jump to content

[Guide] Laptop Battery Indicator - The DSDT Patching Horror


Recommended Posts

Posted

[ref]Drovosek[/ref], Try

 

DSDT.aml.zip

 

* Disable all battery related hot patches in plist (if any).

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)

Posted

Drovosek, Try

DSDT.aml.zip

(28.68 KiB) Downloaded 1 time

* Disable all battery related hot patches in plist (if any)

 

Hey, thank you)).

With your DSDT file, the battery power can be drained after reaching 100% and the power is turned off. I haven't checked other situations yet (battery work in Windows or battery work in mac OS after reboot), but can you describe what kind of magic you did?


PS

I tried to open my DSDT file and yours and compare on this site (http://text.num2word.ru/). I looked a bit but realized that you renamed my 16-bit registers and remade SMD and SMD methods. Could you describe in more detail what you need to do to repeat your result?


Also I did not disable any patches in config.plist. I don't know what patches there affect the battery, could you name them?

https://vk.com/doc183234383_509797234


UPDATE:


I did some "tests" and laptop reboots (sometimes with CMOS reset) and noticed that with your DSDT the charge indicator still hangs sometimes. I don't know what this has to do with. Also it is sometimes corrected when I connect an Android smartphone as a USB modem (this was 1 time).

Posted

[ref]Drovosek[/ref], your patched DSDT for battery has patches that should not be applied.


I simply did the battery patch as per guide.


I suggest you head over to DSDT patch request section for full patched acpi.

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)

Posted

[ref]Drovosek[/ref], your patched DSDT for battery has patches that should not be applied.


I simply did the battery patch as per guide.


I suggest you head over to DSDT patch request section for full patched acpi.

 

Thanks for the advice.


I managed to cope with the problem. I read the relevant topic on the applelife forum, they recommend using the special boot argument with ACPIBatteryManager.kext,

either use VirtualSMC with a driver and additional cakes, or use cakes from HWSensors3.


Links:

https://applelife.ru/threads/applesmartbattery-batareja-noutbukov.31744/

-----

https://bitbucket.org/RehabMan/os-x-acpi-battery-driver/downloads/

https://github.com/RehabMan/OS-X-ACPI-Battery-Driver/commit/28a0fbdcd5ed7598315948af4e1228683ff2fff2#diff-04c6e90faac2675aa89e2176d2eec7d8

https://sourceforge.net/projects/hwsensors3.hwsensors.p/

https://github.com/acidanthera/VirtualSMC/releases


What did I do:


In ACPI / patched put your patched DSDT


Removed ACPIBatteryManager.kext

I downloaded HWSensors3 and dropped the other cakes into the Other folder - FakeSMC.kext, VoodooBatterySMC.kext and just in case ACPIMonitor.kext (but judging by what is written in the Readme it is not needed for the battery, but this is not certain).

The bug with the freezing of the charge indicator is 100% corrected.

But there is a mini-bug: Sometimes the charge percentage indicator freezes at random values, for example, 92% and then the N-th number of minutes does not change. If you click on the charge icon in the top panel, then after a couple of seconds, the charge indicator will be updated to the current one, for example, 98%.

Perhaps after a large number of minutes, the indicator will update itself, but the figure with the charge percentage "will make the jump."

Slice told me that most likely the SMC or something else is involved in updating the charge in macOS and to fix it, it is necessary that the HWMonitorSMC2 application be launched and it updates the charge itself.


Then I deleted FakeSMC.kext, VoodooBatterySMC.kext and ACPIMonitor.kext and used the cakes and driver from VirtualSMC. He was all the same as above with the HWSensors3 cakes.


So, we can assume that the problem is solved.

Posted

[ref]Drovosek[/ref], the correct combination of kext for battery status would be

1. virtualsmc+smcbatterymanager

2. fakesmc + acpibatterymanager


Never combine all or use any other combinations. In fact, voodoobatterysmc is irrelevant. Glad you figured it out.

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)

Posted

Wrong link to MaciASL. Please, fix it.

Fixed! Thanks!

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)

Posted

when I press patch it shows me nothing, there's no text no nothing its completely empty

What are you trying to patch specifically?

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)

Posted

I was just following the steps for the battery problem and it said press patch and scroll down to bat

Did you find a patch specific for 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)

Posted

no, because it shows me nothing when I go into patch and look for bat. everything is blank.

Then you will need to do your custom patch.

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)

Posted

<IMGUR id="b7b2nJ4"><a href=https://i.imgur.com/b7b2nJ4.png' alt='IMGUR>'>

 

hallo onemanosx,

I follow your tutorial, but i confused how to change it on my lenovo thinkpad e130

i need help


tks


my laptop thinkpad E130

intel core i5, RAM 8GB, INTELHD 4000 (High Sierra)

 

DSDT_PATCHACPI_Bat_err.zip


<IMGUR id="9drnl3p"><a href=https://i.imgur.com/9drnl3p.png' alt='IMGUR>'>

Posted

[ref]lasak12[/ref], Can you upload your original DSDT.aml and your intended custom patch?


I cant tell whats going on by just looking at your patched DSDT.

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)

Posted

[ref]lasak12[/ref], Can you upload your original DSDT.aml and your intended custom patch?


I cant tell whats going on by just looking at your patched DSDT.

 

yes, i can

 

this is DSDT Origin mylaptop


trims

Posted

this is DSDT Origin mylaptop

Since you did not upload your custom patch, can you list the bit integers that requires patching from the embeddedcontrol?

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)

Posted

Since you did not upload your custom patch, can you list the bit integers that requires patching from the embeddedcontrol?

 



I'm Sorry, just replied

Yes, this my list

SBRC, 16,

SBFC, 16,

SBAE, 16,

SBRS, 16,

SBAC, 16,

SBVO, 16,

SBAF, 16,

SBBS, 16

SBMD, 16,

SBCC, 16

SBDV, 16,

SBOM, 16,

SBSI, 16,

SBDT, 16,

SBSN, 16

SBCH, 32

SBMN, 128

SBDN, 128

 

qejVjqnN_t.png PRATaj8A_t.png

 

Correct me if i wrong

trims

Posted

[ref]lasak12[/ref], You are only expected to patch integers which are being called again in DSDT. SBRC as an example, is not being called anywhere else in DSDT. So, this is not required.


You also missed a few integers. SMD0 is an example of that.

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)

Posted

[ref]darkbluecode[/ref], Have you read the guide and troubleshoot what you might have missed?

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)

Posted

I can't compile the DSDT.aml bc it shows the errors...

Solved the compile error for you.

 

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)

Posted

[ref]Wizzard[/ref], new laptop? You can find the working DSDT in page 4 if you are still using your teclast

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)

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