Contribute
Register

[Guide] Patching LAPTOP DSDT/SSDTs

Joined
Feb 19, 2014
Messages
28
Motherboard
Razer Blade 2016 QHD+
CPU
6700HQ
Graphics
GTX 970M

Attachments

  • ds.zip
    170 KB · Views: 58
  • Screen Shot 2018-05-04 at 3.26.11 PM.png
    Screen Shot 2018-05-04 at 3.26.11 PM.png
    70 KB · Views: 90

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,169
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Here, Sorry about that...

There are no errors in the DSDT.dsl you attached.
Make sure you are using correct tools with ACPI 6.1.
Post #1 has links for correct/recommended MaciASL/iasl.
 
Joined
Feb 19, 2014
Messages
28
Motherboard
Razer Blade 2016 QHD+
CPU
6700HQ
Graphics
GTX 970M
ohk..... Thanks a lot.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,169
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
****

Just a little note here.... Updated MaciASL, iasl, and patchmatic today.
 
Joined
Feb 18, 2014
Messages
53
Motherboard
Gigabyte H370 HD3
CPU
i5-8400
Graphics
GTX 1080
Mac
  1. MacBook Pro
Classic Mac
  1. LC
  2. Power Mac
  3. PowerBook
Mobile Phone
  1. Android
  2. iOS
Thanks to your guide, I was able to create a DSDT that enables (at least so far) proper sleep on my system.
I used the following patches:
  1. Shutdown Fix v2
  2. Fix _WAK Arg0 v2
  3. Shutdown restart (might not be needed)
  4. USB3 _PRW 0x6D Skylake (instant wake)
  5. Manually copied the patched _PRW method of XHCI to CNVW, since this was listed as wake reason before
My question: Could I put those patches into an add-on SSDT and thus safe myself from having to re-extract the DSDT after a new BIOS?
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,169
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
My question: Could I put those patches into an add-on SSDT and thus safe myself from having to re-extract the DSDT after a new BIOS?

Hotpatch is covered in the hotpatch guide, linked from post #1.
 
Joined
Apr 16, 2014
Messages
6
Motherboard
Clevo N750HU (Clover)
CPU
i7-7700HQ
Graphics
Intel HD Graphics 630, 1920x1080
Hi RehabMan,

I tried to patch my DSDT in order to get sleep working properly, but I always get the following error message when disassembling:

Code:
ACPI Error: ^PEG0.PEGP.LCD0: Path has too many parent prefixes (^) (20180427/nsaccess-568)
ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20180427/psobject-371)
ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20180427/psobject-371)

The first 4 lines of my DSDT.aml look like this:

Code:
// Firmware Error (ACPI): Failure looking up [^PEG0.PEGP.LCD0], AE_NOT_FOUND (20180427/dswload-498)
// // Invalid external declaration at AML offset 0x6f9 (see bz1397).
// Firmware Error (ACPI): Failure looking up [^PEG0.PEGP.LCD0], AE_NOT_FOUND (20180427/dswload2-468)
// // Invalid external declaration at AML offset 0x6f9 (see bz1397).

Full debug information attached, could you please have a look on why I get the LCD0 error, and how to fix it?

Thanks in advance!
 

Attachments

  • debug_25648.zip
    2.3 MB · Views: 23

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,169
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Hi RehabMan,

I tried to patch my DSDT in order to get sleep working properly, but I always get the following error message when disassembling:

Code:
ACPI Error: ^PEG0.PEGP.LCD0: Path has too many parent prefixes (^) (20180427/nsaccess-568)
ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20180427/psobject-371)
ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20180427/psobject-371)

The first 4 lines of my DSDT.aml look like this:

Code:
// Firmware Error (ACPI): Failure looking up [^PEG0.PEGP.LCD0], AE_NOT_FOUND (20180427/dswload-498)
// // Invalid external declaration at AML offset 0x6f9 (see bz1397).
// Firmware Error (ACPI): Failure looking up [^PEG0.PEGP.LCD0], AE_NOT_FOUND (20180427/dswload2-468)
// // Invalid external declaration at AML offset 0x6f9 (see bz1397).

Full debug information attached, could you please have a look on why I get the LCD0 error, and how to fix it?

Thanks in advance!

Just comment/remove those lines the go about fixing the other problems.
 
Joined
Apr 16, 2014
Messages
6
Motherboard
Clevo N750HU (Clover)
CPU
i7-7700HQ
Graphics
Intel HD Graphics 630, 1920x1080
Thx for the quick reply.

I tried that before, but when trying to save the file, I get the following error message:

Code:
29270, 6086, Not a control method, cannot invoke (^^^GFX0.DD1F is a Device)

Really don't know what that means, and where to fix it.
 

Attachments

  • maciasl-error.png
    maciasl-error.png
    76.4 KB · Views: 104

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,169
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Thx for the quick reply.

I tried that before, but when trying to save the file, I get the following error message:

Code:
29270, 6086, Not a control method, cannot invoke (^^^GFX0.DD1F is a Device)

Really don't know what that means, and where to fix it.

Remove the parenthesis. eg. "^^^GFX0.DD1F ()" -> "^^^GFX0.DD1F"
 
Top