Jump to content
onemanosx

[Guide] Laptop Battery Indicator - The DSDT Patching Horror

Recommended Posts

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

Link to comment
Share on other sites

[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)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

[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)

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

[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)

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

[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)

Link to comment
Share on other sites

HI . can you fix battery for my laptop ?

Please look img :

I'm using https://github.com/acidanthera/VirtualSMC for show battery number , but it's not right !


In mac OS battery always charge Full (100% ) , it's very bad for battery health but in Win 10 jut charge up to 97% or 96% or stoping charge in other number like 92% !



110334-mac-battery-png


110335-bois-battery-jpg

V8 - CLOVER.zip

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