Contribute
Register

[GUIDE] General Framebuffer Patching Guide (HDMI Black Screen Problem)

CaseySJ

Moderator
Joined
Nov 11, 2018
Messages
9,532
Motherboard
Gigabyte Z490 Vision D
CPU
i5-10400
Graphics
RX 580
Mac
MacBook Air, MacBook Pro, Mac Pro
Classic Mac
Quadra
Mobile Phone
iOS
OK, debug.log is attached.
Note: I made new config.info file today and tested, but when I came to login screen, my USB ports don't work (keyboard and mouse don't respond). I couldn't find what is going wrong. Clover configurator is set default AAPL,ig-platform-id to <0000923e>, but I couldn't test further because of USB ports.
For USB ports, try applying the 3 USB port limit patches for Mojave as listed here:

I've tested them myself and they work quite well.

Edit:
  • Your system has one 8GB DIMM. The second DIMM slot is empty.
  • Your UHD graphics ID is 0x3E92, which is natively recognized by macOS. There is no need to use IntelGFX = 0x12345678.
You should therefore use:
  • Platform ID 0x3E9B0007
  • Device-id 0x3E92
If you still have problem after the USB patch, please do this:
  • Compress and upload your CLOVER folder from EFI partition of Mojave SSD.
  • Upload screenshot of your /Library/Extensions folder.
 
Last edited:
Joined
Jul 18, 2018
Messages
25
Motherboard
Gigabyte H370M-D3H
CPU
i5-8400
Graphics
UHD 630
Mobile Phone
iOS
Hello,
Just trying to get all the ports working on the integrated motherboard.

The motherboard type is a Gigabyte H370M D3H.
It as got
1 x VGA
1 x DVI
1 x HDMI

The VGA port worked out of the box. I didn't have to do anything to make it function after installing OSX.

I've run though the guide using a process of elimination but none of the combinations seem to work.

Attached is a debug report. Does anyone know what I might be able to try next?
 

Attachments

CaseySJ

Moderator
Joined
Nov 11, 2018
Messages
9,532
Motherboard
Gigabyte Z490 Vision D
CPU
i5-10400
Graphics
RX 580
Mac
MacBook Air, MacBook Pro, Mac Pro
Classic Mac
Quadra
Mobile Phone
iOS
Hello,
Just trying to get all the ports working on the integrated motherboard.

The motherboard type is a Gigabyte H370M D3H.
It as got
1 x VGA
1 x DVI
1 x HDMI

The VGA port worked out of the box. I didn't have to do anything to make it function after installing OSX.

I've run though the guide using a process of elimination but none of the combinations seem to work.

Attached is a debug report. Does anyone know what I might be able to try next?
First of all, thank you for posting the full set of debug log files. According to "kextstat_all_log.txt" your system is not loading WhateverGreen. This means no graphics injection is taking place. So although your have modified the connector types on indices 1 and 2 to HDMI, those settings are not in effect. This is further validated from "generic_ioreg.txt", which shows that all three connectors under IGPU (AppleIntelFramebuffer@0, AppleIntelFramebuffer@1, and AppleIntelFramebuffer@2) are set to "connector-type" 0x0004 or DisplayPort. This is also why VGA is working, because it's attached to AppleIntelFramebuffer@0 and uses Type=DisplayPort.

To fix the problem of loading WhateverGreen, please do this:
  • Clover Configurator --> SMBIOS --> uncheck "Trust"
  • Clover Configurator --> System Parameters --> Inject Kexts --> "Detect"
Then follow JayMonkey's guide for installing third-party kexts. In particular, see Step 7. Install Lilu, WhateverGreen, and AppleALC into /Library/Extensions and run Kext Utility to rebuild the kernel cache.

Then reboot and check the DVI and HDMI ports. If the problem persists, please let us know.
 
Joined
Jul 18, 2018
Messages
25
Motherboard
Gigabyte H370M-D3H
CPU
i5-8400
Graphics
UHD 630
Mobile Phone
iOS
First of all, thank you for posting the full set of debug log files. According to "kextstat_all_log.txt" your system is not loading WhateverGreen. This means no graphics injection is taking place. So although your have modified the connector types on indices 1 and 2 to HDMI, those settings are not in effect. This is further validated from "generic_ioreg.txt", which shows that all three connectors under IGPU (AppleIntelFramebuffer@0, AppleIntelFramebuffer@1, and AppleIntelFramebuffer@2) are set to "connector-type" 0x0004 or DisplayPort. This is also why VGA is working, because it's attached to AppleIntelFramebuffer@0 and uses Type=DisplayPort.

To fix the problem of loading WhateverGreen, please do this:
  • Clover Configurator --> SMBIOS --> uncheck "Trust"
  • Clover Configurator --> System Parameters --> Inject Kexts --> "Detect"
Then follow JayMonkey's guide for installing third-party kexts. In particular, see Step 7. Install Lilu, WhateverGreen, and AppleALC into /Library/Extensions and run Kext Utility to rebuild the kernel cache.

Then reboot and check the DVI and HDMI ports. If the problem persists, please let us know.
Hey Casey,
Thanks for the reply. That was exactly the issue! I followed your instructions and now everything is working.

I am fairly new to this and was under the impression that kext's only had to be put in the Other folder. After moving them into the /L/E folder they are now loading. Interestingly the graphics is now at 2048MB. Previously it was around 1500MB so I thought graphics acceleration was taking place (It was initially only at 16MB after first install). Audio is now working too :)

These are the values I ended up using and all 3 ports are working on the motherboard.

Index 1 - Bus ID 5 - Port 5 - VGA Port
Index 2 - Bus ID 2 - Port 6 - DVI Port
Index 3 - Bus ID 4 - Port 7 - HDMI Port

Perhaps they could be added into Hackintool to help others out with a Gigabyte H370M D3H in the future?

Let me know if you'd like me to provide any further files to help out with this.

Thanks again for your help!

Cheers
Peter
 
Joined
Nov 3, 2015
Messages
19
Motherboard
HP 290 G2 Microtower - H370
CPU
i5-8500
Graphics
UHD 630
Mac
iMac, MacBook Air
Mobile Phone
iOS
For USB ports, try applying the 3 USB port limit patches for Mojave as listed here:

I've tested them myself and they work quite well.

Edit:
  • Your system has one 8GB DIMM. The second DIMM slot is empty.
  • Your UHD graphics ID is 0x3E92, which is natively recognized by macOS. There is no need to use IntelGFX = 0x12345678.
You should therefore use:
  • Platform ID 0x3E9B0007
  • Device-id 0x3E92
If you still have problem after the USB patch, please do this:
  • Compress and upload your CLOVER folder from EFI partition of Mojave SSD.
  • Upload screenshot of your /Library/Extensions folder.
Now I could boot with attached config.plist file, but no IntelGen, 0 MB on GPU Info, no red row connectors. I added some DSDT Patches, but I'm not sure are they proper for use.

Thanks for help!
 

Attachments

Last edited:

CaseySJ

Moderator
Joined
Nov 11, 2018
Messages
9,532
Motherboard
Gigabyte Z490 Vision D
CPU
i5-10400
Graphics
RX 580
Mac
MacBook Air, MacBook Pro, Mac Pro
Classic Mac
Quadra
Mobile Phone
iOS
Hey Casey,
Thanks for the reply. That was exactly the issue! I followed your instructions and now everything is working.

I am fairly new to this and was under the impression that kext's only had to be put in the Other folder. After moving them into the /L/E folder they are now loading. Interestingly the graphics is now at 2048MB. Previously it was around 1500MB so I thought graphics acceleration was taking place (It was initially only at 16MB after first install). Audio is now working too :)
Glad to hear it!

These are the values I ended up using and all 3 ports are working on the motherboard.

Index 1 - Bus ID 5 - Port 5 - VGA Port
Index 2 - Bus ID 2 - Port 6 - DVI Port
Index 3 - Bus ID 4 - Port 7 - HDMI Port

Perhaps they could be added into Hackintool to help others out with a Gigabyte H370M D3H in the future?
This is the second proven case of a working VGA port! Because of this, I'll remove the "anti-VGA" statements from the Guide and mention that VGA ports equate to Type DP.

Framebuffer connector settings for your motherboard will be added to the Compilation momentarily, and should be reflected in a future update to Hackintool.

Can you please confirm whether the following settings are correct:

Index 1 - Bus ID 5 - Port 5 - Type DP (physically a VGA Port)
Index 2 - Bus ID 2 - Port 6 - Type HDMI (physically a DVI Port)
Index 3 - Bus ID 4 - Port 7 - Type HDMI (physically HDMI as well)

Thanks!
 

CaseySJ

Moderator
Joined
Nov 11, 2018
Messages
9,532
Motherboard
Gigabyte Z490 Vision D
CPU
i5-10400
Graphics
RX 580
Mac
MacBook Air, MacBook Pro, Mac Pro
Classic Mac
Quadra
Mobile Phone
iOS
Now I could boot with attached config.plist file, but no IntelGen, 0 MB on GPU Info, no red row connectors. I added some DSDT Patches, but I'm not sure are they proper for use.

Thanks for help!
You entered the device-id incorrectly in Clover Configurator --> Devices --> Properties. Instead of "0x3E920000" you must enter it in reverse-byte order as "0x923E0000".

I've made this and other changes in the attached file. Please give it a try.
 

Attachments

Joined
Jan 15, 2013
Messages
44
Motherboard
Asus Prime B360M-A
CPU
i5-8500
Graphics
UHD 630
Mobile Phone
Android
Please try the attached config.plist.
  • Add a serial number to the SMBIOS section first.
  • Rename file to config.plist and try it.
Modifications made:
  • Added "-disablegfxfirmware" flag to boot arguments.
  • Replaced "-debug 0x100" with "debug 0x100".
  • Added "dart=0" to deal with VT-d issues.
  • Disabled the AGDP patches and the 10.13 USB port limit patch (because you're running 10.14).
These changes by themselves may not remedy the problem, but they should be done nevertheless in order to minimize distractions that could impact the final solution (i.e. start with a cleaner baseline).
Did everything you said.But only HDMI works after boot. DVI is still black. VGA doesn't work at all, that's why I've decided to turn this port off.

Parameter AAPL,boot-display set true for 0x06 port, what means, that TV is my primary display. I think, I need to fix it.
 

Attachments

Last edited:

CaseySJ

Moderator
Joined
Nov 11, 2018
Messages
9,532
Motherboard
Gigabyte Z490 Vision D
CPU
i5-10400
Graphics
RX 580
Mac
MacBook Air, MacBook Pro, Mac Pro
Classic Mac
Quadra
Mobile Phone
iOS
Did everything you said.But only HDMI works after boot. DVI is still black. VGA doesn't work at all, that's why I've decided to turn this port off.

Parameter AAPL,boot-display set true for 0x06 port, what means, that TV is my primary display. I think, I need to fix it.
I believe one of the correct possibilities for your motherboard is:

Index 1 (Port 0x05): BusID 0x01, Type DP (physical port VGA)
Index 2 (Port 0x06): BusID 0x02, Type HDMI (physical port DVI)
Index 3 (Port 0x07): BusID 0x04, Type HDMI (physical port also HDMI)

Other settings:
  • SMBIOS iMac18,3 or Macmini8,1
  • ig-platform-id 0x3E9B0007
  • device-id 0x3E92 or 0x3E9B
Connecting your HDMI port to a TV can make this process more complicated. Please try connecting HDMI port to a HDMI computer monitor.
 
Joined
Jan 15, 2013
Messages
44
Motherboard
Asus Prime B360M-A
CPU
i5-8500
Graphics
UHD 630
Mobile Phone
Android
can make this process more complicated. Please try connecting HDMI port to a HDMI computer monitor.
I have no HDMI monitor available. What is the difference between HDMI monitor and TV, which works as monitor ?
Is there any options to set my DVI monitor to work as primary and TV as secondary screen ?
 
Top