Gigabyte Z370N WIFI ITX Hackintosh Guide 4k HTPC Build

You don’t see many HTPC hackintoshes floating around so how about one built with an Intel Coffee Lake i3-8100 with full graphical acceleration unlocked and powering a 4k60 TV over HDMI w/ audio using only UHD 630 integrated graphics (3E91) with macOS High Sierra. For around the size and price of a base Mac Mini a hackintosh can be built that is much faster and of course much more customizable.

This is a golden build and using this guide included along with the same parts will create am awesome hackintosh to play with which has the following working:

  • Intel UHD 630 Graphic Acceleration 3E91 + 3E92
  • Sleep/Wake with Integrated Graphics
  • All USB 3 Type A/C ports
  • HDMI 4k60
  • HDMI/DP Audio
  • Rear and front Audio
  • Ethernet with both rear RJ-45 jacks
  • Hardware Encoding
  • WiFi + Bluetooth
  • iMessage, iCloud, iTunes, App Store, FaceTime, iBooks
  • Netflix HD w/ Chrome

Since this is a Home Theatre Hackintosh it needs to be able to run a 4k60 TV, which nowadays only come with HDMI inputs so it was super important to choose one of the three ITX motherboards that can run 4k60 over UHD 630 Integrated Graphics using only an HDMI without having to fumble with any DP to HDMI adapter inbetween. The Gigabyte Z370N WiFi ITX motherboard used for this build has two HDMI ports with the upper HDMI 2.0 supporting 4k60 in macOS. The Gigabyte H370N and ASRock Z370 Fatal1ty ITX/ac also support 4k60 with one of the two HDMI ports.

Coffee Lake UHD 630 Integrated Graphics 4k Display

To use HiDPI or Retina with integrated graphics select 1920 x 1080 in Display Preferences and it will display 4k60 with 200% scaling.

Because the i3 has a different version of Intel Graphics UHD 630 (3E91) compared to the i5 and i7 UHD 630 (3E92) of Coffee Lake, injecting the Device ID’s of Coffee Lake into the Kaby Lake Framebuffer and spoofing an i5/i7 Device ID (3E92) is required for i3 to be able to accelerate. With how well the Intel Graphics UHD 630 works with functioning sleep/wake and it’s 4k60 support there isn’t a need for a graphics card anymore when connected to a single display, which allows for even smaller computer cases like the MX500 used in this build, however if have a multi-monitor setup I recommend getting a graphics card to avoid the inconvenience of having to plug in the second monitor after booting.

Gigabyte Z30N Hackintosh Build Parts

Part Name Purchase
Total 517.95
CPU Intel Core i3-8100 Quad-Core Processor 107.99
CPU Cooler Intel Stock Cooler (Included) 0.00
Motherboard GIGABYTE Z370N WiFi ITX Motherboard 149.99
Memory CORSAIR Vengeance LPX 8GB 86.99
Storage PNY CS1311 128GB SSD 49.99
WiFi Card Broadcom BCM94352Z / Dell DW1560 WLAN + Bluetooth 22.00
Case MITXPC MX500 Industrial Fanless Mini-ITX Case w/120W 99.99
Power Supply 120W DC-DC Power Board (Included w/ Case) 0.00
Power Brick 120W AC Adapter (Included w/ Case) 0.00

The i3-8100 Quad-Core CPU is all that’s needed for such a small HTPC build and at 65W of power it won’t be putting out much heat with the stock Intel Cooler, a must for this tiny case I stuffed everything in. The reason I went with the Gigabyte Z370N ITX motherboard instead of the Gigabyte Hz370N ITX is because the Z370 version includes more USB ports, which is a MUST to avoid using adapters like MacBook users are forced to do. And of course this motherboard was selected for it’s inclusion of an HDMI 2.0 allowing 4k60 with only an HDMI cable.

The stock Intel cooler + SSD can fit together by not using the included SSD bracket so I simply rested my PNY SSD over the PCIe slot instead.

This case is dwarfed by the TV it’s connected to with it’s size being only a measly 9″ x 7.7″ and just able as tiny as you can go with ITX.

HTPC Hackintosh Banana Comparison

This ITX build is so small its size is comparable to a banana!

This version of this case includes a power supply and power brick which saves a decent amount without needing to buy a separate mini PSU and laptop power brick to power it. At the price paid it’s well worth it as the reason their able to include all this stuff for the price your paying for this case is because their the actual manufactures of the picoPSU. There is also a PSU-less version of this case for half the price.

MX500 ITX Case PSU

The MX500 also includes a Vesa adapter and bracket meaning it can be hidden and mounted to the back of a monitor.

WiFi, Bluetooth and Apple Coninutity features also work on this HTPC using a hackintosh compatible WLAN card.

Dell DW1560 Hackintosh

For WiFi and Bluetooth support I swapped my WLAN card out for a used DW1560 off eBay

Gigabyte Z370N Hackintosh Guide Notes

  • Use upper HDMI 2.0 port for 4k60 support over UHD 630 integrated graphics
  • SmallTreeIntel82576.kext is used to get the second ethernet jack working
  • RGB fusion is better off disabled in BIOS to avoid staying on during sleep
  • Unplugging USB devices during sleep will cause a Gigabyte motherboard to wake
  • i3 version of UHD 630 requires a post-install step for graphical acceleration
  • Use iMac 18,1 if using integrated graphics exclusively to prevent iGPU glitching
  • Guide has been tested up to macOS High Sierra 10.13.4

Step 1 – Get Access to Mac OS

To create a macOS flash drive installer you will first need either a. Access to a Mac or b. A virtual machine running macOS. If you do not have a Mac or borrow then create a virtual machine running macOS using one of the two links below depending on whether you are using Intel or AMD as your CPU/Processor.

VIRTUAL MACOS: USE MACOS SIERRA ON A VIRTUAL MACHINE WITH VMWARE

Step 2 – Creating the macOS Installer

How to make a USB flash drive installer for macOS – Hackintosher

Step 3 – Add Clover to EFI Boot Partition

  1. Download Clover Configurator
  2. Open Clover Configurator
  3. Select Mount EFI under TOOLS
  4. Click Mount Partition for Install macOS….
  5. Click Open Partition (This is your EFI Folder)
  6. Delete the existing EFI folder if it’s in the partition
  7. Download Hackintosher’s High Sierra EFI.zip
  8. Unzip High Sierra EFI.zip
  9. Copy & Paste the unzipped EFI folder to mounted partition or /Volumes/EFI

Step 4 – EFI Changes Integrated UHD 630 Graphics

If using integrated graphics only without a graphics card use iMac 18,1.

  1. Download & Unzip config.plist Coffee Lake iMac 18,1.zip
  2. Replace the config.plist in /Volumes/EFI/EFI/Clover/ with the config.plist downloaded above

Note: If using an i3 a post-install steps along with some config.plist changes will be required later on in this guide to get graphical acceleration.

Step 5 – Gigabyte config.plist Changes:

  1. Navigate to /Volumes/EFI/EFI/Clover of your mounted EFI partition
  2. Open config.plist with Clover Configurator
  3. Highlight Acpi on left column
  4. Under fixes check FixShutdown
  5. Save config.plist

Step 6 – BIOS Settings

Restart your computer and spam the DEL key to enter BIOS as the computer boots.

Change the following settings for the install:

These the are the BIOS settings you will need to change after creating the macOS flash drive bootloader and before you begin installing.

  1. Save & Exit → Load Optimized Defaults
  2. M.I.T. → Advanced Memory Settings  Extreme Memory Profile(X.M.P.) : Profile1
  3. BIOS → Fast Boot : Disabled
  4. BIOS → LAN PXE Boot Option ROM : Disabled
  5. BIOS → Storage Boot Option Control : UEFI
  6. Peripherals → Trusted Computing → Security Device Support : Disabled
  7. Peripherals → Network Stack Configuration → Network Stack : Disabled
  8. Peripherals → USB Configuration → Legacy USB Support : Auto
  9. Peripherals → USB Configuration → XHCI Hand-off : Enabled
  10. Chipset → Vt-d : Disabled
  11. Chipset → Wake on LAN Enable : Disabled
  12. Chipset → IOAPIC 24-119 Entries : Enabled

Based on  the GPU you’re using change the following settings:

Dedicated graphics card:

  1. Peripherals → Initial Display Output : PCIe 1 Slot
  2. Chipset → Integrated Graphics : Disabled (Set to Enabled after installing macOS if you want Hardware Encoding, HEVC, etc)

Intel iGPU:

  1. Peripherals → Initial Display Output : IGFX
  2. Chipset → Integrated Graphics : Enabled
  3. Chipset → DVMT Pre-Allocated :128M (if this setting isn’t showing then:  1. Set Integrated Graphics: Enabled. 2. Save and Exit BIOS by pressing F10. 3. Reenter BIOS upon computer restart and it should be there.

Setting Boot Device:

You’ll want to be using the USB Flash Drive as the primary boot device until your hard drive becomes bootable at the very end of Step 5. There are two ways to go about doing this:

Option 1: Press F12 on startup each time to select a temporary boot device until the boot partition on the drive you install macOS is configured. If you want to do temporary booting you will select the version of your USB Drive starting with UEFI: in it’s name. (For example I used a SanDisk flash drive so I would select UEFI: Sandisk, Partition 1)

Option 2: Enter BIOS and set Boot → Boot Option #1: UEFI : XXX (For example I used a SanDisk flash drive so I would select UEFI: Sandisk, Partition 1) This is easier if you don’t want to spam F8 on startup every time to boot macOS.

Step 7 – Installing macOS

Mac OS High Sierra Hackintosh Install Clover Walkthrough – Hackintosher

Step 8 – UHD 630 Hackintosh Graphical Acceleration

Graphical acceleration works with native support on i5 and i7 Coffee Lake CPU’s however with an i3 the method to get acceleration is with Framebuffer injection. This method can also to be done on i5 and i7 CPU’s as an option.This method will also support Hardware Encoding and Intel QuickSync.

Guide: Coffee Lake UHD 630 Graphics – FrameBuffer Injection 0x3E918086 0x3E928086 for High Sierra

Step 9 – Gigabyte Post Install

  • Ethernet should be working if you have a hackintosh compatible Broadcom WLAN card follow: Enabling Third Party Broadcom WLAN 802.11a/b/g/n WIFI + Bluetooth Cards on a Hackintosh
  • If you followed this guide using a different motherboard and have a different audio chipset then the ALC892 of the Gigabyte Z370 HD3 you will need to change your layout-id to get audio working.
  • If using a dedicated Nvidia or AMD graphics card change ig-platform-id to 0x59120003 and use iMac 18,2/iMac 18,3
  • Some AMD graphics cards may require RadeonDeInit or WhateverGreen.kext in 10.13.4+, but try without before using them.
  • If using an Nvidia graphics card on High Sierra 10.13.4+ use this to install the Nvidia drivers: How to properly Install Nvidia Drivers on High Sierra 10.13
  • Open Energy Saver on Mac OS and uncheck Wake for Ethernet Network access and Enable Power Nap so the hackintosh doesn’t wake from sleep randomly to check for updates

Leave a Reply

6 Comments on "Gigabyte Z370N WIFI ITX Hackintosh Guide 4k HTPC Build"

Sort by:   newest | oldest
pedro
Guest
pedro

Thank you very much

Fuzzz
Guest
Fuzzz

Quick question about the BT/Wifi module. I don’t see any of the ReHab Man kext files in the zipped EFI folder. When I installed my wifi module (same as you linked to) it was not recognized and I needed to throw in the extra kext files to get it all working.

Just curious if there is a way to get the BT/Wifi working without the extra kext files as the fewer items to worry about and keep up to date the better. Thanks in advance.

Nazar
Guest
Nazar

Hi there! Thanx for another great build guide. A quick question: will it be able to output a video signal through the USB-C port?

I have an LG UltraFine 4k monitor and thinking about the best hackintosh solution that would work with this monitor.

Lion
Guest
Lion

First of all thank you for sharing
I have the following questions I want to ask, I hope you can answer
1. No signal appears when turning off the monitor or unplugging the HDMI cable and turning it on again
2. Click on the monitor to turn off the monitor. The CPU cooling fan is still on. The main board has electricity.
3. External mobile hard drive off automatically restarts
4. The same monitor with a physical resolution of 4k, but my system report on the macbook pro access display – the graphics card/display shows 5k, but HACKINTOSH only shows 4k, and can only zoom to 1080, and macbook pro Can zoom to 2k