Jump to content

Z97X-UD5H 4770K - Need help with DSDT Patching


26 posts in this topic

Recommended Posts

Hi,

 

I am having trouble compiling my DSDT. 

 

Original DSDT attached below.

 

Here is the patch:

 

Quote

# Maintained by: PJALM (help@pjalm.com) for: http://pjalm.com/repos/

# These patches are the registered property of PJALM.COM and can not be
# redistributed or modified without the written consent of PJALM.COM.
# Links to these patches are allowed. All material is protected under the DMCA.

# Last Updated  : 05/07/2016
# Patch Name    : Z97X-UD5H
# Patch Version : 1.0

#External Fixes
into_all all code_regex \/\*\sExternal\sreference\s\*\/\s+ removeall_matched;
into definitionblock code_regex ,\sUnknownObj removeall_matched;

into definitionblock code_regex External\s\(_SB_.PCI0.PEG0\)\s+ removeall_matched;
into definitionblock code_regex External\s\(_SB_.PCI0.PEG0.PEGP\)\s+ removeall_matched;
into definitionblock code_regex External\s\(_SB_.PCI0.PEG1\)\s+ removeall_matched;
into definitionblock code_regex External\s\(_SB_.PCI0.PEG2\)\s+ removeall_matched;
into definitionblock code_regex External\s\(_SB_.PCI0.PEGP\)\s+ removeall_matched;
into definitionblock code_regex External\s\(_SB_.PCI0.PEGP.GFX0\)\s+ removeall_matched;

# Add the DTGP method
into method label DTGP remove_entry;
into definitionblock code_regex . insert begin
Method (DTGP, 5, NotSerialized)\n
{\n
    If (LEqual (Arg0, Buffer (0x10)\n
            {\n
                /* 0000 */    0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,\n
                /* 0008 */    0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B\n
            }))\n
    {\n
        If (LEqual (Arg1, One))\n
        {\n
            If (LEqual (Arg2, Zero))\n
            {\n
                Store (Buffer (One) { 0x03 }, Arg4)\n
                Return (One)\n
            }\n
            If (LEqual (Arg2, One))\n
            {\n
                Return (One)\n
            }\n
        }\n
    }\n
    Store (Buffer (One) { 0x00 }, Arg4)\n
    Return (Zero)\n
}
end;

# Add Darwin to the supported operating systems
into method label _INI code_regex (\s+)(If\s\(_OSI\s\("Windows\s2001"\)\)) replace_matched begin  \n
                        If (_OSI ("Darwin"))\n
                        {\n
                            Store (0x2710, OSYS)\n
                        }\n
\n
                        $2
end;

# Intel 9 Series Fixes
into_all all code_regex _T_([0-6]) replaceall_matched begin T_%1 end;

into_all method label _INI code_regex INIR\n replace_matched begin Store (Zero, INIR)\n end;

into device label PCI0 code_regex (\s+Zero){2,} remove_matched;
into_all method label ADBG code_regex (?<=Return\s\(MDBG\))\s+Arg0 remove_matched;
into_all method label _PS3 code_regex PS3X\n replace_matched begin Store (Zero, PS3X)\n end;
into_all method label _PS2 code_regex PS2X\n replace_matched begin Store (Zero, PS2X)\n end;
into_all method label _PS0 code_regex PS0X\n replace_matched begin Store (Zero, PS0X)\n end;

into_all method label GPEH insert begin Return (Zero) end;

into method label _CRS parent_label PCI0 code_regex DWordField\s\(BUF0,\s\\_SB.PCI0._Y1E._LEN,\sMSLN\) replace_matched begin QWordField (BUF0, \\_SB.PCI0._Y1E._LEN, MSLN) end;

into_all all code_regex Acquire\s\(MUT0,\s0x0FFF\) replace_matched begin Acquire (MUT0, 0xFFFF) end;

into method label _HID parent_label _SB.PCI0.LPCB.TPM code_regex (Return\s\(Zero\)) remove_matched;
into method label _HID parent_label _SB.PCI0.LPCB.TPM insert begin Return (Zero) end;

into method label _PS0 parent_label NVM0 code_regex (Return\s\(Zero\)) remove_matched;
into method label _PS0 parent_label NVM0 insert begin Return (Zero) end;

into method label _PS0 parent_label XHC code_regex (Return\s\(Zero\)) remove_matched;
into method label _PS0 parent_label XHC insert begin Return (Zero) end;

into method label _PS0 parent_label RHUB code_regex (Return\s\(Zero\)) remove_matched;
into method label _PS0 parent_label RHUB insert begin Return (Zero) end;

into method label _PS3 parent_label NVM0 code_regex (Return\s\(Zero\)) remove_matched;
into method label _PS3 parent_label NVM0 insert begin Return (Zero) end;

into method label _PS3 parent_label XHC code_regex (Return\s\(Zero\)) remove_matched;
into method label _PS3 parent_label XHC insert begin Return (Zero) end;

into method label _DSM parent_label SHUB code_regex (Return\s\(Zero\)) remove_matched;
into method label _DSM parent_label SHUB insert begin Return (Zero) end;

into method label RDCA parent_label SHUB code_regex (Return\s\(Zero\)) remove_matched;
into method label RDCA insert begin Return (Zero) end;

into method label CNRS parent_label SHUB code_regex (Return\s\(Zero\)) remove_matched;
into method label CNRS insert begin Return (Zero) end;

into method label SPL1 parent_label SHUB code_regex (Return\s\(Zero\)) remove_matched;
into method label SPL1 insert begin Return (Zero) end;

into method label OE1X parent_label _GPE code_regex (Return\s\(Zero\)) remove_matched;
into method label OE1X parent_label _GPE insert begin Return (Zero) end;

# into method label TINI parent_label _SB.PCI0.RP05 code_regex (Return\s\(Zero\)) remove_matched;
into method label TINI parent_label _SB.PCI0.RP05 insert begin Return (Zero) end;

into method label TWAK parent_label _SB.PCI0.RP05 code_regex (Return\s\(Zero\)) remove_matched;
into method label TWAK parent_label _SB.PCI0.RP05 insert begin Return (Zero) end;

into method label TPTS parent_label _SB.PCI0.RP05 code_regex (Return\s\(Zero\)) remove_matched;
into method label TPTS parent_label _SB.PCI0.RP05 insert begin Return (Zero) end;

into method label SMSR parent_label _SB code_regex CreateDWordField\s\(Arg0,\s0x04,\sAEBX\)\s+ remove_matched;
into method label SDSP parent_label AMW0 code_regex CreateDWordField\s\(Arg0,\sZero,\sACTN\)\s+ remove_matched;
into method label GDSP parent_label AMW0 code_regex CreateDWordField\s\(Arg0,\sZero,\sACTN\)\s+ remove_matched;
into method label DEVS parent_label AMW0 code_regex CreateDWordField\s\(Arg0,\s0x04,\sCPAR\)\s+ remove_matched;

# Device injection for the Intel 9 Series SATA
into device label SAT0 set_label begin SATA end;
into_all all code_regex SAT0 replaceall_matched begin SATA end;
into device label SAT1 remove_entry;
into_all scope label _SB.PCI0.SAT0.PRT0 set_label begin _SB.PCI0.SATA.PRT0 end;
into_all scope label _SB.PCI0.SAT0.PRT1 set_label begin _SB.PCI0.SATA.PRT1 end;
into_all scope label _SB.PCI0.SAT0.PRT2 set_label begin _SB.PCI0.SATA.PRT2 end;
into_all scope label _SB.PCI0.SAT0.PRT3 set_label begin _SB.PCI0.SATA.PRT3 end;
into method label _DSM parent_label SATA remove_entry;
into device label SATA insert begin
Method (_DSM, 4, NotSerialized)\n
{\n
    Store (Package (0x0A) {\n
        "AAPL,slot-name", "Built In",\n
        "name", "Intel AHCI Controller",\n
        "model", Buffer (0x2D) {"Intel 9 Series Chipset Family SATA Controller"},\n
        "device_type", Buffer (0x0F) {"AHCI Controller"},\n
        "device-id", Buffer (0x04) {0x02,0x1E,0x00,0x00}\n
    }, Local0)\n
    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
    Return (Local0)\n
}
end;

# Add the missing MCHC device
into device label MCHC parent_label PCI0 remove_entry;
into device label PCI0 insert begin
Device (MCHC)\n
{\n
    Name (_ADR, Zero)\n
}
end;

# Fix the LPC Device
into method label _DSM parent_label LPCB remove_entry;
into device label LPCB insert begin
Method (_DSM, 4, NotSerialized)\n
{\n
    Store (Package (0x02) {\n
        "compatible", Buffer () {"pci8086,8c44"}\n
    }, Local0)\n
    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
    Return (Local0)\n
}
end;

# Fix the SMBUS to allow for loading of the AppleSMBusController.kext
into device label BUS0 parent_label SBUS remove_entry;
into device label SBUS insert begin
Device (BUS0)\n
{\n
    Name (_CID, "smbus")\n
    Name (_ADR, Zero)\n
    Device (DVL0)\n
    {\n
        Name (_ADR, 0x57)\n
        Name (_CID, "diagsvault")\n
        Method (_DSM, 4, NotSerialized)\n
        {\n
            Store (Package (0x02) {\n
                "address", 0x57
            }, Local0)\n
            DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
            Return (Local0)\n
        }\n
    }\n
}
end;

# Fix HDEF device for the Realtek ALC1150 audio codec
into method label _DSM parent_label HDEF remove_entry;
into device label HDEF insert begin
Method (_DSM, 4, NotSerialized)\n
{\n
    Store (Package (0x10) {\n
        "AAPL,slot-name", "Built In",\n
        "name", "Realtek Audio Controller",\n
        "model", Buffer () {"Realtek ALC1150 Audio Controller"},\n
        "device_type", Buffer (0x10) {"Audio Controller"},\n
        "layout-id", Buffer (0x04) {0x01,0x00,0x00,0x00},\n
        "PinConfigurations", Buffer (Zero) {},\n
        "MaximumBootBeepVolume", Buffer(One) {0x40},\n
        "hda-gfx", Buffer (0x0A) {"onboard-1"}\n
    }, Local0)\n
    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
    Return (Local0)\n
}
end;

# Fixes 'Built-in' status for Intel Gigabit Ethernet
into method label _DSM parent_label GLAN remove_entry;
into device label GLAN insert begin
Method (_DSM, 4, NotSerialized)\n
{\n
    Store (Package (0x0C) {\n
        "AAPL,slot-name", "Built In",\n
        "name", "Intel Ethernet Controller",\n
        "model", "Intel I217-V Gigabit Network Controller",\n
        "device_type", Buffer (0x13) {"Ethernet Controller"},\n
        "built-in", Buffer (One) {0x01},\n
        "location", Buffer (0x02) {"1"}\n
    }, Local0)\n
    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
    Return (Local0)\n
}
end;

# Patches the Intel USB3 on Intel 9 Series chipsets
into method label _DSM parent_label XHC remove_entry;
into device label XHC insert begin
Method (_DSM, 4, NotSerialized)\n
{\n
    Store (Package (0x15) {\n
        "AAPL,slot-name", "Built In",\n
        "name", "Intel XHCI Controller",\n
        "model", Buffer (0x37) {"Intel 9 Series Chipset Family USB xHCI Host Controller"},\n
        "device_type", Buffer (0x0E) {"USB Controller"},\n
        "AAPL,current-available", 0x0834,\n
        "AAPL,current-extra", 0x0A8C,\n
        "AAPL,current-in-sleep", 0x03E8,\n
        "AAPL,current-extra-in-sleep", 0x0834,\n
        "AAPL,max-port-current-in-sleep", 0x0A8C,\n
        "AAPL,device-internal", 0x02,\n
        Buffer (One) {0x00}\n
    }, Local0)\n
    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
    Return (Local0)\n
}
end;

 

 

Regards,

Mohamed

DSDT.aml

Link to comment
Share on other sites

Hi, 

 

Thanks for the replies.

 

I cannot get the things done right now, as my PSU has failed on me, It had some shorting issues,but I temp-fixed it.I can still use it but for only 30mins. I will get the things done later. I should be getting one very soon in 4 days, hopefully.

 

@MaLd0n Are the things you sent me part of the same process as your " [Guide] Sierra / High Sierra on Intel 5, 6, 7, 8, 9 and x99 Chipset Series / Nehalem, SandyBridge, IvyBridge, Haswell, Broadwell" thread?

Link to comment
Share on other sites

14 hours ago, MaLd0n said:

here

CLOVER.zip

replace full clover folder, reboot and extract new dump with app

test sleep with power button, if work we add _PRW again

Mouse and keyboard not working once booted. Keyboard does work at the clover bootloader screen. I have not tested the mouse at the clover screen but I doubt it would have worked. I am not sure if other USB devices did/or did not work once macOS was booted.

Link to comment
Share on other sites

22 minutes ago, moman2000 said:

Mouse and keyboard not working once booted. Keyboard does work at the clover bootloader screen. I have not tested the mouse at the clover screen but I doubt it would have worked. I am not sure if other USB devices did/or did not work once macOS was booted.

DSDT.aml.zip

Link to comment
Share on other sites

15 hours ago, MaLd0n said:

here

CLOVER.zip

replace full clover folder, reboot and extract new dump with app

test sleep with power button, if work we add _PRW again

Sleep menu does not appear when holding power button.

Sleep works from Apple Menu, but I cannot wake with USB Devices. 

USB  2.0 USB ejected : Disk not ejected properly. Did not remount automatically

USB 3 USB still attached and mounted.

Sound does resume after sleep

Send me Mohameds-iMac.zip

Link to comment
Share on other sites

3 minutes ago, moman2000 said:

Sleep menu does not appear when holding power button.

Sleep works from Apple Menu, but I cannot wake with USB Devices. 

USB  2.0 USB ejected : Disk not ejected properly. Did not remount automatically

USB 3 USB still attached and mounted.

Sound does resume after sleep

Send me Mohameds-iMac.zip

u dont need it, if u remove it, use my first folder

MaLd0n 2018-06-04 às 14.59.17.png

 

Audio after sleep

CodecCommander ALC1150.kext.zip

Link to comment
Share on other sites

1 minute ago, MaLd0n said:

u dont need it, if u remove it, use my first folder

MaLd0n 2018-06-04 às 14.59.17.png

 

Audio after sleep

CodecCommander ALC1150.kext.zip

You miss-understood me, the audio works fine, I was just saying it also worked after sleep.

USB now stays mounted and connected.

 

The only problem is that I cannot wake via keyboard/mouse and that sleep takes too long, 20-25sec.

Link to comment
Share on other sites

3 minutes ago, moman2000 said:

You miss-understood me, the audio works fine, I was just saying it also worked after sleep.

USB now stays mounted and connected.

 

The only problem is that I cannot wake via keyboard/mouse and that sleep takes too long, 20-25sec.

send me new files

Link to comment
Share on other sites

18 minutes ago, MaLd0n said:

u need remove fakepciid xhcimux, u read msg above?

I am currently re-installing macOS because I lost access to the system. Re-install should take 10-15mins. Is a fresh install recommended when you help people out?

Link to comment
Share on other sites

7 minutes ago, moman2000 said:

I am currently re-installing macOS because I lost access to the system. Re-install should take 10-15mins. Is a fresh install recommended when you help people out?

install clover and replace with clover folder and last DSDT above, just it, have all u need inside folder

Link to comment
Share on other sites

14 minutes ago, MaLd0n said:

install clover and replace with clover folder and last DSDT above, just it, have all u need inside folder

All done and working. Wake from sleep works with keyboard and mouse, and display initialises by itself.

 

The only worries I have are this:

 

These pop-up at boot:

Unsupported CPU

Unsupported PCH

 

Could an SSDT fix the above errors?

Is there any way to make my system enter sleep quicker?

 

Thanks for your help, you have been a star :) 

I really do appreciate it because I have been chasing this hackintosh experience for such a long time and along the way things did not work out, and you have given me a great configuration. Thank you.

Link to comment
Share on other sites

Just now, moman2000 said:

All done and working. Wake from sleep works with keyboard and mouse, and display initialises by itself.

 

The only worries I have are this:

 

These pop-up at boot:

Unsupported CPU

Unsupported PCH

 

Could an SSDT fix the above errors?

Is there any way to make my system enter sleep quicker?

 

Thanks for your help, you have been a star :) 

I really do appreciate it because I have been chasing this hackintosh experience for such a long time and along the way things did not work out, and you have given me a great configuration. Thank you.

send me new files, i'll check logs

Link to comment
Share on other sites

2 minutes ago, MaLd0n said:

just ignore it, system is looks very good

Thank you.

Is there any way to get location services working properly for the use of "Find my Mac" and Siri weather? 

If it helps I also have a little TP-LINK WN725N-V2 Wi-Fi USB.

Link to comment
Share on other sites

 Share

×
×
  • Create New...