Jump to content
Hervé

Enabling DVI/DP/HDMI and increasing VRAM with Intel Haswell/4th gen HD4200/4400/4600/etc. iGPU

Recommended Posts

Ok... this is now my patch...

0600 260A 0103 0303 0000 0002 0000 3001
0000 6000 0000 0060 D90A 0000 D90A 0000
0000 0000 0000 0000 0000 0800 0200 0000
3000 0000 0105 0900 0004 0000 8700 0000
0204 0900 0004 0000 8700 0000 FF00 0000
0100 0000 4000 0000 0F00 0000 0101 0000
0400 0000 0000 0000 0E00 0000 0000 0000



0600 260A 0103 0303 0000 0002 0000 3001
0000 6000 0000 0080 D90A 0000 D90A 0000
0000 0000 0000 0000 0000 0800 0200 0000
3000 0000 0105 0900 0004 0000 8700 0000
0306 1200 0008 0000 8700 0000 FF00 0000 
0100 0000 4000 0000 0F00 0000 0101 0000 
0400 0000 0000 0000 0E00 0000 0000 0000

It work with AIFAzul.kext from Sierra, but with AIFAzul.kext from High Sierra don't work...😪

Port is changed and if I press screen detecte button, the screen flickers once, but does not work ...

I think the problem may be in the structure of the last High Sierra kext.
Maybe it need another patch type.

Archivo comprimido.zip

Share this post


Link to post
Share on other sites

Hi Herve, please give me some advice

E7240 Haswell i5 4310U, HD4400, laptop build-in 1 HDMI port + 1 Mini DP,  system 10.11.6. Without any patch I check in IOReg it show below:

 

AppleIntelFramebuffer@0 

port-number: 0x0

connector-type: 02 00 00 00

AppleIntelFramebuffer@1

port-number: 0x5

connector-type: 00 04 00 00

AppleIntelFramebuffer@2

port-number: 0x6

connector type: 00 04 00 00

 

Current status is HDMI and Mini DP are OK with patch below:

0105 1200 0008 0000 8700 0000

0204 1200 0004 0000 8700 0000

 

Docking station connect to monitor with DVI cable, try with following patch all fail:

 

0204 1200 0004 0000 8700 0000

0204 1200 0002 0000 8700 0000

0204 0900 0004 0000 8700 0000

0204 0900 0002 0000 8700 0000

 

Something interesting during the study:

0204 0900 0004 0000 8700 0000    Mini DP to VGA adapter connect to home TV OK, but Mini DP to HDMI doesn't work

0204 1200 0004 0000 8700 0000    Both Mini DP to VGA and Mini DP to HDMI OK

0204 1200 0004 for DP or change connector type to 0002 (DVI), Mini DP working OK with both patch

 

When I connect monitor with  Mini DP to VGA adapter, I see there is one more line added under AppleIntelFramebuffer@2 in IOReg: "display0/AppleDisplay", when I put laptop on the docking station it's the same expect the monitor does't work, does this mean system already detect a second monitor through docking station? at lease it confirms 0204 is the correct port I should patch for

 

I tried all the possible patch on 10.10, 10.11 and 10.12 (10.12 is wasting time ......), still cannot use the monitor through docking station + DVI cable, also try docking station + VGA cable, same result. Please give me some advice, thank you.

 

Attach IOReg in 3 status:

No monitor connect to laptop - File 1 MacBook Air_File1.ioreg

Connect monitor with Mini DP to VGA adapter, monitor OK - File 2 MacBook Air_File2.ioreg

Laptop on docking station, DVI cable connect to monitor, NOK - File 3 MacBook Air_File3.ioreg

Share this post


Link to post
Share on other sites

@lubeats

 

Add to kextToPatch

Quote

 

Name* = com.apple.driver.AppleIntelBDWGraphicsFramebuffer

Find* =        06002616 01030303 00002002 00005001 00000060

Replace* = 06002616 01030303 00002002 00005001 00000099

Comment = Max VRam

 

 

Share this post


Link to post
Share on other sites

Found a fix here at InsanelyMac (thx @lubeats) for loss of DVI 2nd screen; patch of AppleGraphicsDevicePolicy kext:

Find:       BA05000000
Replace by: BA00000000

 

With this patch in place, I recovered DVI output off my docking station in Sierra 10.12.6 and High sierra 10.13.6.

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Hey @Hervé I told You that info in my post in InsanelyMac here. I discovered it for curiosity in a config.plist where nobody mention that with it We could get output video port for DVI and HDMI. It works in mojave beta too but audio HDMI doesn't works.

 

 

Share this post


Link to post
Share on other sites

Indeed. I did read a little further about patching the AppleGraphicsDevicePolicy  kext and found out it was a bypass for some checks (details elude me now, it was a quick read).  So I gave it a try as a fix for my 2nd screen issues and it worked. I've not tried Mojave on the E6440 yet but 10.14 comes out on Monday so it's just a few days to wait for the new OS installation package... The usual Azul patch certainly works in High Sierra 10.13.6 (alongside the AppleGraphicsDevicePolicy patch) for HDMI audio...

Share this post


Link to post
Share on other sites

Hi @Herve, That's good news! Thank you for your guide and update.

 

Could you please share more information about how to patch AppleGraphicsDevicePolicy? I have been struggling to get the docking station video outputs work on my E7440. What kext to do you have? Do you need any special DSDT patch to make it work?

 

I've tried different frame buffer patches but the result was inconsistent, and I haven't figured out why. The best result I managed to get was that I did get the video out on either DVI or DP, but sleep or shutdown don't work (both cause kernel panic when the cable is plugged in. Without the cable everything is fine). Does sleep/shutdown work for you? I'm using 10.13.6.

 

Then after I tried several different things (mainly switching between IntelGraphicsFixup and WhateverGreen and boot options for WhateverGreen), I cannot even get the video out now. I believe I went back to the same kext/setting I had before, but now there is no video signal on the monitor. If I check ioreg it has detected the display, and all the vendor/product/EDID info are correct. However there is just no video out (monitor power blinks which means it's waiting for the signal). Plus the sleep/shutdown still cause KP.

 

I don't know if this makes sense at all, but during my tests I found that the connector type does not matter that much. I could use one type (I don't remember if it was DP or DVI) to make both DP and DVI work (and both have the same KP issue :/). The "priority" bit you mentioned like 010509 does matter. For example 010512 works perfectly for my HDMI, but 010509 does not (it turns both displays blank). So does the activation delay. Is there any document talking about what priority bit we should use?

Share this post


Link to post
Share on other sites

The binary patch applicable to AppleGraphicsDevicePolicy is detailed in my post of Sept 6th. The recommendation is to apply that patch through Clover's usual on-the-fly facility. Of course, yYou may opt to patch the kext yourself through a Hex editor app like HexFiend or 0xED but you'd have to do it all again after each update/upgrade.

 

With regards to DVI and or DP, I can only suggest you try to get one working before trying the other. The Azul framebuffer patch for HDMI has long been documented and should work for you. All you have left to do now is to try the DVI and/or DP patch. Start with DVI and try the patches I had listed in my posts on p1. Once you have established which patch works for DVI, take a note of it before attempting the DP patch.

 

Azul FB#12 only supports 3 x display outputs so you can only have HDMI/DVI/DP/built-in LCD dual or triple displays, in compliance with Intel's multiple display specs of course.

 

For HDMI, I assume you'll have to apply the usual patch to layout 0x0a260006:

Find:    0105 0900 0004 0000
Replace: 0105 1200 0008 0000

 

For DVI, it should be:

Find:    0204 0900 0004 0000
Replace: 0306 1200 0002 0000
or
Replace: 0204 1200 0002 0000

 

For DP, it should be:

Find:    0204 0900 0004 0000
Replace: 0204 1200 0004 0000
or
Replace: 0306 1200 0004 0000

You'll have to make your own experiments, I don't have any E7440.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...