Contribute
Register

[Guide] How to patch DSDT for working battery status

Feartech

Moderator
Joined
Aug 3, 2013
Messages
18,568
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
iMac
Mobile Phone
iOS
I'm not very good at this coding stuff (None of this wording in this article I know) lucky, I found a .txt file for my laptop. Do I just open it in MaciASL? Then do I save it as a patch file. I'm not sure how all this works. I am not a tech savvy person. Any help would be great.
no, you open your extracted DSDT.DSL file, with macIASL, then load the patch into it
 
Joined
Apr 29, 2019
Messages
36
Motherboard
Lenovo Z50-70
CPU
i7-4510U
Graphics
Intel HD4400 1920x1080
Mobile Phone
Android
So the .txt file that I download from rehab man's repo. I open it wit macIASL and then what do I do from there?
 

Feartech

Moderator
Joined
Aug 3, 2013
Messages
18,568
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
iMac
Mobile Phone
iOS
So the .txt file that I download from rehab man's repo. I open it wit macIASL and then what do I do from there?
no, you open your DSDT.dsl file in macIASL then press the Patch button and copy and paste the contents of your text file in the Patch Text section, then you click apply
 

Feartech

Moderator
Joined
Aug 3, 2013
Messages
18,568
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
iMac
Mobile Phone
iOS
I tried to open the file with MaciASL and I get the error "The document “battery_Lenovo-Z50-70.txt” could not be opened. MaciASL cannot open files in the “text” format." however when I downloaded it, it only comes as a .txt not a .dsl
maybe read what i said above....
 
Joined
Apr 29, 2019
Messages
36
Motherboard
Lenovo Z50-70
CPU
i7-4510U
Graphics
Intel HD4400 1920x1080
Mobile Phone
Android
no, you open your DSDT.dsl file in macIASL then press the Patch button and copy and paste the contents of your text file in the Patch Text section, then you click apply
ok I went to get my DSDT.dsl file but I wen't to the patched folder and it is empty. What should I do in this case? There are other SSDT files but no DSDT files
 

Feartech

Moderator
Joined
Aug 3, 2013
Messages
18,568
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
iMac
Mobile Phone
iOS
ok I went to get my DSDT.dsl file but I wen't to the patched folder and it is empty. What should I do in this case?
it won't be in there if you haven't extracted yet, it will appear in your origin folder:
 
Joined
Apr 29, 2019
Messages
36
Motherboard
Lenovo Z50-70
CPU
i7-4510U
Graphics
Intel HD4400 1920x1080
Mobile Phone
Android
it won't be in there if you haven't extracted yet, it will appear in your origin folder:

Alright I will follow the guide so once I patch it I simply drag my DSDT.aml file to the patched folder and reboot?
 

Feartech

Moderator
Joined
Aug 3, 2013
Messages
18,568
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
iMac
Mobile Phone
iOS
Top