Contribute
Register

[Guide] Intel Framebuffer patching using WhateverGreen

@jeffrjbra,

Yes that PlatformID is for SkyLake HD 515 IGPU :-

Code:
ID: 191E0000, STOLEN: 34 MB, FBMEM: 21 MB, VRAM: 1536 MB, Flags: 0x0000050F
TOTAL STOLEN: 56 MB, TOTAL CURSOR: 1 MB (1572864 bytes), MAX STOLEN: 124 MB, MAX OVERALL: 125 MB (131608576 bytes)
GPU Name: Intel HD Graphics 515
Model Name(s):
Camelia: Disabled, Freq: 1388 Hz, FreqMax: 1388 Hz
Mobile: 1, PipeCount: 3, PortCount: 3, FBMemoryCount: 3
[0] busId: 0x00, pipe: 8, type: 0x00000002, flags: 0x00000098 - LVDS
[1] busId: 0x05, pipe: 9, type: 0x00000400, flags: 0x00000187 - DP
[2] busId: 0x04, pipe: 10, type: 0x00000400, flags: 0x00000187 - DP
00000800 02000000 98000000
01050900 00040000 87010000
02040A00 00040000 87010000


I don't why that works for you ... I would not expect it to work with Kaby Lake CPU/IGPU unless you are using spoofing the CPU generation with the lilucpu=XX boot flag ... but there should be no need to do that with i7 7500U + HD 620 IGPU.

Normally HD 620 IGPU with i7 7500U CPU is very easy to configure as its one of the few Mobile IGPU's that Apple used.
Did you use MacBookPro14,1 SMBIOS ?

2048MB VRAM is possible with the appropriate patch, i use it my self with my HD 620 as the display on my Laptop is 4K and the extra bit of VRAM does help to keep things smooth.

It's a very bad idea to use the config from a totally different system, much better to work on your own config.

If you want help please provide Proper Problem Reporting Files (PPRF's) using the tool in this guide :-

https://www.tonymacx86.com/threads/tool-generate-proper-problem-reporting-files.235953/

Cheers
Jay

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...
ill try to use the tool and have the proper config to my device...it would fix the lags...for sure!!
 
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:
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

  • CPUZ_X30.txt
    42.1 KB · Views: 76
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?
 
@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.
 
@headkaze your are awesome man you save a lot of people money
 
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?
 
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?).
 
Back
Top