Contribute
Register

[Guide] How to patch DSDT for working battery status

How to patch DSDT for working battery status

Can we patch dynamically using Clover ?

For instance, we apply the external icon patch using the following:
so can we apply the battery patch dynamically ?

<key>KextsToPatch</key>
<array>
<dict>
<key>Comment</key>
<string>External icons patch</string>
<key>Find</key>
<data>
RXh0ZXJuYWw=
</data>
<key>Name</key>
<string>AppleAHCIPort</string>
<key>Replace</key>
<data>
SW50ZXJuYWw=
</data>
</dict>
</array>
 
How to patch DSDT for working battery status

Can we patch dynamically using Clover ?

For instance, we apply the external icon patch using the following:
so can we apply the battery patch dynamically ?

<key>KextsToPatch</key>
<array>
<dict>
<key>Comment</key>
<string>External icons patch</string>
<key>Find</key>
<data>
RXh0ZXJuYWw=
</data>
<key>Name</key>
<string>AppleAHCIPort</string>
<key>Replace</key>
<data>
SW50ZXJuYWw=
</data>
</dict>
</array>

This thread is for DSDT patch, not kext patching.
 
How to patch DSDT for working battery status

Ohh Sorry. So is there any way of making this Battery Status operational by patching the Kexts. Ammm may be AppleACPIPlatform.kext or maybe AppleSmartBatteryManager.kext etc.
I am using Clover, and Mavericks 10.9.2. and I dont really have the knowledge of DSDT edits, thats why I was asking. Thanks Rehabman :)
 
How to patch DSDT for working battery status

Ohh Sorry. So is there any way of making this Battery Status operational by patching the Kexts. Ammm may be AppleACPIPlatform.kext or maybe AppleSmartBatteryManager.kext etc.
I am using Clover, and Mavericks 10.9.2. and I dont really have the knowledge of DSDT edits, thats why I was asking. Thanks Rehabman :)

You can do it with a rollback of AppleACPIPlatform.kext (to the version in Snow Leopard). Not recommended though as doing so tends to cause other problems.
 
How to patch DSDT for working battery status

Yeah that will definitely cause other problems. So there is no way by which we can dynamically edit the DSDT using Clover for the Battery ? :(
 
How to patch DSDT for working battery status

Yeah that will definitely cause other problems. So there is no way by which we can dynamically edit the DSDT using Clover for the Battery ? :(

No. If you've read post #1, you'd realize the edits are complex and must be done manually.
 
How to patch DSDT for working battery status

Yeah they are. I am now trying to learn the DSDT Edits, and the ASL so I can do it. Thanks Rehabman :)
 
How to patch DSDT for working battery status

Hi RehabMan,

You're a freaking genius! With your guide, I was able to patch my DSDT and get the battery working 100%. I am really so grateful to you. I owe you man. I have attached my patch so you can add it to your repository. (Before working on this patch, I had applied renaming patch from your repo to rename some of the functions, methods or variables. Numerous other patches and fixes were applied as well. I don't know if that would affect a user who is working on virgin DSDT freshly fetched from BIOS).

It shows that I need to replace battery soon. It might be true as the battery is 2-3 years old but still holding charge for hours. I believe it is reading cycle count info reported by BIOS.

Thank you RehabMan!!
 

Attachments

  • HP-dv6t-6b00-CTO-Quad-Edition-Battery-Patch.txt
    8.3 KB · Views: 117
How to patch DSDT for working battery status

Yeah that will definitely cause other problems. So there is no way by which we can dynamically edit the DSDT using Clover for the Battery ? :(

I don't think there is a need for dynamic patching. As DSDT is patched once only. It does not change with new updates of OS X. I believe only the kext might need to be updated but I am not sure.
 
How to patch DSDT for working battery status

Hi RehabMan,

You're a freaking genius! With your guide, I was able to patch my DSDT and get the battery working 100%. I am really so grateful to you. I owe you man. I have attached my patch so you can add it to your repository. (Before working on this patch, I had applied renaming patch from your repo to rename some of the functions, methods or variables. Numerous other patches and fixes were applied as well. I don't know if that would affect a user who is working on virgin DSDT freshly fetched from BIOS).

It shows that I need to replace battery soon. It might be true as the battery is 2-3 years old but still holding charge for hours. I believe it is reading cycle count info reported by BIOS.

Thank you RehabMan!!

Nice/clean work. I will definitely add it to the repo for others.

The kext estimates cycle count (as it is not provided usually by ACPI methods) by this formula: (DesignCapacity-MaxCapacity)/6.

If you can determine where (if available) the EC stores battery cycle count, you can change the _BIF to return an extra entry in the result at position 13 in the array (position 14 can be for temperature).
 
Back
Top