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 steamteam
      Hey everyone,
       
      after years I come back to Hackintosh. In the early days I played with ozmosis and my good old 4700k. Now I'm back and worked around a 100% working setup with enough power to get me through all my tasks like audio, video cut etc.
       
      In this short tutorial I will guide you through BIOS Settings and give you access to my EFI Folder. This I do because I haven't found anything on the web for my setup. Maybe it will help some of you. When you follow the steps you will have a perfect running Hackintosh  like I do have now  
       
      I've chosen the iMac 18,3 because of the easy integration of both Graphic Units and the support of HEVC. 
       
      Specs:
       
      CPU: Intel i7 9700k (Overclocked in Bios to 4,7 GHz)
      SMBIOS: iMac18,3 (Because of Dedicated Graphics and HEVC Intel Support)
      RAM: 32GB G.Skill Trident Z RGB DDR4-3200 DIMM CL16 (XMP Profile to 3200MHz)
      Motherboard: MSI MPG Z390 GAMING PRO CARBON (MS-7b17) <- It's the model without WLAN/Bluetooth
      Graphic Card: Sapphire RX580 Nitro+
      Bluetooth & WLAN: Broadcom Card in PCI Adapter
       
      What is working: 
       
      Almost everything! All USB Ports, Intel Power Management, Bluetooth, WLAN, LAN, Intel Graphics HEVC, Boot/Reboot, Sleep
       
      What is not working: 
       
      Facetime & iMessage (Don't need it but I will come back to this)
       
      Steps:
       
      1. Create Mojave 10.14.5 USB Drive | https://www.youtube.com/watch?v=9CZDXxKfodE&amp;t=95s | Us this tutorial or search the forum
      2. Load my EFI Folder: https://workupload.com/file/zkJ4zdQk
      3. Go into your bios and use my settings in the Screenshot I attached 
      4. Boot from USB Stick | Install Mojave | Boot into Mojave (Check other Tutorials if you don't know how)
      5. Generate Serials with Clover Configurator
      6. Happy Hackintosh Life! 
       
      Kext I use:
       
      AppleALC.kext | Needed for Sound
      BrcmFirmwareData.kext | Needed for my WLAN/Bluetooth Card 
      BrcmNonPatchRAM2.kext | Needed for my WLAN/Bluetooth Card 
      BrcmPatchRAM2.kext | Needed for my WLAN/Bluetooth Card 
      CodecCommander.kext | Fix Problems after Sleep
      CPUFriend.kext | Perfect Power Management for my CPU
      CPUFriendDataProvider.kext | Perfect Power Management for my CPU
      FakePCIID_Broadcom_WiFi.kext | Needed for my WLAN/Bluetooth Card 
      FakePCIID.kext | Needed for my WLAN/Bluetooth Card 
      FakeSMC.kext | Standard
      IntelMausiEthernet.kext | Ethernet
      Lilu.kext | Standard
      USBInjectAll.kext | To fix all USB Ports
      WhateverGreen.kext | Needed for graphics
       
       
      If you have success with my little tutorial and EFI Build let me know! Hope you reach the desktop and will be happy!
       






    • By MaLd0n
      Now have a Olarila app, just download app and clover folder for your Chipset! https://olarila.com/forum/viewtopic.php?f=81&amp;t=6771   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/   Install MacOS with Olarila Image, Step by Step, Install and Post Install
       
      https://olarila.com/forum/viewtopic.php?f=50&t=8685
        Mojave Full DSDT patch   http://olarila.com/forum/viewtopic.php?f=59&amp;t=6428   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 / High Sierra / Mojave   https://github.com/chris1111/Create-Install-Media/releases   --Install Clover in USB stick   https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace with my Clover folder https://olarila.com/files/Clover.Folder/CLOVER.SERIES.CHIPSET.zip   --Install Sierra/High Sierra and boot into system!   Post Installation --Install Clover and replace with my folder   https://olarila.com/files/Clover.Folder/CLOVER.SERIES.CHIPSET.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 MaLd0n
      Now have a Olarila app, just download app and clover folder for your Chipset! https://olarila.com/forum/viewtopic.php?f=81&amp;t=6771   Install MacOS with Olarila Image, Step by Step, Install and Post Install
       
      https://olarila.com/forum/viewtopic.php?f=50&t=8685
        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 /  Sierra / High Sierra / Mojave   https://github.com/chris1111/Create-Install-Media/releases   --Install Clover in USB stick https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace with my Clover folder   https://olarila.com/files/Clover.Folder/CLOVER.LGA775.zip   --Install EL Capitan / Sierra / High Sierra and boot into system!     Post Installation   --Install Clover and replace with my folder   https://olarila.com/files/Clover.Folder/CLOVER.LGA775.zip     --Reboot and activate video!   Bingo! Now you need a fine tune! DSDT Time!   My DSDT GA P35-DS3   DSDT.MaLd0n.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 Theapc06
      Hi I Just Bought A Hp Elite 8300 I3 3200 Desktop Computer And I Was Wondering If The Intel HD Graphics Were Going To Be Supported When I iNSTALL Mojave Or High Sierra Thanks -ALEX
       
       
      PS: What Is The Better OS To Go For On This Desktop PC : MacOS High Sierra -10.13 Or MacOS Mojave -10.14
       
                                                   Thanks Again -Alex
       
×