Contribute
Register

[Guide] How to patch DSDT for working battery status

Oh wow, I wish there were a facepalm emoticon, this time the repo patch worked, but.
I disasembled again (-dl -da *.aml) still got the same disasembly warnings though. Same initial compilation error too.

Code:
    External (HBRT, MethodObj)    // Warning: Unresolved method, guessing 1 arguments
    External (HDOS, MethodObj)    // Warning: Unresolved method, guessing 0 arguments
    External (HNOT, MethodObj)    // Warning: Unresolved method, guessing 1 arguments
    External (IDAB, MethodObj)    // Warning: Unresolved method, guessing 0 arguments

I'm wondering what is the difference if I get the same warnings and compilation (PARSEOP unexpected / unexpected end file) errors. What's going on that I cant see.

The errors you mention are normal. The "-dl" flag only turns off "C" style disassembly.

If you mention which specific patch worked, I'll add your model to the comments.
 
Greetings Rehabman!

First off, I'd like to thank you for all your guides.
I've gotten my Acer v3-571g working almost near perfect (brightness/battery only fixes left).

I followed the guide and looked at some other battery patches in the repo for a better understanding.

The patch seemed to nearly work using the kext provided in the original post.
The battery status doesn't appear at the top, only sometimes randomly extremely quickly.

I've attached a zip with my original DSDT and the patched DSDT including a text file with the patch I applied.

I seemed to only have a 256 bit fix (SMD0) because the other ones weren't accessed.

Thank you once again!

Existing patch "Acer Aspire E1-571" is a match.
 
Applied that existing patch, however I'm having the same issue as mentioned before. I wonder what the issue could be. Applied the patch using the .dsl as well and recompiled and saved. Attached is the patch that has been applied (Acer E1-571) from the repo.

View attachment DSDT.AML
 
Applied that existing patch, however I'm having the same issue as mentioned before. I wonder what the issue could be. Applied the patch using the .dsl as well and recompiled and saved. Attached is the patch that has been applied (Acer E1-571) from the repo.

View attachment 171601

Download patchmatic: https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-patchmatic-2015-0107.zip
Extract the 'patchmatic' binary from the ZIP. Copy it to /usr/bin, such that you have the binary at /usr/bin/patchmatic.

In terminal,
Code:
if [ -d ~/Downloads/RehabMan ]; then rm -R ~/Downloads/RehabMan; fi
mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract

Note: It is easier if you use copy/paste instead of typing the commands manually.

Post contents of Downloads/RehabMan directory (as ZIP).

Also, post ioreg: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

And output from:
Code:
kextstat|grep -y acpiplat
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc

Also, post EFI/Clover folder (press F4 at main Clover screen before collecting). Please eliminate 'themes' directory, especially if you have an overabundance of themes installed.

Also post output of:
Code:
sudo touch /System/Library/Extensions && sudo kextcache -u /
 
Attached the requested items, thanks!
 

Attachments

  • RequestedItems.zip
    6.4 MB · Views: 56
Attached the requested items, thanks!

AppleACPIPlatform.kext is wrong for 10.10.

From where did you download OS X?

Note: Lots of other problems with your install (power management related).
 
AppleACPIPlatform.kext is wrong for 10.10.

From where did you download OS X?

Note: Lots of other problems with your install (power management related).

No wonder! Alright I'm going to replace it with the 10.10 kext. I've also got my SSDT working now, followed your guide on native power management and confirmed it's working. Rebooting and testing the results now. Will edit post upon results! Thanks mate.
 
I tried to replace the AppleAPCIPlatform.kext v9.9 to the v3.1 but somehow it says that the v9.9 is still loaded when I use kextstat to view it. Not sure why it's not loading the v3.1, I've deleted v9.9 and replaced it and rebuilt cache/permissions as well. Any idea why? Sorry for the double post!

Attached is the kext I used from a Vanilla Yosemite from the Mac App Store.
 

Attachments

  • AppleACPIPlatform.kext.zip
    9.8 KB · Views: 72
I tried to replace the AppleAPCIPlatform.kext v9.9 to the v3.1 but somehow it says that the v9.9 is still loaded when I use kextstat to view it. Not sure why it's not loading the v3.1, I've deleted v9.9 and replaced it and rebuilt cache/permissions as well. Any idea why? Sorry for the double post!

Attached is the kext I used from a Vanilla Yosemite from the Mac App Store.

Do a fresh install.
 
I can confirm that patch "[bat]ASUS G75VW" from https://github.com/RehabMan/Laptop-DSDT-Patch works on Asus X751LD laptop.

Thanks RehabMan!!!

battery.jpg
 
Back
Top