Contribute
Register

[Guide] Patching LAPTOP DSDT/SSDTs

Preparing tools for disassembly
To properly disassemble your extracted files, you need the iasl compiler, which is run from Terminal.

You will need a recent build of iasl to disassemble them properly. There is an appropriate version available here: https://bitbucket.org/RehabMan/acpica/downloads/. It is a good idea to copy the iasl binary to your path (eg. /usr/bin), so it is easily accessed from Terminal.

For example, if you downloaded it to ~/Downloads/iasl.zip, you can extract and copy it in Terminal:
Code:
cd ~/Downloads
unzip iasl.zip
sudo cp iasl /usr/bin


Building the latest iasl from github

You can also build the latest version of my iasl from my github. The newer version of iasl will eventually be available at the bitbucket link, but for those who want to be on the "bleeding edge", you can build it yourself. The latest version always tends to have experimental and not well tested code.

Assuming you have Xcode installed:
Code:
mkdir ~/Projects && cd ~/Projects
git clone https://github.com/RehabMan/Intel-iasl.git iasl.git
cd iasl.git

Then build it:
Code:
make

At that point, you can install it with:
Code:
sudo make install

And assuming you have MaciASL.app installed to /Applications, you can use the new version (that you just built and installed to /usr/bin) in MaciASL as well:
Code:
sudo cp /usr/bin/iasl /Applications/MaciASL.app/Contents/MacOS/iasl62


I may have screwed something up doing this. How can I "undo" or deleted whatever file I may have created attempting the above?
 
Last edited by a moderator:
I may have screwed something up doing this. How can I "undo" or deleted whatever file I may have created attempting the above?

What file are you referring to?
 
What file are you referring to?
I went through the above process through "sudo make install". It took a while and I saw a bunch of errors so I am not sure I did it right in the first place and want to delete whatever I did and start over. What files do I have to delete in order to do that? Are they all in the "Projects" folder?
 
I went through the above process through "sudo make install". It took a while and I saw a bunch of errors so I am not sure I did it right in the first place and want to delete whatever I did and start over. What files do I have to delete in order to do that? Are they all in the "Projects" folder?

Are you talking about building iasl and installing it?
 
Hi.
Iwant to put 2 files in pached clover :dsdt and ssdt . when i put both only dsdt in active and the info from ssdt is not showing?
what am i doing wrong ? thanks
 

Attachments

  • DSDT.aml
    166.6 KB · Views: 94
  • SSDT-TB3.aml
    6.9 KB · Views: 99
these file are for difrent builed then the one in my info....
 
Hi.
Iwant to put 2 files in pached clover :dsdt and ssdt . when i put both only dsdt in active and the info from ssdt is not showing?
what am i doing wrong ? thanks
these file are for difrent builed then the one in my info....

No idea what you're asking. Please try to be more detailed.
And with any question you must provide complete PR files as per FAQ.
"Problem Reporting" files are incomplete.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 
I am trying to make the i2c driver of the laptop work. I have patched the dsdt with I2C Controllers (SKL), GPIO Controller Enable (SKL +) and Windows 10 Patch of the voodooi2c repository. This is what I think I need to run the trackpad and the touch screen (which I think use the same driver). Thanks.
 

Attachments

  • origin.zip
    122.4 KB · Views: 68
  • Errors.png
    Errors.png
    380.4 KB · Views: 88
  • ioregistry copy.zip
    11.4 MB · Views: 76
Back
Top