Contribute
Register

[Guide] Patching LAPTOP DSDT/SSDTs

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,285
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Yeah, you are right!

Should I make a new thread for this issue? I will do that.

BTW, Thank you so much for such a long helpful conversation!

I think you will find many topics on Thunderbolt.
And I think you will find no clear answers/solutions. It is very much a work in progress (for a long time now) and very complex.
 
Joined
Feb 16, 2016
Messages
20
Motherboard
Gigabyte-H97M-DS3P
CPU
i7-4790K
Graphics
HD 4600, RX 580 8GB
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
  2. iOS
  3. Other
Good Evening/Morning,

I have this fresh installed High Sierra ( thanks to your guide and contributions @RehabMan ), so far, everything is working now, I even have patched Discrete GPU by following your guide and I believe it is working, however, I tried to work fresh, deleted and re-generated from Clover by F4, and the moment I try
Code:
iasl -da -dl -fe refs.txt DSDT.aml SSDT*.aml
AFTER
Code:
pbpaste>refs.txt
Following your guide, I get many errors, (I have attached Terminal Output, and required files from your guide, "Q. What are typical "Problem Reporting" files?")

Thank you so much for giving your so much time and effort.
 

Attachments

  • debug_15074.zip
    5.6 MB · Views: 39
  • EFI.zip
    49.5 MB · Views: 58
  • Terminal Saved Output.txt
    177.9 KB · Views: 83
Joined
Sep 24, 2012
Messages
99
Motherboard
Alienware m15 R1
CPU
i7-8750H
Graphics
Intel HD 630/GTX 1070
Hello, could you fix the errors:

I dumped the aml files from Bios.

I used the code to disassembly aml files:
Code:
iasl -da -dl DSDT.aml SSDT*.aml

It gives me these:
Code:
Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20161210-64(RM)
Copyright (c) 2000 - 2016 Intel Corporation

Input file DSDT.aml, Length 0x26D29 (159017) bytes
ACPI: DSDT 0x0000000000000000 026D29 (v02 DELL   CBX3     01072009 INTL 20160422)
External object resolution file   SSDT-zpodd.aml
Input file SSDT-zpodd.aml, Length 0x51E (1310) bytes
ACPI: SSDT 0x0000000000000000 00051E (v02 AcpiRe zpodd    00001000 INTL 20160422)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file SSDT-xh_rvp3s.aml
Input file SSDT-xh_rvp3s.aml, Length 0x7FC (2044) bytes
ACPI: SSDT 0x0000000000000000 0007FC (v02 INTEL  xh_rvp3s 00000000 INTL 20160422)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file SSDT-xh_rvp16.aml
Input file SSDT-xh_rvp16.aml, Length 0xA2E (2606) bytes
ACPI: SSDT 0x0000000000000000 000A2E (v02 INTEL  xh_rvp16 00000000 INTL 20160422)
Pass 1 parse of [SSDT]
ACPI Error: [GPLD] Namespace lookup failure, AE_ALREADY_EXISTS (20161210/dswload-462)
ACPI Exception: AE_ALREADY_EXISTS, During name lookup/catalog (20161210/psobject-310)
Could not parse external ACPI tables, AE_ALREADY_EXISTS
 

Attachments

  • AML.zip
    570.5 KB · Views: 41
Last edited:
Joined
Sep 24, 2012
Messages
99
Motherboard
Alienware m15 R1
CPU
i7-8750H
Graphics
Intel HD 630/GTX 1070
I just disassembed ACPIs get from Clover instead, and convert them to asl with iasl.

But I always get errors when I compile them back. Could you help me convert the DSDT and SSDT aml files to asl, which I can compile?

I tried both
Code:
iasl -da -dl DSDT.aml SSDT*.aml
and
Code:
iasl -da -dl -fe refs.txt DSDT.aml SSDT*.aml

Neither DSDT asl files output are compilable with MaciASL.
 

Attachments

  • AMLs.zip
    481.4 KB · Views: 28
  • Screen Shot 2018-04-20 at 8.58.52 PM.png
    Screen Shot 2018-04-20 at 8.58.52 PM.png
    86.5 KB · Views: 53

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,285
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Good Evening/Morning,

I have this fresh installed High Sierra ( thanks to your guide and contributions @RehabMan ), so far, everything is working now, I even have patched Discrete GPU by following your guide and I believe it is working, however, I tried to work fresh, deleted and re-generated from Clover by F4, and the moment I try
Code:
iasl -da -dl -fe refs.txt DSDT.aml SSDT*.aml
AFTER
Code:
pbpaste>refs.txt
Following your guide, I get many errors, (I have attached Terminal Output, and required files from your guide, "Q. What are typical "Problem Reporting" files?")

Thank you so much for giving your so much time and effort.

No unusual errors with your files (with refs.txt, which is not required, or without it).
I disassembled: iasl -da -dl DSDT.aml SSDT*.aml
The only error is because of extraneous External(BNUM, which is addressed in the guide.
Read post #1.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,285
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
I just disassembed ACPIs get from Clover instead, and convert them to asl with iasl.

But I always get errors when I compile them back. Could you help me convert the DSDT and SSDT aml files to asl, which I can compile?

I tried both
Code:
iasl -da -dl DSDT.aml SSDT*.aml
and
Code:
iasl -da -dl -fe refs.txt DSDT.aml SSDT*.aml

Neither DSDT asl files output are compilable with MaciASL.

I disassembled your files: iasl -da -dl DSDT.aml SSDT*.aml

No unexpected/unusual errors found. Read post #1.
 
Joined
Feb 16, 2016
Messages
20
Motherboard
Gigabyte-H97M-DS3P
CPU
i7-4790K
Graphics
HD 4600, RX 580 8GB
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
  2. iOS
  3. Other
No unusual errors with your files (with refs.txt, which is not required, or without it).
I disassembled: iasl -da -dl DSDT.aml SSDT*.aml
The only error is because of extraneous External(BNUM, which is addressed in the guide.
Read post #1.
Thank you. I have done the whole process, no errors. Only step I skipped is creating and using refs.txt, is it okay? As you mentioned "which is not required", or I misunderstood?
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,285
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Thank you. I have done the whole process, no errors. Only step I skipped is creating and using refs.txt, is it okay? As you mentioned "which is not required", or I misunderstood?

Your files do not need refs.txt. refs.txt usually only needed with older ACPI sets that don't have embedded External opcodes.
 
Joined
Feb 16, 2016
Messages
20
Motherboard
Gigabyte-H97M-DS3P
CPU
i7-4790K
Graphics
HD 4600, RX 580 8GB
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
  2. iOS
  3. Other
Your files do not need refs.txt. refs.txt usually only needed with older ACPI sets that don't have embedded External opcodes.

Thank you sir. And thank you for explanation, I further researched and understood it even more now.
 
Joined
May 29, 2017
Messages
16
CPU
Intel Core i5-4210H
Graphics
Intel HD Graphics 4600
Mobile Phone
  1. iOS
here is my patched dsdt and ssd. can u help me check error of this? I didn't apply your recommend patch, I was patch for no error only
 

Attachments

  • CLOVER.zip
    10.9 MB · Views: 32
  • ioreg.zip
    617.2 KB · Views: 29
  • patchmatic.zip
    109 KB · Views: 28
  • acpi_DSL.zip
    104.3 KB · Views: 32
Top