Contribute
Register

[SUCCESS] Gigabyte Designare Z390 (Thunderbolt 3) + i7-9700K + AMD RX 580

Joined
Jan 19, 2019
Messages
248
Motherboard
Z390 M Gaming
CPU
i9-9900
Graphics
RX 580
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
@CaseySJ @Inqnuam

Thank you so much for the advice. The flash is finally successful:
It looks like the board need to be powered on for a while (I boot into bios and play with it , then power off);
then I follow:
To flash the Z390 Designare motherboard, please check the following:
  • 24-pin power cable attached to motherboard.
  • Power Switch on PSU turned ON.
  • But motherboard still powered OFF.
  • Pin 8 (Vcc) on the SOIC clip removed (because power is coming from PSU, not from Raspberry Pi).
And things are as smooth as my GC-Alpine Ridge.


@oreoapple
and check again your Raspberry SPI connections
 

CaseySJ

Moderator
Joined
Nov 11, 2018
Messages
16,178
Motherboard
Gigabyte Z490 Vision D
CPU
i5-10400
Graphics
RX 580
Mac
  1. MacBook Air
  2. MacBook Pro
  3. Mac Pro
Classic Mac
  1. Quadra
Mobile Phone
  1. iOS
@Ploddles @CaseySJ I tried the kexts from that link but I still don't get any output on the HDMI. I also re-applied the patch using the procedure with Hackintool after replacing the kexts, but still no change.

Any tips?
Sure, let's check the following:
  • Are you running Mojave or Catalina?
  • If Mojave, do you have Lilu and WhateverGreen in /Library/Extensions?
  • Please post your config.plist, but remove serial numbers from SMBIOS section. I'd like to check the Devices --> Properties section.
 
Joined
Feb 7, 2012
Messages
276
Motherboard
Gigabyte Z390 Designare
CPU
i7-9700K
Graphics
Vega 56
Mac
  1. MacBook
  2. MacBook Pro
Mobile Phone
  1. iOS
Disabling All Maintenance Wake Events During Sleep
Please do not quote this guide in its entirely. Post a link instead.​

This is a write-up on my Findings on getting Sleep working on my Hackintosh. Would love if @CaseySJ and other more learned members of the forum could peer-review this.

Before starting, remember to follow Casey's advice and have a Bootable backup ready just in case. Furthermore, the below is purely my findings based on trial and error on a system running 10.15.4. with iCloud (Find my Mac, Photos and Siri turned off, but everything else on) and Location Services turned on. It's also worth noting that my main aim was to achieve a system that slept within minutes, and didn't wake for anything (as I sleep with the Machine in my room, and can hear it wake, even if it's a Darkwake). Furthermore, I have found Wi-Fi to be a common denominator in all the tests I've done, and have therefore turned off Wifi in order to achieve to achieve full sleep (luckily my house is networked, and I turn on WiFi simply to airdrop and then turn if off again), therefore if this is something you cannot do, then it may not be worth reading the rest of this post.

Lastly, it is also worth noting too that I am currently using my ISP's provided modem/router, I've got an ASUS router on the way that is meant to be amazing, so hopefully that will allow me to keep WiFi on, as I'm not entirely convinced that the issue is on the Hackintosh side (there are some references in the sleep logs to PXSX Wifi offload that perhaps @iRamon can also talk about further)

----
The following steps were carried out (in this particular order) in order to achieve a system that slept within 3 minutes and didn't wake at all in the night.
  • The first thing I always do after a fresh install is to follow the Power Management terminal command that Casey has mentioned in the OP
Open Terminal from the Utilities folder and type the following:

Code:
cd /Library/Preferences
ls -l com.apple.PowerManagement.*

You will something like this:

Code:
-rw-r--r-- 1 root wheel 1349 Jan 28 04:17 com.apple.PowerManagement.61C48C50-8216-5692-8A44-0EE34A6E1959.plist
-rw-r--r-- 1 root wheel 749 Jan 28 04:17 com.apple.PowerManagement.plist

Now delete all of them by typing the command below, and reboot -- MacOS will rebuild the files automatically:

Code:
sudo rm com.apple.PowerManagement.*

Be very careful -- don't make any mistakes!
  • I then reboot and change my Energy Saver Preferences to ensure that all the boxes remain unticked (including Wake for Network access and PowerNap)
  • I then add the Darkwake = 0 boot argument via clover
  • I also run the sudo pmset -a tcpkeepalive 0 command via Terminal
  • I also run the sudo pmset -a proximitywake 0 command via Terminal
Lastly (and this has quite a few steps), we can edit a certain .plist file that literally nukes Tcpkeepalive (and also removes any Powernap options in Energy Pref Saver). The idea was taken from this thread. NOTE - the link says the below steps don't work with Catalina, however in my opinion, the OP couldn’t figure out how to edit the .plist file because in Catalina, these files are now set to read only. With some Googling, I managed to find a workaround.


1. First run ioreg -l | grep IOPlatformFeatureDefaults

The output on your mac should be like this;

Code:
{"TCPKeepAliveDuringSleep"=Yes,"DNDWhileDisplaySleeps"=No,"TCPKeepAliveExpirationTimeout"=43200,"NotificationWake"=Yes}

If not, then the below will not help you.

Further Prerequisites - SIP disabled (csrutil disable) and the command run in steps 2 and 3 via Terminal so that we can change the Macintosh HD folder from Read only mode to Edit mode

2. sudo mount -uw /
3. killall Finder
(Don’t worry, rebooting will turn your Macintosh HD back into read-only mode)

Then, do the following steps:

4. Go to this directory (via Cmd-Shift-G). You can also access inside kext files by right clicking -> Show Package Contents /System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/X86PlatformPlugin.kext/Contents/Resources
5. Find your board ID by typing ioreg -l | awk '/board-id/{print $4}' | sed 's/[<">]//g' into Terminal
6. In the resources folder, press Cmd+F and paste your board ID there to locate the file
7. Open the file in text edit and edit as per below

Code:
<key>TCPKeepAliveDuringSleep</key>
<false/>
<key>NotificationWake</key>
<false/>
<key>DNDWhileDisplaySleeps</key>
<true/>

8. Save file to desktop (make sure you save the extension as .plist)
9. Then go one step back on the folder path you were previously on by typing in /System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/X86PlatformPlugin.kext/Contents
10. Paste the file from the desktop into the resources folder by dragging it. Click ‘Replace’ when the pop-up comes up
11. TURN OFF WIFI
12. Reboot

Your machine should now no longer have PowerNap within Energy Saver preferences, however to triple check, follow the above steps to open the plist file you just edited, and ensure the boolean is set to False, False, True for the above assertions

If the above has been done correctly, then your machine should now sleep within 3 minutes. I am able to use Wifi for things like browsing, AirDrop etc, however I remember to turn it off once I'm done so the machine can sleep. My next test will be with a better router to see if it's something on the router side, or the Hackintosh side, however I can now sleep (along with my Mac) as this is solved for me.

I hope this helps!
 
Last edited:

CaseySJ

Moderator
Joined
Nov 11, 2018
Messages
16,178
Motherboard
Gigabyte Z490 Vision D
CPU
i5-10400
Graphics
RX 580
Mac
  1. MacBook Air
  2. MacBook Pro
  3. Mac Pro
Classic Mac
  1. Quadra
Mobile Phone
  1. iOS
@hamzab,

After verifying your procedure (but not actually testing the changes), I've added references to your guide as shown below. Can you please add the following title (centered, font-size 18, boldface) to your post: "Disabling All Maintenance Wake Events During Sleep". Then add a normal-size line: "Please do not quote this guide in its entirely. Post a link instead."


Added to Quick Reference Spoiler in Post #1:
Screen Shot 2020-07-27 at 4.41.09 PM.png



Added to Sleep Aid:
Screen Shot 2020-07-27 at 4.38.53 PM.png
 
Joined
Jan 19, 2019
Messages
248
Motherboard
Z390 M Gaming
CPU
i9-9900
Graphics
RX 580
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Hi @CaseySJ

I have the ASUS ThunderboltEX 3-TR but can't extract the firmware. The symptom is the same as to my Z390:
I got 'No EEPROM/flash device found.' message

I plugged in the card to my Z390 and I can confirm USB2 works (There is a USB2 cable there needs to be plugged in)
But since I don't have a ASUS motherboard, I can't plug in the TB header.
Maybe I need to somehow 'activate' the card with TB3 cable/header?
Like jump 3 and 5 in GC-Alpine Ridge?

Yes please extract and upload. I can modify it.
 

CaseySJ

Moderator
Joined
Nov 11, 2018
Messages
16,178
Motherboard
Gigabyte Z490 Vision D
CPU
i5-10400
Graphics
RX 580
Mac
  1. MacBook Air
  2. MacBook Pro
  3. Mac Pro
Classic Mac
  1. Quadra
Mobile Phone
  1. iOS
Hi @CaseySJ

I have the ASUS ThunderboltEX 3-TR but can't extract the firmware. The symptom is the same as to my Z390:
I got 'No EEPROM/flash device found.' message

I plugged in the card to my Z390 and I can confirm USB2 works (There is a USB2 cable there needs to be plugged in)
But since I don't have a ASUS motherboard, I can't plug in the TB header.
Maybe I need to somehow 'activate' the card with TB3 cable/header?
Like jump 3 and 5 in GC-Alpine Ridge?
I had the same problem with the older Asus ThunderboltEX-3 (Alpine Ridge), but with the resistor/capacitor circuit it was very easy to read/write. Does the owner's manual for ThunderboltEX 3-TR contain a pin diagram showing the signal carried on each pin of the Thunderbolt header?
 
Joined
Jan 19, 2019
Messages
248
Motherboard
Z390 M Gaming
CPU
i9-9900
Graphics
RX 580
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
No pin diagram in the manual.

So seems like next step is #16727 RC improvement method.

But even we flash it, if we can't figure out the pin map, it still can't be used as a 'stand-alone' card (regardless of which brand of motherboard we use) with some jumper wire, am I right?

I had the same problem with the older Asus ThunderboltEX-3 (Alpine Ridge), but with the resistor/capacitor circuit it was very easy to read/write. Does the owner's manual for ThunderboltEX 3-TR contain a pin diagram showing the signal carried on each pin of the Thunderbolt header?
 

CaseySJ

Moderator
Joined
Nov 11, 2018
Messages
16,178
Motherboard
Gigabyte Z490 Vision D
CPU
i5-10400
Graphics
RX 580
Mac
  1. MacBook Air
  2. MacBook Pro
  3. Mac Pro
Classic Mac
  1. Quadra
Mobile Phone
  1. iOS
No pin diagram in the manual.

So seems like next step is #16727 RC improvement method.

But even we flash it, if we can't figure out the pin map, it still can't be used as a 'stand-alone' card (regardless of which brand of motherboard we use) with some jumper wire, am I right?
If you look closely at the Thunderbolt header, do you see a chevron next to one of the pins, like this:

Screen Shot 2020-07-27 at 5.22.33 PM.png
 
Joined
Jul 15, 2019
Messages
155
Motherboard
Gigabyte Z390 Designare
CPU
i7-9700K
Graphics
UHD 630
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
Sure, let's check the following:
  • Are you running Mojave or Catalina?
  • If Mojave, do you have Lilu and WhateverGreen in /Library/Extensions?
  • Please post your config.plist, but remove serial numbers from SMBIOS section. I'd like to check the Devices --> Properties section.
@CaseySJ I'm running Catalina, and I do have the kexts on /Library/Extentions
File attached. Question: Why are Serial Numbers sensitive on hackintosh?
 

Attachments

  • config.plist
    11 KB · Views: 28
Last edited:
Top