Jump to content
racerx

Need help with creating a DSDT for a Gigabyte GA-Z77-UD5H

Recommended Posts

Hello all,


i am reading in the OSX86 scene for quite a while now and am trying to build a hackintosh myself for some time now. I started with a Asus P8Z68-V Pro mainboard but had several problems and it wasn't stable. So i decided to exchange it and get a Gigabyte mainboard because the support in building a hackintosh on them is way better.


I never really got a good working setup for sleep with the Asus no matter what was connected, set in Bios (patched to 3402) or trying different DSDT's (even creating one myself).


So my new Set for the hackintosh is now:


Intel Core i7 2600k

Gigabyte GA-Z77X-UD5H (UEFI F14)

8GB RAM

Geforce 560 Ti

OCZ Vertex 240 GB

Sonnet Network Card Presto Gigabit Pro


I started with putting the hackintosh together with the Gigabyte, made a fresh install of Mountain Lion with a unishit USB Stick and updated to 10.8.2.


Installed multishit Options:


UserDSDT or DSDT-Free Installation

ALC898 without DSDT (as i had no DSDT at that time - might change it later when DSDT is working)

Trim Enabler 10.8.1+

Fake SMC Plugins


This made a smbios.plist with MacPro3,1 and a org.chameleon.Boot.plist :


<?xml version="1.0" encoding="UTF-8"?>




GenerateCStates

Yes

GeneratePStates

Yes

Graphics Mode

1920x1200x32

GraphicsEnabler

Yes

Kernel

mach_kernel

Kernel Flags

darkwake=0

Legacy Logo

Yes

RestartFix

No

Timeout

2

UseKernelCache

Yes




Now booting without the Stick and HOOORRRAAAYYYYY it works with sleep and wakup with a mouse click!!!!! Oh GREAT! :D


Then i connected the rest of my peripherals to the USB Ports and F**** :evil: sleep is not working anymore…


By disconnected one after another i found out that two USB devices a causing the problems:

- my monitor has a USB-Hub with a cardreader and a cam built in

- a cardreader with USB Ports on the main case of the hackintosh


Arg… i thought i could get around the DSDT and have a Hackintosh without a DSDT…


When i try to put the hack to sleep it wakes up immediately and has this in the log:


17.11.12 11:37:29,000 kernel[0]: Wake reason: GLAN EHC2 EHC1

17.11.12 11:37:29,000 kernel[0]: The USB device HubDevice (Port 1 of Hub at 0x1a000000) may have caused a wake by issuing a remote wakeup (2)

17.11.12 11:37:29,000 kernel[0]: The USB device HubDevice (Port 1 of Hub at 0x1d000000) may have caused a wake by issuing a remote wakeup (2)

17.11.12 11:37:29,000 kernel[0]: The USB device 4-Port USB 3.0 Hub (Port 3 of Hub at 0x14800000) may have caused a wake by issuing a remote wakeup (1)

17.11.12 11:37:29,000 kernel[0]: The USB device 4-Port USB 3.0 Hub (Port 4 of Hub at 0x14800000) may have caused a wake by issuing a remote wakeup (1)

17.11.12 11:37:29,000 kernel[0]: The USB device HubDevice (Port 1 of Hub at 0x1a100000) may have caused a wake by issuing a remote wakeup (3)

17.11.12 11:37:29,000 kernel[0]: The USB device Microsoft® 2.4GHz Transceiver V1.0 (Port 2 of Hub at 0x1a100000) may have caused a wake by issuing a remote wakeup (3)

17.11.12 11:37:29,000 kernel[0]: The USB device HubDevice (Port 4 of Hub at 0x1a110000) may have caused a wake by issuing a remote wakeup (3)

17.11.12 11:37:29,000 kernel[0]: The USB device Digital Picture Frame (Port 2 of Hub at 0x1a114000) may have caused a wake by being disconnected


When i disconnect the two "problem" devices i get the following messages in the log with the woking sleep:


17.11.12 11:43:53,000 kernel[0]: Wake reason: GLAN EHC2

17.11.12 11:43:53,000 kernel[0]: The USB device HubDevice (Port 1 of Hub at 0x1a000000) may have caused a wake by issuing a remote wakeup (2)

17.11.12 11:43:53,000 kernel[0]: The USB device 4-Port USB 3.0 Hub (Port 4 of Hub at 0x14800000) may have caused a wake by issuing a remote wakeup (1)

17.11.12 11:43:53,000 kernel[0]: The USB device 4-Port USB 3.0 Hub (Port 3 of Hub at 0x14800000) may have caused a wake by issuing a remote wakeup (1)

17.11.12 11:43:53,000 kernel[0]: The USB device Microsoft® 2.4GHz Transceiver V1.0 (Port 2 of Hub at 0x1a100000) may have caused a wake by issuing a remote wakeup (3)


Made me think the problem has to be with the EHC1...


So i started with extracting the DSDT and got errors, remarks and warnings:


Non-hex letters must be upper case (pnp0c14) -> got fixed be hitting "Fix errors"

Rescource Tag larger than Field -> CreateDWordField changed to CreateQWordField -> clear

Result is not used, possible operator timeout will be missed -> Patch with Possible operator timeout is ignored.txt -> clear

_HID suffix must be all hex digits (GH) -> solved by changing "Name (_HID, "ABCDEFGH")" in "Name (_HID, "ABCDEF12")"


Reserved method must return a value (Integer/String required for _HID) and Not all control paths return a value (_HID) (Both Warnings for the same line)->

	Method (_HID, 0, NotSerialized)
{
           If (TCMF) {}
           Else
           {
               Return (0x0201D824)
           }
    	}

changed to :

	Method (_HID, 0, NotSerialized)
   	{
           If (TCMF) 
           {
               Return (Zero)
           }
           Else
           {
               Return (0x0201D824)
           }
     	}



Several Remarks (Use of compiler reserved name (_T_0) & (_T_1) -> solved with the _T_x rename.txt Patch


Done all that, i have a DSDT throwing no errors, warnings or remarks to start to try to get sleep working.


I read on the forums that removing _PRW Methods would solve the problem. I went to the device EHC1 and removed the part:

            Method (_PRW, 0, NotSerialized)
           {
               Return (GPRW (0x0D, 0x04))
           }

But that didn't help… same messages in the log as before the remove of the EHC1 _PRW Method.


Than i found a thread about changing the _PSW Method from:

            Method (_PSW, 1, NotSerialized)
           {
               If (Arg0)
               {
                   Store (Ones, PWUC)
               }
               Else
               {
                   Store (Zero, PWUC)
               }
           }

to:

            Method (_PSW, 1, NotSerialized)
           {
               If (Arg0)
               {
                   Store (Zero, PWUC)
               }
               Else
               {
                   Store (Zero, PWUC)
               }
           }

But that didn't help either… same messages in the log as before the remove of the EHC1 _PRW and _PSW Method.


Then tried with darkwake=10 and without darkwake, but it didn't help... tried this ... and that ...


I am a little lost now… use the hackintosh without the cam and the cardreaders is not really an option…


I'd really appreciate it, if someone could help me and maybe others having problems with sleep and USB devices. Maybe i just don't see the right spot?


I'll attach the DSDT for the GA-Z77X-UD5H with the errors cleared, but no other changes or patches.


Are there other patches i should use on the DSDT for my mainboard? Or should other parts be changed?


Many many many thanks for your help

Racerx

DSDT.aml.zip

Link to comment
Share on other sites

Thanks for your help artur-pt, but still have the problems with the two devices connected. The hack goes to sleep and immediatly wakes up but i noticed the screen stays black until i click with the mouse.


Messages from the Log:


17.11.12 22:08:33,000 kernel[0]: Wake reason: GLAN EHC2 EHC1

17.11.12 22:08:33,000 kernel[0]: The USB device HubDevice (Port 1 of Hub at 0x1d000000) may have caused a wake by issuing a remote wakeup (2)

17.11.12 22:08:33,000 kernel[0]: The USB device HubDevice (Port 1 of Hub at 0x1a000000) may have caused a wake by issuing a remote wakeup (2)

17.11.12 22:08:33,000 kernel[0]: The USB device 4-Port USB 3.0 Hub (Port 3 of Hub at 0x14800000) may have caused a wake by issuing a remote wakeup (1)

17.11.12 22:08:33,000 kernel[0]: The USB device 4-Port USB 3.0 Hub (Port 4 of Hub at 0x14800000) may have caused a wake by issuing a remote wakeup (1)

17.11.12 22:08:33,000 kernel[0]: The USB device HubDevice (Port 1 of Hub at 0x1a100000) may have caused a wake by issuing a remote wakeup (3)

17.11.12 22:08:33,000 kernel[0]: The USB device HubDevice (Port 4 of Hub at 0x1a110000) may have caused a wake by issuing a remote wakeup (3)

17.11.12 22:08:33,000 kernel[0]: The USB device Digital Picture Frame (Port 2 of Hub at 0x1a114000) may have caused a wake by being disconnected

Link to comment
Share on other sites

Thanks Cassio for you helping, but that didn't fix the problem either. The log still says:


17.11.12 22:47:46,000 kernel[0]: Wake reason: EHC2 EHC1

17.11.12 22:47:46,000 kernel[0]: The USB device HubDevice (Port 1 of Hub at 0x1a000000) may have caused a wake by issuing a remote wakeup (2)

17.11.12 22:47:46,000 kernel[0]: The USB device HubDevice (Port 1 of Hub at 0x1d000000) may have caused a wake by issuing a remote wakeup (2)

17.11.12 22:47:46,000 kernel[0]: The USB device 4-Port USB 3.0 Hub (Port 3 of Hub at 0x14800000) may have caused a wake by issuing a remote wakeup (1)

17.11.12 22:47:46,000 kernel[0]: The USB device 4-Port USB 3.0 Hub (Port 4 of Hub at 0x14800000) may have caused a wake by issuing a remote wakeup (1)

17.11.12 22:47:46,000 kernel[0]: The USB device HubDevice (Port 1 of Hub at 0x1a100000) may have caused a wake by issuing a remote wakeup (3)

17.11.12 22:47:46,000 kernel[0]: The USB device HubDevice (Port 4 of Hub at 0x1a110000) may have caused a wake by issuing a remote wakeup (3)

17.11.12 22:47:46,000 kernel[0]: The USB device Digital Picture Frame (Port 2 of Hub at 0x1a114000) may have caused a wake by being disconnected

Link to comment
Share on other sites

Have you tried changing _PSW in both devices like below?

            Method (_PSW, 1, NotSerialized)
           {
               Store (Zero, PWUC)
           }

 

Did you try to disconnect the device "Digital Picture Frame"?

ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: OS X 10.8.4 • Linux Mint 15 • Windows 8

Link to comment
Share on other sites

As i wrote, when i disconnect the two USB devices ( my HP monitor's USB (cam, cardreader and USB-Hub) and the cardreader in my case) sleep is working...


I think i did change the _PSW in the EHC1. But not in EHC2, but...


I don't think the EHC2 brings any problems, because with the working sleep when the two devices a disconnected, the EHC2 shows in wake reason, but sleep was been working correct then..


Anyway i'll try it right now...stay tuned :)

Edited by Guest
Link to comment
Share on other sites

Olá amigo o problema é que dependendo da versão da bios o dsdt e diferente as vezes o computador tem comportamentos diferente tenta essa. A minha versão da bios: z77xud5h.16h

DSDT.aml.zip

Identificador do modelo: iMacPro1,1

Placa Mãe: Asus TUF Z390-PLUS GAMING (WI-FI)

conjunto de chips: Intel Z390

Memoria RAM: 1x16 GB Corsair 3000 MHz DDR4

Processador: Intel Core i7-8700K 3.70GHz

Placa de Video: Sapphire Radeon RX 590 NITRO+ Special Edition Dual, 8GB

Wireless/Bluetooth: BCM943602CS 16000Mbps 802.11AC

Link to comment
Share on other sites

  • Administrators

Donation with Paypal HERE

Donation with Stripe HERE

Donation with BuyMeaCoffee HERE

Donation with Mercado Livre HERE

Donation with Binance 0xdbe48ef6b158f1dd0035d7f49555c99e52f72714

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donation with PicPay @danielnmaldonado

Donation with PiX @danielnmaldonado@gmail.com

:guitar

Problems with Paypal Donate? Check HERE

Donated? Send me PM with files or use DSDT Patch Requests

6y0Bvfl.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.





×
  • Create New...
The popup will be closed in 15 seconds...