Contribute
Register

[Guide] Intel Framebuffer patching using WhateverGreen

jaymonkey

Moderator
Joined
Aug 27, 2011
Messages
3,458
Motherboard
ASRock-Z97 EX6
CPU
i7-4790K OC @ 4.8GHz
Graphics
Vega 64LC + HD4600
Mac
MacBook Air, MacBook Pro
Mobile Phone
Android, iOS
Yeah, im using MacBookPro14.1 SMBIOS as you told me to, although the REPO's owner said that is mandatary use the 15.1 version...

@jeffrjbra,

The MacBookPro15,1 SMBIOS is for Coffee Lake CPU's.
You have a Kaby Lake CPU therefore you should use a Kaby Lake SMBIOS.
The recommended SMBIOS to use with a Kaby Lake Laptop is MacBookPro14,1.

I think the Acer A515-51G has a Nvidia MX150 dGPU which you need to disable using ACPI.
See this guide for more details :-


Cheers
Jay
 
Last edited:
Joined
Sep 11, 2016
Messages
19
Motherboard
Dell 3050 MFF
CPU
i5-6400T
Graphics
HD 530
Mobile Phone
Android
Hi guys.

My Dell Optiplex 3050 has 3 video connectors and I have 3 monitors. I tried to connect it altogether. But something going wrong. I carefully read this guide. Tried to add 4th connector with Hackintool (using 0x1912000), tried to set platform ID to 0x193B0005, tried to use every trick I read. But...

My hackintosh works just perfect with 2 monitors. When I set 3 monitors, than have 2 results: 1. If boot successful, all 3 monitors are working just excellent. 2. Hackintosh is going to reboot or just hangs with at the apple stage.
If it hangs I see half-dimmed screen with half-dimmed mouse cursor.
If it boot successfully, hackintosh works and reboots without problems untill I switch power off and then power it on.

I can't figure out why it boots and why not. Can't figure a method to make it boot or not boot in a predictable way.

This uncertainty just drives me crazy.

I am attaching my config for inspection. What else need I do? Some logs/dumps?

update. Found the culprit. It was a dp2dvi cable. Can't replace it with something else, just swapped it into another socket (port 6 of my GPU) and my previous setup started to work just fine.
Weird thing, my monitor shows out of sync message, in display prefs it showing 60 Hz but monitor's OSD displays 82Hz (60 Hz setting is ignored). I set 75Hz and everything gone smooth.
 
Last edited:
Joined
Nov 28, 2010
Messages
5
Motherboard
ASUS Gryphon Z87-PRO
CPU
i5
Graphics
GTX 1030
Mac
iMac
Hello,

I am trying to activate the Intel HD 5000 framebuffer (ID 0x0A268086) on a XCY X30 (i7-4650U, M/B Intel CRESCENTBAY 0x00000333 - 0x85FDB210) using WEG 1.3.5 and Lilu 1.4.0 on macOS Catalina 10.15.1.
Kexts are installed in CLOVER/other directory.

I've followed the manual and I have managed to boot the system but without acceleration.

My Device Properties are

Code:
            <key>PciRoot(0x0)/Pci(0x2,0x0)</key>
            <dict>
                <key>AAPL,ig-platform-id</key>
                <data>
                DSIAAw==
                </data>
                <key>device-id</key>
                <data>
                JgoAAA==
                </data>
                <key>framebuffer-patch-enable</key>
                <data>
                AQAAAA==
                </data>
                <key>framebuffer-unifiedmem</key>
                <data>
                AAAAgA==
                </data>
                <key>model</key>
                <string>Intel HD Graphics 5000</string>
            </dict>
The system can also boot when ig-platform-id is also 0x0A260000 but as there is no SMBIOS available with this ID, I've chosen the default recommended one for desktop systems 0x0D220003; however, there is no difference between the two ig-platform-id's, there is no graphics acceleration. I am using iMac 14,4 SMBIOS.

The debug output of WEG is this
Code:
Timestamp                       (process)[PID] 
2019-12-10 22:05:35.211170+0200  localhost kernel[0]: (kernel) WhateverGreen:    init @ (DBG) WhateverGreen bootstrap DBG-135-2019-12-02
2019-12-10 22:05:35.213088+0200  localhost kernel[0]: (kernel) WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableDrmdmaPowerGating
2019-12-10 22:05:35.214999+0200  localhost kernel[0]: (kernel) WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableGfxCGPowerGating
2019-12-10 22:05:35.226895+0200  localhost kernel[0]: (kernel) WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableUVDPowerGating
2019-12-10 22:05:35.228730+0200  localhost kernel[0]: (kernel) WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableVCEPowerGating
2019-12-10 22:05:35.230564+0200  localhost kernel[0]: (kernel) WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableDynamicGfxMGPowerGating
2019-12-10 22:05:35.232629+0200  localhost kernel[0]: (kernel) WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableGmcPowerGating
2019-12-10 22:05:35.234458+0200  localhost kernel[0]: (kernel) WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableAcpPowerGating
2019-12-10 22:05:35.246296+0200  localhost kernel[0]: (kernel) WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableSAMUPowerGating
2019-12-10 22:05:37.438836+0200  localhost kernel[0]: (kernel) WhateverGreen:     weg @ (DBG) non-apple-fw proceeding with devprops 1
2019-12-10 22:05:37.458456+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData device-id has A26 value
2019-12-10 22:05:37.477700+0200  localhost kernel[0]: (kernel) WhateverGreen:     weg @ (DBG) IGPU has real 0A26 acpi 0A26 fake 0000 and model Intel HD Graphics 5000
2019-12-10 22:05:37.497970+0200  localhost kernel[0]: (kernel) WhateverGreen:     weg @ (DBG) found existing built-in
2019-12-10 22:05:37.517102+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData applbkl was not found
2019-12-10 22:05:37.536395+0200  localhost kernel[0]: (kernel) WhateverGreen:     weg @ (DBG) detecting policy
2019-12-10 22:05:37.555229+0200  localhost kernel[0]: (kernel) WhateverGreen:     weg @ (DBG) no external gpus
2019-12-10 22:05:37.574018+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-patch-enable has 1 value
2019-12-10 22:05:37.593667+0200  localhost kernel[0]: (kernel) WhateverGreen:    igfx @ (DBG) framebuffer-patch-enable 1
2019-12-10 22:05:37.612801+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-framebufferid was not found
2019-12-10 22:05:37.632554+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-flags was not found
2019-12-10 22:05:37.652132+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-camellia was not found
2019-12-10 22:05:37.671816+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-mobile was not found
2019-12-10 22:05:37.691484+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-pipecount was not found
2019-12-10 22:05:37.711174+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-portcount was not found
2019-12-10 22:05:37.730771+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-memorycount was not found
2019-12-10 22:05:37.750361+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-stolenmem was not found
2019-12-10 22:05:37.769837+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-fbmem was not found
2019-12-10 22:05:37.789146+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-unifiedmem has 80000000 value
2019-12-10 22:05:37.808752+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-cursormem was not found
2019-12-10 22:05:37.828105+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-con0-enable was not found
2019-12-10 22:05:37.847407+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-con1-enable was not found
2019-12-10 22:05:37.866493+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-con2-enable was not found
2019-12-10 22:05:37.885372+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-con3-enable was not found
2019-12-10 22:05:37.904151+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData framebuffer-patch0-enable was not found
2019-12-10 22:05:37.922938+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData dpcd-max-link-rate was not found
2019-12-10 22:05:37.941457+0200  localhost kernel[0]: (kernel) WhateverGreen:    igfx @ (DBG) MLR: No custom max link rate specified. Will use 0x14 as the default value.
2019-12-10 22:05:37.960830+0200  localhost kernel[0]: (kernel) WhateverGreen:   iokit @ (DBG) getOSData max-backlight-freq was not found
2019-12-10 22:05:37.979418+0200  localhost kernel[0]: (kernel) WhateverGreen:   shiki @ (DBG) will autodetect autodetect GPU 0 whitelist 0
2019-12-10 22:05:37.998097+0200  localhost kernel[0]: (kernel) WhateverGreen:   shiki @ (DBG) pre-config: online 0, bgra 0, compat 0, whitelist 0, id 0, stream 0, hwdrm 0
2019-12-10 22:05:38.017781+0200  localhost kernel[0]: (kernel) WhateverGreen:     weg @ (DBG) vinfo 1: 2160:3840 32:15360:1
2019-12-10 22:05:38.036060+0200  localhost kernel[0]: (kernel) WhateverGreen:     weg @ (DBG) vinfo 2:  135:480 15360:1:0
2019-12-10 22:05:45.503102+0200  localhost kernel[0]: (kernel) WhateverGreen:    igfx @ (DBG) platform is snb 0 and list 0xFFFFFF7F84F1CFF0
Can you please help? I am trying for days to make it work without any progress and I am about to give up on building this machine
:(


Thank you.

P.S: I am attaching the CPU-Z output from Windows 10 (the iGPU is recognized as Intel HD Graphics 5000) and a complete configuration dump of the system.
 

Attachments

Joined
Feb 19, 2016
Messages
5
Mac
Classic Mac
Mobile Phone
I followed the tutorial and finally I could enable acceleration on my Intel GPU on Surfacebook 2 with UHD620.

All is fine but after patchingframebuffer and making it work, my laptop’s monitor goes black(with some light btw) and if I connect by Anydesk, I can see the desktop with full GPU activated

Any suggestion what should I try for now?
 

Sniki

Moderator
Joined
Jan 5, 2016
Messages
1,734
Motherboard
Lenovo V330 - 15IKB
CPU
i5-8250U
Graphics
UHD 620 /1920x1080
Mobile Phone
iOS
@headkaze My Lenovo ThinkPad X240 does have a Mini DisplayPort and a VGA port which both do work fine
Haswell - Platform ID: 0A260006

Framebuffer@0 - Internal Display
Framebuffer@1 - Mini DisplayPort (with working audio)
Framebuffer@2 - VGA

However i do have a docking station which i managed to fix everything else except Video Ports.
Laptop connects to the docking station and the docking station does have 3 additional ports: VGA - DisplayPort - DVI
Video Ports do have output and plugging unplugging does work perfectly fine on all of the 3 ports.

However:
1. DisplayPort has no audio output
2. 3 Ports altogether do cause a kernel panic/Instant Reboot if i press sleep, restart or shutdown.

The thing is that all those 3 ports do connect to framebuffer@2 which without the dock is used for the VGA port of the Laptop.

So my question is, What Connector Type/Flag/Pipe should i set to framebuffer@2(con2) for such case to fix those panics and have DisplayPort audio working from the dock.
framebuffer.png

This is the current framebuffer patch in use with -igfxnohdmi flag in use.

I tested with all data as well but it didn't work either.
 
Joined
Apr 2, 2011
Messages
70
Motherboard
Gigabyte Z370 AORUS Ultra Gaming WiFi
CPU
i7-9700K
Graphics
Sapphire RX 580
Mac
iMac, MacBook, MacBook Pro, Mac Pro
Mobile Phone
iOS
@headkaze your are awesome man you save a lot of people money
 
Joined
Dec 16, 2019
Messages
4
Motherboard
ASUS PRIME B360M-A
CPU
i5-8400
Graphics
UHD 630
Still can't solve an issue with my UHD630 working with both DVI and HDMI outputs working simultaneously after boot. Only HDMI works after it. But when I turn sleep mode on and then wake it up, they're both working fine. What's the problem ?
Hey! I have the same motherboard (b360m-a) as yours. I had given up framebuffer patching because it was driving me crazy! I couldn't find a way to make my connectors work. Then I found out that you have the same mobo that I have. Is HDMI working for you? Can you please provide your EFI folder?
 
Joined
Jan 27, 2018
Messages
45
Motherboard
Gigabyte Z370M-D3H
CPU
i3-8100
Graphics
GTX 1050
Anyone know why this would be happening - I'm on Intel UHD 630, my card shows up as AppleIntelFrameBuffer0, when I use framebuffer-patch-enable 01000000 my display has a purple colour, but when I use framebuffer-patch-enable 00000000 it doesn't (or rather when I have nothing entered for framebuffer-patch-enable it doesn't do anything?).
 
Top