Contribute
Register

[Guide] Intel Framebuffer patching using WhateverGreen

I have an issue where sometimes my Vega64 DP output will go dark and I screen sharing stops working. Not quite sure how to resolve that, but I'd like to get quick sync working at least.

I have a single monitor connected to reference Vega64 via DisplayPort running at 4K@60. 9700K with ASRock Z390 ITX/AC.

I have tried adding Framebuffer settings to config.plist to force the correct configuration, but nothing works to enable acceleration.

MacOS 10.14.6 will not boot if I have Decode above 4G enabled.

Without any config added, just default WEG, videoproc shows the accelerated decoding enabled, but intel power gadget. does not show any GFX activity and my bruce benchmark is about 16 seconds.

I think this is the correct headless Framebuffer config, using platform-id 3E980003 and device 983E0000 but maybe I am wrong? SMBIOS is iMac19,1

<key>PciRoot(0x0)/Pci(0x2,0x0)</key>
<dict>
<key>AAPL,ig-platform-id</key>
<data>
AD6YAAM=
</data>
<key>device-id</key>
<data>
mD4AAA==
</data>
<key>framebuffer-patch-enable</key>
<data>
AQAAAA==
</data>
<key>framebuffer-unifiedmem</key>
<data>
AAAAgA==
</data>
</dict>

EFI and ioreg, etc. is attached
Hi, I didn't download your EFI folder, but I noticed your device id may be wrong, it should be 3E988086, if it still doesn't work, just tell me.
 
Last edited:
Alright. What SMBios did you use? Also did you use WEG? How did you accomplish CPU Power management?


@LuqmanKyz,

Lilu + WEG is covered in this guide :-



Desktop power management guide :-



Cheers
Jay
 
@LuqmanKyz,

Lilu + WEG is covered in this guide :-



Desktop power management guide :-



Cheers
Jay
Hey jaymonkey. Would you please have a look at my thread?

Thanks.

 
Hello.
I have been trying pretty hard to understand this.
My hackintosh used to work great for years with R9 280x, but now i've "upgraded" to RX580, mojave and FCPX 10.4.7, FCPX is unusable (no renders, no export...).
Apparently RX580 only works if iGPU is enable, that's why I'm here...
But I'll be honest I don't understand much and there is so much for a non-programmer guy. I've not been able to find step-by-step guides for my system (2012 is too old I guess).

Hope someone will be able to help me or guide me in the right direction...

- my system : ivy bridge 3770k with RX580 GPU, screen (4k) connected to RX580.
- mojave 10.14.6, everything works for "desktop" use but FCPX just doesn't.
- I have installed Lilu.kext , Whatevergreen.kext.
- Modified my platform-id from cloverconfigurator but its turned it into a base64 number. downloading xcode now...
 
Apparently RX580 only works if iGPU is enable, that's why I'm here....Hope someone will be able to help me or guide me in the right direction...


@wooolooo,

Have a read of the "Headless" section in Chapter 4 of this guide :-


Cheers
Jay
 
@wooolooo,

Have a read of the "Headless" section in Chapter 4 of this guide :-


Cheers
Jay

Thanks a lot. Interesting read.
I understand much better what "patching" means now = Copying the correct info in the config.plist, and I am now sure that I need to use platform id 0x01620006 .

EDIT : I am now able to boot, with iGPU... I'll be honest I'm not even sure what I did, I believe checking InjectIntel in clover configurator did it, and AddIMEI... pretty much the oposite of what this guide is all about.
I am sure it's not optimised but all seems to be running fine, I can run Final Cut Pro ok and export in h264... For the next update I will start from a clean install lol.
 
Last edited:
Framebuffer patching in Mojave

Hello. Thanks for all the good work you all do.

I used the work RehabMan had done and his config section under devices/properties to get the
proper displays setup on an hd4000 laptop. Before using that Whatevergreen worked a treat for
the external HDMI port with audio but the built in display garbled out. Now using the config edit,
displays are proper but no longer has HDMI audio.

Maybe you can tell pretty quick what I'm missing here?

Thanks again.

Edit figured it out. The config had a pound sign that canceled the injection of HDMI port (08)
The IORegistryExplorer was showing where the HDMI cable plugged in as DP (04) that clued
me in. Didn't know the HDMI would be working if it was thought to be a DP port!

Thanks again for all the info and help
 

Attachments

  • debug_30100.zip
    6 MB · Views: 102
Last edited:
Hello, I usually am not one to ask for help.. however.. I have spent way to many hours on this.. and I am stuck. Perhaps if someone can help me, it can be used to help someone else (I hope).

I have tried everything... but in general every time I think Its going to work... I get stuck booting, and it never starts.

I get:
busy timeout[0], (60s): 'IGPU'

IMG_2470.JPG


And then eventually I get:
gIOScreenLockState 3,
IMG_2472.JPG


I have a Zbook G2 notebook that I have followed the instructions from here to setup:

Actually, the full story is that this worked like a champ.. and then.. my motherboard went (my mistake). Story is I purchased a replacement motherboard on ebay to fix it... I then put my original bios in that new motherboard.. I re-installed everthing.. and this issue remained after the vanilla setup and using the recommended .plist file from the git pull.

I used a linux live boot to proof hw acceleration works, and full resolution.

My issue, I can get it to boot.. however I cannot get the 1920x1080 resolution.

My monitor is detected as "unknown monitor".

I have tried many, many different platform and device-id's.

Here is my latest config.plist:

IMG_2473.JPG


Here is my -igfxdump from whatevergreen
IMG_2471.JPG


Any suggestions are welcome!!!

Thanks for all that respond.
 
@nygalloway,

The PlatformID 0x04160000 that you are using is for a desktop system, as you can see in the following FrameBuffer dump the parameter "Mobile" is set to 0 which means that it is for a desktop system :-

Code:
ID: 04160000, STOLEN: 64 MB, FBMEM: 16 MB, VRAM: 1024 MB, Flags: 0x00000004
TOTAL STOLEN: 209 MB, TOTAL CURSOR: 1 MB (1572864 bytes), MAX STOLEN: 209 MB, MAX OVERALL: 210 MB (220737536 bytes)
GPU Name: Intel HD Graphics 4600
Model Name(s):
Camelia: Disabled, Freq: 5273 Hz, FreqMax: 5273 Hz
Mobile: 0, PipeCount: 3, PortCount: 3, FBMemoryCount: 3
[0] busId: 0x00, pipe: 8, type: 0x00000002, flags: 0x00000030 - LVDS
[1] busId: 0x05, pipe: 9, type: 0x00000004, flags: 0x00000004 - DigitalDVI
[2] busId: 0x04, pipe: 9, type: 0x00000800, flags: 0x00000082 - HDMI
00000800 02000000 30000000
01050900 04000000 04000000
02040900 00080000 82000000


Using a desktop platformID with a Laptop CPU and SMBIOS Combo is guaranteed to cause issue's.

The Azul HD 4600 FrameBuffer's are know to be very finicky so we generally recommended to use an Intel HD 5200 FrameBuffer instead.

Try the following:-

Use IGPU PlatfromID 0x0D260007 by setting AAPL,ig-platfrom-id to 0700260D (Mobile HD 5200)
Keep device-id set to 12040000 (HD 4600)
Use SMBIOS MacbookPro11,2 or MacbookPro11,2

FrameBuffer dump for PlatfromID 0x0D260007 :-

Code:
ID: 0D260007, STOLEN: 64 MB, FBMEM: 34 MB, VRAM: 1536 MB, Flags: 0x0000031E
TOTAL STOLEN: 99 MB, TOTAL CURSOR: 1 MB (1572864 bytes), MAX STOLEN: 227 MB, MAX OVERALL: 228 MB (239616000 bytes)
GPU Name: Intel Iris Pro Graphics 5200
Model Name(s): MacBookPro11,2 MacBookPro11,3
Camelia: Disabled, Freq: 1953 Hz, FreqMax: 1953 Hz
Mobile: 1, PipeCount: 3, PortCount: 4, FBMemoryCount: 3
[0] busId: 0x00, pipe: 8, type: 0x00000002, flags: 0x00000030 - LVDS
[1] busId: 0x05, pipe: 11, type: 0x00000400, flags: 0x00000107 - DP
[2] busId: 0x04, pipe: 11, type: 0x00000400, flags: 0x00000107 - DP
[3] busId: 0x06, pipe: 3, type: 0x00000800, flags: 0x00000006 - HDMI
00000800 02000000 30000000
01050B00 00040000 07010000
02040B00 00040000 07010000
03060300 00080000 06000000


As you can see this FrameBuffer has one extra port at busid 0x06 so you may need to re do your connector patching.

Cheers
Jay
 
Back
Top