Jump to content
yungyulli

increase integrated graphics vram help

14 posts in this topic

Recommended Posts

hello I am using a laptop and using the ig-platform-id 0x0a260006. I have a intel hd4600 graphics on my intel 17-4710hq cpu and currently I only have 1536mb of ram but the max my graphics can support is 2GB so I need a point in the right direction of how to go about changing this so that I can utilize all 2GB of possible intel integrated graphics. I'm trying to learn some stuff!!!

is there a patch I need to create?

is there some code I need to edit?

anything helps as I am new to hackintosh. I just installed mines like a week ago.

thanks anyone for the help.

 

Share this post


Link to post
Share on other sites
Advertisement

Since SandyBridge, OS X/macOS allocates iGPU VRAM according to the amount of RAM installed on the computer:

https://support.apple.com/en-us/HT204349

 

For instance, with HD3000, max. VRAM is allocated as follows:

  • 2GB RAM -> 256MB VRAM
  • 4GB RAM -> 384MB VRAM
  • 8GB RAM -> 512MB VRAM

This can be overidden through a little patch of the SNB framebuufer kext: http://www.insanelymac.com/forum/topic/320001-increase-vram-hd-3000/

 

I've never tried it myself but I understand the same can be done for Ivy Bridge HD4000 with the Capri framebuffer kext: http://www.insanelymac.com/forum/topic/291603-help-hd-4000-increase-vram-size/ (If I remember well, HD4000 got up to 1024MB until Yosemite and up to 1536MB since El Capitan).

 

One could expect the same principle to be applicable to the Azul framebuffer for Haswell HD4600 but I've never seen/tried it.

 

Afaik, you system will run perfectly Ok with the default max. 1536MB, you should not need to increase it. It's a binary patch of the kext, so you may need to repatch after each update, depending on the implementation method you use. DSDT patch would only be a cosmetic thing.

Share this post


Link to post
Share on other sites

Since SandyBridge, OS X/macOS allocates iGPU VRAM according to the amount of RAM installed on the computer:

https://support.apple.com/en-us/HT204349

 

For instance, with HD3000, VRAM is allocated as follows:

  • 2GB RAM -> 256MB VRAM
  • 4GB RAM -> 384MB VRAM
  • 8GB RAM -> 512MB VRAM

This can be overidden through a little patch of the SNB framebuufer kext: http://www.insanelymac.com/forum/topic/320001-increase-vram-hd-3000/

 

I've never tried it myself but I understand the same can be done for Ivy Bridge HD4000 with the Capri framebuffer kext: http://www.insanelymac.com/forum/topic/291603-help-hd-4000-increase-vram-size/ (If I remember well, HD4000 got up to 1024MB up to Yosemite and up to 1536MB since El Capitan).

 

One could expect the same principle to be applicable to the Azul framebuffer for Haswell HD4600 but I've never seen/tried it.

 

Afaik, you system will run perfectly Ok with the default 1536MB, you should not need to increase it. It's a binary patch of the kext, so you may need to repatch after each update, depending on the implementation method you use. DSDT patch would only be a cosmetic thing.

hmm thank you. I will read those links you posted and I just want more vram for video editing really the only reason why 

Share this post


Link to post
Share on other sites

'decided to give it a try so, building on existing literature and previous experiments , I simply modified the value of what I believed to be the VRAM allocation byte and was able to increase max. VRAM in a few seconds.

 

My Dell Latitude E6440 laptop has mobile HD4600 and calls on Azul frame buffer/layout id #12/0x0a260006 for graphics acceleration. Using a hex editor app, if we look at that framebuffer/layout inside 10.12.6 vanilla AppleIntelFramebufferAzul kext v10.25.17, we see the following at offset 1381216:

0600260A 01030303 00000002 00003001
00006000 00000060 D90A0000 D90A0000
00000000 00000000 00000800 02000000
30000000 01050900 00040000 87000000
02040900 00040000 87000000 FF000000
01000000 40000000 0F000000 01010000
04000000 00000000 0E000000 00000000

As detailed here and in many threads that discuss Haswell Graphics (HD4400, HD4600, Iris, etc.), we know that the 1st 4 x bytes of each layout correspond to their ids in reverse order. What follows is data that includes information on VRAM allocation, framebuffer indexes, port numbers, etc. Looking at the various layouts of the Azul framebuffer kext (when displayed in lines of 4 groups of 8 bytes), we see that the 8th byte of the 2nd line is always set to hex value 40 or 60:

0000060C 00030303 00000004 00000001
0000F000 00000040 99140000 99140000 -> 40
[...]
0000160C 00030303 00000004 00000001
0000F000 00000040 99140000 99140000 -> 40
[...]
0000260C 00030303 00000004 00000001
0000F000 00000040 99140000 99140000 -> 40
[...]
00000604 00030303 00000004 00000001
0000F000 00000040 99140000 99140000 -> 40
[...]
0500260A 01030303 00000002 00003001
00005000 00000060 D90A0000 D90A0000 -> 60
[...]
0600260A 01030303 00000002 00003001
00006000 00000060 D90A0000 D90A0000 -> 60
[...]
08002E0A 01030303 00000004 00002002
00005001 00000060 6C050000 6C050000 -> 60
[...]
0300220D 00030303 00000002 00003001
00000000 00000060 99140000 99140000 -> 60
[...]
0A002E0A 00030303 00000002 00003001
00009000 00000060 99140000 99140000 -> 60
etc.

Building on the experience of HD3000 and HD4000 framebuffer VRAM patching, we know that max. VRAM allocation is defined as follows:

  • 18 -> 384MB
  • 20 -> 512MB
  • 40 -> 1024MB
  • 60 -> 1536MB
  • 80 -> 2048MB

There is therefore a good chance that this "8th" byte is for VRAM allocation.

 

Going back to my own HD4600 E6440 laptop, it always reports 1536MB of VRAM as standard:

post-851564-0-29455200-1503810764_thumb.png

 

I use layout #12 0x0a260006 which shows a default value of 60 for the 8th byte of the 2nd line. Changing this value to 40 gives me the following VRAM allocation after reboot:

post-851564-0-54721200-1503812424_thumb.png

and changing it to 80 gives me this:

post-851564-0-82680700-1503810777_thumb.png

 

So there you are, patch your Azul framebuffer kext to replace the VRAM allocation byte of your own layout to 80 and you'll have up to 2GB allocated.

Share this post


Link to post
Share on other sites

Newbies group users have a restricted forum access/permissions so we moved this topic to its original place. Also, any topic in this area should remain there.

 

Thank you for your understanding.

 

BR

 

fantomas1 

Share this post


Link to post
Share on other sites

Hello .. I want to follow the above post but couldn't find it in  the graphics section .. can any one send me any link ..

 

How can we do the same process for skylake hd520 ? can we change the vram value as well as it is for haswell ??

 

Waiting any reply .. Thanks 

Share this post


Link to post
Share on other sites

 

also could you let me in on some info really quick? thank you, it would help.

okay so I downloaded a hex editor app called hex fiend and I opened the appleintelazulframebuffer.kext  and I found the stuff you where talking about at offset 1381216 but the next thing you said about finding the allocation numbers :40 60 80 .

​I did not see anything of that nature. do I have to look somewhere else to find this? I only see all of these numbers and letters like how your picture showed. and to the right of these rows and columns of numbers and letters in a display box with a bunch of random words and addresses.

​by the way I have never used a hex editor before so this my be why I'm a little confused haha. or if its to much to explain to a noob if you could link something that could help me better understand that would be greatly appreciated. thanks again

Share this post


Link to post
Share on other sites

HexFiend is perfect, it's what I use.

 

But 1st thing 1st... Which Azul layout do you use?

 

If same as my E6440, i.e. 0x0a260006, then everything is explained in my above post. You just need to read it again more carefully because, yes, you do appear very confused. I've clearly stated how to view the binary data in a 4 columns arrangement (in case it's not obvious to you, simply adjust the open window width...) and where the VRAM allocation byte is located (8th byte, 2nd line of the layout). I just hope you're not expecting to find this in HexFiend: "-> 40" or "-> 60" or "-> 80". Do you? 

 

If you use a different layout, the process remains identical but offset (i.e. location/place of the code within the binary file) will clearly be different.

 

There are 16 different Azul layouts and you'll easily find the list through a Google search. I listed some of them in my post to show how and where each of them appeared to include the VRAM allocation byte.

 

NB: There's really no need to quote my entire post in your various replies. I'd be grateful if you did not, it makes the thread painful to read.

Share this post


Link to post
Share on other sites

Hello .. I want to follow the above post but couldn't find it in  the graphics section .. can any one send me any link ..

 

How can we do the same process for skylake hd520 ? can we change the vram value as well as it is for haswell ??

 

Waiting any reply .. Thanks 

Open your own Skylake VRAM allocation thread in the graphics section. I don't possess or have hands on any Skylake system so I cannot confirm that the same can be done for Skylake graphics but I suspect the principles remain the same. But it's off-topic here.

Share this post


Link to post
Share on other sites

 

There are 16 different Azul layouts and you'll easily find the list through a Google search. I listed some of them in my post to show how and where each of them appeared to include the VRAM allocation byte.

 

 

 

ohh okay sorry there is where I got confused haha I thought I was suppose to see all of those different layouts. I patched it and it worked! thank you!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By MaLd0n
      First... If you need DSDT edits... -Extract tables with F4 key in Clover boot screen! -Run it and send me files! RunMe.app   Installation --Create a bootable copy of El Capitan and Sierra Check out the link http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Create a bootable copy of macOS HighSierra Check out the link http://diskmakerx.com/   --Install Clover in USB stick https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace with my Clover folder CLOVER Install.zip   --Install EL Capitan / Sierra / High Sierra and boot into system! for Sierra/High Sierra you need a Processor with SSE4.1 instruction   Post Installation --Install Clover and replace with my folder CLOVER Post Install.zip   --Reboot and activate video!   Bingo! Now you need a fine tune! DSDT Time! -Post your full Clover folder with original tables in Origin folder(Extract with F4 in Clover boot screen) and tell me what your hardware! -Post Ioreg, extract with Ioreg Explorer http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=222606 -Run it, post files generate in your desktop http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=222609    My DSDT GA P35-DS3 DSDT.MaLd0n LGA775.zip   Patches -FIX ERRORS AND WARNINGS -HPET -SATA -SLPB -DARWIN -LPC -HDEF -RTC -EHCI -UHCI -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -EC -PNLF --Native Power Management
       
      Use Clover, check Generate P and C States
       
      --Brightness
      Install .app, select the required permission and reboot. Work in F1 / F2 keys!
      NativeDisplayBrightness.app.zip


      https://github.com/Bensge/NativeDisplayBrightness/releases
      *in some cases .app don't work, check patches in config.plist inside Clover folder Post Install
       
      --AUDIO
       
      Device HDEF + AppleAlc + Lilu
       
      --install Lan driver by Mieze
        -Atheros http://www.insanelymac.com/forum/files/file/313-atherose2200ethernet/   -Intel http://www.insanelymac.com/forum/files/file/396-intelmausiethernet/   -Realtek http://www.insanelymac.com/forum/files/file/88-realtekrtl8111-binary/   --Links   -FakeSMC https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek   -Audio https://github.com/vit9696/AppleALC http://www.insanelymac.com/forum/topic/293863-applehda-patch-requests/   -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others!   We're all here to have fun and learn from each other!   ENJOY!  
    • By MaLd0n
      First... If you need DSDT edits... -Post your full Clover folder with original tables in Origin folder(Extract with F4 in Clover boot screen) -Run it, post files generated in your desktop RunMe.app  Installation   --Create a bootable copy of macOS Sierra Check out the link http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Create a bootable copy of macOS HighSierra Check out the link http://diskmakerx.com/   --Install Clover in USB stick https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace with my Clover folder  CLOVER.zip   --Install Sierra/High Sierra and boot into system!   Post Installation   --Install Clover in HDD/SSD and replace with my folder CLOVER.zip   --Reboot and activate video!   -Nvidia WebDriver Sierra http://www.insanelymac.com/forum/topic/312525-nvidia-web-driver-updates-for-macos-sierra-update-07212017/ -Nvidia WebDriver High Sierra http://www.insanelymac.com/forum/topic/324195-nvidia-web-driver-updates-for-macos-high-sierra-update-10162017/ -Cuda http://www.insanelymac.com/forum/topic/302795-cuda-90214-is-out-update-10162017/   -DSDT My DSDT DSDT.GA H97M-DS3P MaLd0n.zip   -Patches -FIX ERRORS AND WARNINGS -HPET -SATA -DMAC -SLPB -DARWIN -LPC -XHCI -HDEF -RTC -IRQs -SBUS -MIKEY -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -EC -PNLF -HDMI





      -FakeSMC
      https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek -Audio https://github.com/vit9696/AppleALC -LAN https://github.com/Mieze/IntelMausiEthernet   -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others!   We're all here to have fun and learn from each other!   ENJOY!  
    • By MaLd0n
      Nehalem, SandyBridge, IvyBridge, Haswell, Broadwell     Skylake, Kabylake and Coffeelake is here http://www.insanelymac.com/forum/topic/321872-guide-sierra-on-gigabyte-mobos-serie-200-kabylake-dsdt/   First...   ***Update bios to last available version!***   If you need a full patched DSDT...  -Extract tables with F4 key in Clover boot screen! -Run it and send me files! RunMe.app   Installation   --Create a bootable copy of macOS Sierra Check out the link http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Create a bootable copy of macOS HighSierra Check out the link http://diskmakerx.com/   --Install Clover in USB stick https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace with my Clover folder   CLOVER Install.zip   --Install Sierra/High Sierra and boot into system!   Post Installation --Install Clover and replace with my folder   CLOVER Post Install.zip   --Reboot and activate video!   Bingo!   Now you need a fine tune! DSDT time!   --DSDT   Patches -FIX ERRORS AND WARNINGS -HPET -SATA -DMAC -SLPB -DARWIN -LPC -XHCI -PLUGIN TYPE -XXXX to HDEF -HDEF -RTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -USBX -PMCR -EC -PNLF -HDMI
       
      --Power Management
      - 1 Generation Intel Processors, use Generate P and C States in config.plist
      - 2 and 3 Generations Intel Processors, Generate SSDT with Piker script and drop CpuPm and Cpu0Ist SSDTs
      ssdtPRGen.command.zip
      Credits-https://github.com/Piker-Alpha/ssdtPRGen.sh
      - 4 Generation+ Intel Processors, use PluginType=1 in DSDT, SSDT or Clover config.plist
       
      for check Power, Frequency, Temperature and Utilization, use it
      Install Intel Power Gadget.pkg.zip
       
      --Brightness
      Install .app, select the required permission and reboot. Work in F1 / F2 keys!
      NativeDisplayBrightness.app.zip


      https://github.com/Bensge/NativeDisplayBrightness/releases
      *in some cases .app don't work, check patches in config.plist inside Clover folder Post Install
       
      --Clover
       
      https://sourceforge.net/projects/cloverefiboot/files/Installer/
       
      --AUDIO
       
      Use DSDT + AppleAlc
       
      --install Lan driver by Mieze
        -Atheros http://www.insanelymac.com/forum/files/file/313-atherose2200ethernet/   -Intel http://www.insanelymac.com/forum/files/file/396-intelmausiethernet/   -Realtek http://www.insanelymac.com/forum/files/file/88-realtekrtl8111-binary/   --Links   -FakeSMC https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek   -Audio https://github.com/vit9696/AppleALC http://www.insanelymac.com/forum/topic/314406-voodoohda-289/   -USB https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads   It's time to Rock   -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Apple, Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others!   We're all here to have fun and learn from each other!  
    • By JohnCenaTheMemeMachine
      I'm not expecting too much help, but if anyone has any suggestions, that would be great.

      I recently got my Hackintosh running on macOS 10.14, and went to install the graphics drivers for my Nvidia GeForce GTX 750 Ti. My setup is a little different, so here it is:

      Screen 1 Screen 2 Screen 3

      Screen 1 and 2 are both connected to my 750 Ti, whereas screen 3 is connected to my iGPU, with is an intel HD 4600. The intel GPU works like a charm, just as it did under High Sierra.

      Now, I got the Nvidia Web drivers to "work" by removing any traces via the "Web Driver Toolkit" that others have recommended. I then patched the installer, installed it, rebooted, patched the installed drivers, and rebooted again, where the drivers are at their current state.

      This is where things get interesting though. All 3 monitors are recognized. My GPU is recognized in my system profiler. However, it is NOT able to be used to run a compute in Geekbench, meaning that GPU acceleration is obviously disabled. The other thing that doesn't work, is, well, the 2 monitors connected to the GPU. They are set to the correct resolution and refresh rates, and are recognized in System Preferences, and I can even drag things between the different desktops.

      But I can only see my cursor. The screens are totally black, and I can't see anything on them except my cursor moving across them. Has this happened to anyone else? Thanks in advance!

      Specs:
      Asrock B85M-Pro4 Motherboard
      Intel Core i5-4690 CPU
      Intel HD 4600 GPU 1
      Nvidia GeForce GTX 750 Ti GPU 2
      iMac 15,1 SMBIOS

      Here is a picture of what happens
      https://imgur.com/gallery/lWTLWlw

      My clover and EFI folders are attached
      EFI.zip
×