Contribute
Register

[Success] b1's "Mac Mini Killer" with macOS Mojave: i7-8700 | Gigabyte Z370N | RX560 | 16GB RAM

Do you know if removing Inject Intel and the ig-platform-id would work on a Gigabyte Z270XP-SLI with an i7-7700k? I seem to recall reading that will only work on the Coffee Lake procs...any thoughts?

Just try.
 
I just disabled autopoweroff even though it's default value seems to state that after 8 hours it will kick in. However that was not the case for me; manually entering sleep after 1 min also did it. It seems that now it automatically sleeps after the monitor goes to sleep (what I want) and also if I do it manually. Will test over night with 8+ hours :)

Mine works :) Slept 8+ hours, no reboots.
 
Mine works :) Slept 8+ hours, no reboots.

Same here :) I left proximitywake == 1 just to see but even after 8 hours it woke up as normal. One thing I noted was that exactly after 8 hours I got this from pmset:

2018-09-29 00:38:04 +0200 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=inactive Using AC (Charge:0%) 28796 secs
2018-09-29 00:38:06 +0200 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(1959 ms)]
2018-09-29 08:37:59 +0200 Kernel Client Acks Delays to Sleep notifications: [CodecCommander driver is slow(msg: SetState to 0)(302 ms)] [en3 driver is slow(msg: WillChangeState to 0)(5287 ms)]
2018-09-29 08:37:59 +0200 Assertions PID 183(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008dc5 [System: BGTask SRPrevSleep kCPU]
2018-09-29 08:37:59 +0200 Assertions PID 1171(cloudphotosd) Released BackgroundTask "com.apple.cloudphotosd.darkwake.sync" 08:00:39 id:0x0xb00008dbd [System: PrevIdle BGTask SRPrevSleep kCPU]
2018-09-29 08:37:59 +0200 Assertions PID 183(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008dc5 [System: PrevIdle BGTask]
2018-09-29 08:37:59 +0200 AppWakeReason AppWoke:com.apple.bluetoothd Reason:proximity Wake
2018-09-29 08:37:59 +0200 Assertions PID 58(powerd) Created InternalPreventSleep "Assertion to change proximity monitoring state" 00:00:00 id:0x0xd00008dc8 [System: BGTask SRPrevSleep kCPU]
2018-09-29 08:37:59 +0200 Assertions PID 58(powerd) Created InternalPreventSleep "Holding in darkwake for user proximity for up to 1800 secs" 00:00:00 id:0x0xd00008dc9 [System: BGTask SRPrevSleep kCPU]
2018-09-29 08:37:59 +0200 Assertions PID 58(powerd) Released InternalPreventSleep "Assertion to change proximity monitoring state" 00:00:00 id:0x0xd00008dc8 [System: BGTask SRPrevSleep kCPU]
2018-09-29 08:38:00 +0200 Assertions PID 58(powerd) Created InternalPreventSleep "PM configd - Wait for Device enumeration" 00:00:00 id:0x0xd00008dca [System: BGTask SRPrevSleep kCPU]
2018-09-29 08:38:00 +0200 DarkWake DarkWake from AutoPowerOff [CDN] due to XDCI XHC/: Using AC (Charge:0%) 45 secs
2018-09-29 08:38:00 +0200 WakeDetails DriverReason:XHC - DriverDetails:
The machine was still sleeping when I got back to it after ~9 hours but I had that in the log. Ill try and disable proximitywake as well. Playing around with autopoweroffdelay settings as that's the only thing with a default 8 hour setting. Ive changed that to 20 min just to see the results faster.

Im back to just having darkwake selected under boot settings in Clover.
 
So I followed your EFI to a certain extent. I don't have the same DSDT patches exactly since we have different motherboards but everything else is pretty much the same. I am getting hit with a couldn't allocate runtime area issue. Any ideas?

Hardware: 8700k + RX 580 + Asus Z370
I have iGPU enabled.
 
So I followed your EFI to a certain extent. I don't have the same DSDT patches exactly since we have different motherboards but everything else is pretty much the same. I am getting hit with a couldn't allocate runtime area issue. Any ideas?

Hardware: 8700k + RX 580 + Asus Z370
I have iGPU enabled.

No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 
No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
Well that script requires that I am able to boot into Mac OS. However, I am stuck right after selecting an option in Clover. Whether I want to boot into Mac OS or install something new, I should be able to do that. I think it has something to do with my iGPU. I ran into this issue in the past where if I enabled iGPU, I wasn't able to boot, but if I disabled iGPU I was able to boot but with significantly lower performance (I used swapID + disabled iGPU to be able to boot). But now in Mojave, swapID seemed to be causing kernel crashes upon boot (after clover). So I removed it and Mac OS boots, but then I have the freezing issue that some people have had where the mouse moves but nothing else can be interacted with. Apparently iGPU has to be enabled to prevent that. But then I get hit with the cannot allocate runtime error. Hence why I was trying your efi and setup because yea maybe I missed something.

Im going to try to boot into Mac OS with iGPU disabled and see if I can run this debug script.

EDIT: Now im not able to boot into Mac OS at all even with my previous EFI and BIOS settings. Allocate runtime error. This is just so futile ugh
 
Last edited:
Well that script requires that I am able to boot into Mac OS. However, I am stuck right after selecting an option in Clover. Whether I want to boot into Mac OS or install something new, I should be able to do that. I think it has something to do with my iGPU. I ran into this issue in the past where if I enabled iGPU, I wasn't able to boot, but if I disabled iGPU I was able to boot but with significantly lower performance (I used swapID + disabled iGPU to be able to boot). But now in Mojave, swapID seemed to be causing kernel crashes upon boot (after clover). So I removed it and Mac OS boots, but then I have the freezing issue that some people have had where the mouse moves but nothing else can be interacted with. Apparently iGPU has to be enabled to prevent that. But then I get hit with the cannot allocate runtime error. Hence why I was trying your efi and setup because yea maybe I missed something.

Im going to try to boot into Mac OS with iGPU disabled and see if I can run this debug script.

EDIT: Now im not able to boot into Mac OS at all even with my previous EFI and BIOS settings. Allocate runtime error. This is just so futile ugh

That is why I always have a bootable clone of macOS :)

I think you should make I different thread for your problem.
 
That is why I always have a bootable clone of macOS :)

I think you should make I different thread for your problem.
Oh wait true thanks for reminding me. I do have a bootable clone. Lmao thanks. Yea I might end up making a separate thread anyways
 
BCM94352Z b1's "Mac Mini Killer" macOS Mojave Coffee Lake Build:
i7-8700 | Gigabyte Z370N | RX560 | 16GB RAM


View attachment 351172
View attachment 351173 View attachment 351174 View attachment 351175 View attachment 351176

Components

Intel Core i7-8700 non K

GIGABYTE Z370N WIFI

G.SKILL 16GB (2 x 8GB) DDR4 3200MHz

250GB Samsung 970 EVO M.2
I'm using two of this disk: one for macOS and one for Windows 10 (gaming).

250GB SanDisk Ultra II SATA III 2.5-Inch
I'm using this disk for a bootable clone of macOS Mojave.

Noctua NH-L9I
Great low profile cooler that fits my SFF case.

WiFi adapter from MacBook Air (BCM94360CS2)
Before that, I've tried BCM943602BAED and BCM94352Z. Both of this cards require some kexts to work in macOS, and they will not let your BT keyboard work in BIOS and Clover.

Flex 4.5L case and SeaSonic 300W 80+ Gold PSU ($200)
This is the custom made SFF case that comes with moded server PSU.

Comments
It is my first Hackintosh and the first PC build for a last 10 years. So I have a good chance to build a fully compatible system. I spend weeks on research. As a reward, I’ve got a fully working hack running macOS Mojave.

Use cases: Xcode, Sketch, Final Cut, VMs, light gaming in Windows.

BIOS
Actually, I can boot even with default BIOS setting, but I needed some tweaks for normal sleep/wake functionality. I've attached my BIOS, so you can try it if you have z370n motherboard. CPU undervolted to 1.125V. Be aware of it.

Config.plist
I have a few DSDT patches, darkwake=2, tweaks for Power Management and Hardware Acceleration with iGPU. SMBIOS is iMac18,3.

I've managed to figure out about all Config.plist settings and I keep them as minimal as possible. The same with drivers64UEFI folder and all efi's.

Kexts
I moved kexts to /Library/Extensions/, and left in Other only essential kexts that I might be needed during recovery mode. You can find all my kexts from /Library/Extensions/ in the attachment below.

When you copy kexts to /L/E/, don't forget to:

config.plist → System Parameters → Inject Kexts = Detect.
config.plist → RT Variables → CsrActiveConfig = 0x67 (disable SIP)

Don't copy kext with Finder, use terminal:
Code:
sudo cp -R KextToInstall.kext /Library/Extensions

and then:
Code:
sudo kextcache -i /

Otherwise, they will not be injected properly.

View attachment 354376

Graphics
MSI RX560 Aero working great with WhateverGreen.kext. iGPU for hardware acceleration working great too. I applied a few patches in config.plist and turned iGPU on in BIOS.

Sound
Works great with AppleALC.kext and some necessary tweaks in config.plist.

Networking
Ethernet works smoothly with IntelMausiEthernet.kext.

BT and WiFi work without any kexts. All related futures work too: unlock with Apple Watch, Connectivity, Hands-off, Airdrop, iMessege etc. Bluetooth keyboard and touchpad work in Clover, BIOS and during FileVault login.

Here are the BCM94360CS2 WiFi/BT drivers for Windows.

The only problem is that MacBook Air card doesn't fit the standard metal case on the motherboard. So I just removed this case. Also with included internal antennas, I have a weak BT signal. I ordered two external antennas, hope they will fix my problem.

Sleep
Sleep and wake work with darkwake=2. Here is my actual pmset info:

View attachment 353518

USB
I followed Rehabman's directions to create an SSDT to inject only the USB ports on the motherboard. You can find it in ACPI → patched folder. If you use a front panel USB or connect anything to internal USB-port on the motherboard, you should make your own custom SSDT. Mine SSDT is only for back panel USBs.

USB 3.0 and USB-C works perfectly without any port limit patches in Clover.

Clover Boot options
I have 3 internal drives: System, Clone and Windows. Clover boot screen is a bit messy because of that. So I made FileVault compatible Custom boot entries to have only 3 icons. Other boot options are Hide. I can access them with F3 button.

View attachment 354381

You should reconfigure this Custom boot entries all just remove all of them.
View attachment 354378


Also, my system automatically boots to macOS. If you want the same behavior, you should change my disk UUID to yours.
View attachment 354380

Thermals
CPU is decided and undervolted to 1.125V: 34–37°C in idle and 66–69°C in the Blender Benchmark or Prime95 (24°C ambient).
View attachment 351178

Performance
View attachment 351179

What Works
Everything: WiFi, BT, LAN, Audio, iMessage, Wake & Sleep, Universal Clipboard, USB 3, USB-C, DP-audio, Hands-off, AirDrop, Hardware Acceleration, Shutdown, Unlock with Apple Watch, you name it :)

What Doesn't Work
I can mention just PowerNap. I never experimented with it and don't want to do that.

Next Steps
I think to change my MSI RX560 Aero with Saphire RX570 ITX. This is the most powerful AMD card that can fit my case.

EFI Folder — https://d.pr/f/hXbvfR
Kexts you need to copy to /Library/Extensions/https://d.pr/f/p7xviD
BIOS settings (VCore=1.125V) — https://d.pr/f/RF8D87

I added more info and comments to the main post.
 
Back
Top