the-eric-kwok/SSDT-BATT_Auto_Gen

How to use the script?

Opened this issue · 13 comments

Hi
How to use the this script?
I know it is WIP but I want to try to create ssdt-batt for my system.
Also, DSDT.dsl should be patched or not?
Should the path to DSDT.dsl be in <.....>.

Yes, just

python3 Auto_Gen.py <path/to/DSDT.dsl>

Or

pypy3 Auto_Gen.py <path/to/DSDT.dsl>

You may want to switch to dev_rewrite_search_method branch since it can provide higher performance and new features like dual battery patch. But after all it's still in WIP and have a lot of bugs to be fix. You should know how to fix a wrong SSDT if you persist in using this project.
Actually I recommend ECEnabler if you don't know how to fix a wrong battery patch.
Have a great day/night! 😄

Hi,
I am facing this issue.
Capture

Looking forward to your reply.
Edit: I am using this tool to get cycle count working. I already have the a working ssdt and ECEnabler.
If you can help me getting the cycle count working with either my previous ssdt or ECEnabler it will solve my problem.
Thanks a ton.

You should remove the <> outside of path/to/DSDT. As well as & before the whole syntax (before path/to/python3). e.g.

cd "path to repo"

&"path/to/python" Auto_Gen.py "path/to/DSDT.aml"

And I believe this project will not get cycle count works for you.

Hey there,
I am getting the following errors
(a) using dev_rewrite_search_method
Capture3
It is stuck on this line.

(b) using master
Capture4
It says dual battery patch is not there but my laptop has single battery.
Note: I am using my untouched(native) DSDT.
Should I patch my dsdt from rehab man repo and then run this tool?
Regards.

Please attach your DSDT.aml here so that I could debug it. And with dev_rewrite_search_method do you sure it's stuck? Sometimes it needs more than 1 minute to search and patch the proper unit.

Native DSDT here
DSDT.aml.zip
Will re-run the dev_rewrite_search_method.

Battery_hotpatch.zip
It seems that the dev_rewrite_search_method is really stuck somewhere. Here I generate with the master branch and -F option to bypass the dual-battery-check. You could try this and see what happens.

I will leave this issue open until I fix that bug in dev branch.

Unfortunately, this ssdt breaks boot.
So, I tried to make my own ssdt hotpatch. Can you help me add _BIX method in the ssdt in order to display cycle count.
Attaching my ssdt.
Regards.
ssdt patch.zip

I added those patches in config.plist.

Unfortunately, this ssdt breaks boot.
So, I tried to make my own ssdt hotpatch. Can you help me add _BIX method in the ssdt in order to display cycle count.
Attaching my ssdt.
Regards.
ssdt patch.zip

Hey
Can you please help me implement the method listed here to enable cycle count . (to my own ssdt hotpatch which I uploaded above) :https://github.com/acidanthera/VirtualSMC/blob/master/Docs/Transition%20from%20zprood's%20cycle%20count%20hack.md

Hey ,any update?