the-eric-kwok / SSDT-BATT_Auto_Gen

A python script to extract SSDT-BATT battery hotpatch from DSDT.
1 stars 0 forks source link

How to use the script? #1

Open Human79 opened 3 years ago

Human79 commented 3 years ago

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

the-eric-kwok commented 3 years ago

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! 😄

Human79 commented 3 years ago

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.

the-eric-kwok commented 3 years ago

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.

Human79 commented 3 years ago

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.

the-eric-kwok commented 3 years ago

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.

Human79 commented 3 years ago

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

the-eric-kwok commented 3 years ago

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.

the-eric-kwok commented 3 years ago

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

Human79 commented 3 years ago

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

the-eric-kwok commented 3 years ago

Sorry I forgot to say that you should add those patches inside comment of dsl file.

在 2021年5月21日,18:08,Human7900 @.***> 写道:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Human79 commented 3 years ago

I added those patches in config.plist.

Human79 commented 3 years ago

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

Human79 commented 3 years ago

Hey ,any update?