Contribute
Register

framebuffer patch for GA-Z270N + HD 630 + MacMini8,1 SMBIOS

Status
Not open for further replies.
Joined
Jun 19, 2017
Messages
23
Motherboard
GA-Z270N-Gaming-5
CPU
i7-7700
Graphics
HD630
Mac
  1. iMac
  2. MacBook
  3. Mac mini
Mobile Phone
  1. iOS
With the framebuffer patch below (generated using the wonderful fbpatcher), I get full support for my HD 630 + 4k dell over displayport. I used the 3e9b0007 platform id, patched to limit the FB ports to 1 (my mobo also has hdmi, but I don't use it) and the device id to 3e9b. Since the igpu in coffee lake is basically a rebranded kaby lake, it seems to work fine.

It boots really fast, no glitches during the progress bar. Sleep/wake still doesn't work though (been trying to make this work for over a year now :().

Code:
"PciRoot(0x0)/Pci(0x2,0x0)" = {
    "AAPL,ig-platform-id" = <07009B3E>;
    device-id = <9B3E0000>;
    "framebuffer-con0-alldata" = <FF050900 00040000 C7030000 FF040A00 00040000 C7030000 FF060800 00040000 C7030000>;
    "framebuffer-con0-enable" = <01000000>;
    framebuffer-patch-enable = <01000000>;
};
 
Just got sleep/wake working!

As I said above, my approach was to spoof a coffeelake framebuffer (since that's what the mac mini uses), limit the ports to 1 (since I only use displayport). You may have to experiment with the connectors configuration in fb patcher to get your screen to light up. Acceleration should work regardless, due to the coffeelake spoof "AAPL,ig-platform-id" = <07009B3E> / device-id = <9B3E0000> (see full config.plist below)

GA-Z270N Gaming 5 bios f6d
kaby lake i7 + hd 630 + displayport connected to 4k dell monitor

lilu + applealc, whatevergreen, usbports (generated using fb patcher)

config.plist:

Code:
ACPI =
  SSDT = Generate = PluginType = :true
  DSDT =
    Fixes = FixShutdown = :true
    Patches =
      Comment = "Rename HDAS to HDEF" Find = <48444153> Replace = <48444546>
      Comment = "Rename GFX0 to IGPU" Find = <47465830> Replace = <49475055>
      Comment = "Rename HECI to IMEI" Find = <48454349> Replace = <494D4549>
      Comment = "Rename _DSM to XDSM" Find = <5F44534D> Replace = <5844534D>
      Comment = "Rename PPMC to PMCR" Find = <50504D43> Replace = <504D4352>
      Comment = "Rename H_EC to EC"   Find = <485F4543> Replace = <45435F5F>

Boot =
  Arguments = "dart=0 darkwake=2 -disablegfxfirmware debug=0x12a acpi_layer=0x08 acpi_level=0x02"

Devices =
  Properties =
    "PciRoot(0x0)/Pci(0x1f,0x3)" = layout-id = <01000000>
    "PciRoot(0x0)/Pci(0x2,0x0)"  =
      "AAPL,ig-platform-id" = <07009B3E>
      device-id = <9B3E0000>
      "framebuffer-con0-alldata" = <FF050900 00040000 C7030000 FF040A00 00040000 C7030000 FF060800 00040000 C7030000>
      "framebuffer-con0-enable"  = <01000000>
      framebuffer-patch-enable   = <01000000>

KernelAndKextPatches =
  AppleRTC = :true
  KernelPm = :true

SMBIOS Macmini8,1
 
Spoofing coffeelake was causing my screen to go black while using the computer, so I had to finally figure out how to get kaby lake to work again (it was fine on HS). The key was to realise that I needed to set the index of the framebuffer to get the port-number (as seen in ioreg) that's actually routed to my display port. From before, I knew this was port 7. The corresponding index to use is 3, thanks to the tooltip in fb patcher. This yielded the following device properties:

Code:
"PciRoot(0x0)/Pci(0x2,0x0)" = {
  "AAPL,ig-platform-id" = <00001259>;
  "framebuffer-con0-enable" = <01000000>;
  "framebuffer-con0-index" = <03000000>;
  "framebuffer-con1-enable" = <01000000>;
  "framebuffer-con1-index" = <FFFFFFFF>;
  "framebuffer-con2-enable" = <01000000>;
  "framebuffer-con2-index" = <FFFFFFFF>;
  framebuffer-patch-enable = <01000000>;
  framebuffer-portcount = <01000000>;
 
Status
Not open for further replies.
Back
Top