Jump to content
[ IMPORTANT ] Premium and Donators users ×
Olarila Professional Hackintosh Services ×

How to patch DSDT from scratch


haydendo

Recommended Posts

Hi. My laptop (ThinkPad T420s) is not on your DSDT list. Is it possible for me to create my own patched DSDT? I tried creating my own base DSDT.Using DSDT Editor app, Extract DSDT, compiled it, then Fix errors button, then installed it with multishit. When I rebooted my laptop, it now freezes. Is there a minimum required code change or patch for it to work?

Link to comment
Share on other sites

For some laptops (I know of some Samsung) you can't fix errors or it won't boot, so you need to use older version or run IASL from command line (it will create AML even if there are errors).


You may also have made some mistake, like saving DSL (source) instead of AML (binary).


Just extract and compile (fixing errors or not) won't make a difference. If you don't make any changes, it's the same as if you don't have a dsdt.aml at all.


Usual patches

http://Olarila.com/forum/viewtopic.php?f=19&t=634

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

Thank you. Some comments on the following:


For some laptops (I know of some Samsung) you can't fix errors or it won't boot, so you need to use older version or run IASL from command line (it will create AML even if there are errors).

-you mean older version of DSDT Editor? In running IASL from command line, DSDT Editor is still the tool to use?


You may also have made some mistake, like saving DSL (source) instead of AML (binary).

-On DSDT Editor, I click on "Save AML as..." then save it on desktop, then install it using multishit. Is this the proper way.


Just extract and compile (fixing errors or not) won't make a difference. If you don't make any changes, it's the same as if you don't have a dsdt.aml at all.

-This is correct. But my goal here is to have a working patched DSDT first which can I edit incrementally.

Link to comment
Share on other sites

-you mean older version of DSDT Editor? In running IASL from command line, DSDT Editor is still the tool to use?

Older version of IASL. The editor doesn't matter, can be any. If you use DSDT Editor, replace iasl in Contents/Resources/Java.

 

-On DSDT Editor, I click on "Save AML as..." then save it on desktop, then install it using multishit. Is this the proper way.

I don't know about multishit, but the rest is correct. I don't get why someone needs to use a tool to something as simple as drag and drop a file to a folder.

 

-This is correct. But my goal here is to have a working patched DSDT first which can I edit incrementally.

It won't be patched unless you patch it first.

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

Finally, I got a working DSDT without the need of a motherboard-specific/compatible patched file. Thanks for this forum for inputs, especially oldnapalm. Below are the steps I used and might help others. Please correct me for mistakes or let me know if it shouldn't be here.


A. Prepare a clean DSDT

1. Run a DSDT Editor on Windows 7 (of course, Windows version of DSDT Editor is used).

2. Then on File -> Extract DSDT.

3. On IASL -> Compile. Here I got 17 errors.

4. Click "Fix errors" button. I now have 0 errors, 3 warnings, 1 remark. Although I have compiled DSDT now. I decided to try to fix the Warnings and Remarks. For warnings which is just ("Not all control paths return a value...", I just added this statement at the end of erroring method: "Return (Zero)".

5. For the Remark message ("Use of compiler reserved name (_T_0), on Patch -> Open, I then browse "_T_x rename.txt" under "/Patches" folder which is included in the DSDT Editor package. Click "Apply" button.

6. Compile again and now it's all clean.


B. Apply a patch

1. A method (or function) that's always been called by almost all patches should be added to DSDT. It's called "DTGP". If it's not present, you'll get "Object does not exist (DTGP)" error. To do this, on Patch -> Open, and then browse to "DTGP.txt". Click "Apply" button again.

2. Now, copy an existing patch from here (http://Olarila.com/forum/viewtopic.php?f=19&t=634) or from an existing DSDT.aml that contains the patch you need.

3. Compile again.

4. If no errors are found, on IASL -> Save AML as... and save it with filename "DSDT.aml" on location accessible when you boot on Mac.

5. Boot to your hackintosh (Mac) now. Copy the "DSDT.aml" you saved to "/Extra" folder.

6. Reboot. That's it.

Link to comment
Share on other sites

The above mentioned is certainly helping me. I used the:


5) For the Remark message ("Use of compiler reserved name (_T_0), on Patch -> Open, I then browse "_T_x rename.txt" under "/Patches" folder which is included in the DSDT Editor package. Click "Apply" button.


method and those issues have been cleared. However I'm still receiving what's in the attachment. I can't seem to find anything in the provided directories to patch the errors. Please help. I can boot into my Hackintosh with boot flags -x -v & I got Ethernet to work but, I can't move past that to at least a normal boot without a good DSDT file.


Laptop: Acer Aspire Ethos 8951G-9630

Motherboard: Acer SM81_HR

Processor: Intel Core i7 2670QM @ 2.2-3.9GHz 64-bit ready Multi-core (4 total) Hyper-threaded (8 total)


Please help.

1609047370_DSDTErrorReadout.jpg.6ae735868626f037cb368224fd1ef167.jpg

Link to comment
Share on other sites

hello


remove the line with the error


like the editor say the the name already exist


about the warnings no problem


must be no error


save it DSDT.aml


and try it


good hack

PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI

Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000

My OS X Files 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...