Contribute
Register

[GUIDE] Intel HD Graphics 5500 on OS X Yosemite 10.10.3

Joined
Apr 9, 2015
Messages
59
Motherboard
OS X 10.10.3
CPU
i7-4790K
Graphics
GTX970
Mac
Classic Mac
Mobile Phone
After several weeks' work with @lisai9093, now it's time to post a guide. :)


GUIDE:
Intel HD Graphics 5500 on OS X Yosemite 10.10.3



Snip20150416_7.png

Before we get started:


The basic idea to make Broadwell's integrated graphics card work does not change.

If you have Intel HD Graphics 5300 or other IGPU models supported by AppleIntelBDWGraphicsFramebuffer.kext, you can try it by yourself.

Detailed framebuffer information and this guide can be found on my blog.

Brief Introduction:


The basic idea to let Intel HD Graphics 5500 work is still injecting AAPL, ig-platform-id.

However, Apple raised the minimum stolen memory in the AppleIntelBDWGraphicsFramebuffer binary of OS X Yosemite 10.10.3.
Kernel panic will happen if the DVMT pre-allocated memory in BIOS settings is lower than 66MB.(based on experimental data; not sure; please correct me if I was wrong.) This is not a big deal for Desktop PCs users, because one can easily change the DVMT pre-allocated memory in BIOS.
But this is catastrophic for laptop users, because
(1) the default value of DVMT pre-allocated memory in laptop BIOS is 32MB.
(2) OEM will not unlock these advanced settings/menus for us.
(3) We can try to modify BIOS but cannot pass the security check during flashing modified BIOS.


Detailed Step-by-step guide:

STEP 1: Check the current DVMT pre-allocated memory size.

Open the Screen Resolution window, click the Advanced settings and check Dedicated Video Memory.

Snip20150416_5.jpg

After I played with changing DVMT pre-allocated memory in BIOS, the following pattern can be found.


If Dedicated Video Memory = 0MB, then DVMT pre-allocated memory in BIOS settings is 32MB.
If Dedicated Video Memory = 32MB, then DVMT pre-allocated memory in BIOS settings is 64MB.
If Dedicated Video Memory = 64MB, then DVMT pre-allocated memory in BIOS settings is 96MB.
If Dedicated Video Memory = 128MB, then DVMT pre-allocated memory in BIOS settings is 128MB.

In general, if DVMT pre-allocated memory in BIOS settings is less or equal to 96MB, the StolenMemory that could be detected by OS is (DVMT - 32) MB.
If DVMT pre-allocated memory in BIOS settings is larger or equal to 128MB, the StolenMemory that could be detected by OS is (DVMT) MB. (equal to the value of DVMT pre-allocated memory)
Now let's come back to our main topic, Dedicated Video Memory >=64MB (i.e. DVMT pre-allocated memory >= 96MB) will pass the assertion/kernel panic.

Note that OS X can not boot on some laptops if DVMT pre-allocated memory is >= 128MB.
Therefore, if your current DVMT pre-allocated memory size <= 64MB (i.e. Dedicated Video Memory <= 32MB), you can either choose using our patch in STEP 2.1 or changing DVMT pre-allocated setting in STEP 2.2

STEP 2.1: Apply the patch to pass the Stolen Memory assertion.


We need to patch AppleIntelBDWGraphicsFramebuffer binary file.
Find 39CF763C and replace it with 39CF773C.

After using this patch, in theory you don't have to change your BIOS settings.
You can try to inject ig-platform-id and see what happens.


If you encounter some problems, try to modify Framebuffer data in AppleIntelBDWGraphicsFramebuffer binary.
Detailed information on Broadwell's framebuffer can be found on this page.

STEP 2.2: Using EFI Shell to change DVMT settings in BIOS.


(1) Prepare a bootable USB drive with EFI Shell
Prepare a USB stick and format it with FAT32 filesystem.
Download this EFI shell and you can find a folder named BOOT after extracting.
Copy this BOOT folder to your USB stick.

(2) Dump/Fetch a completed BIOS file.
You can use specific BIOS utility to save a copy of your BIOS on Desktop.
e.g. For AMI Aptio UEFI BIOS, you can use AMI BIOS Utility.

(3) Extract BIOS Settings from a BIOS file.
Download UEFITools from https://github.com/LongSoft/UEFITool/releases
Open your BIOS file with UEFITools.
Find the module labeled with Setup and extract the PE32 image section in this module as a binary file.

Snip20150416_2.png

Now, you will have a binary file on your Desktop. In my case, I name it Setup.bin.
Next, download the Universal IFR Extractor (Windows version only) from http://donovan6000.blogspot.ca/2014/02/universal-ifr-extractor.html or from here: Universal IFR Extractor.exe.
Open the Universal IFR Extractor in Windows, open the binary you just extracted from UEFITools and click Extract to save the BIOS settings in plain text format.

Now open the extracted setup IFR.txt and find the keyword "DVMT".

And you can find the variable representing DVMT pre-allocated memory and its values.

Snip20150416_4.jpg

In this case, DVMT pre-allocated memory's variable is 0x1C3. The value of 96MB is 0x3. Record these two values.
Next, restart your computer and boot from the USB drive with EFI Shell.
Here, we use setup_var command to change our BIOS settings.
Code:
[B][SIZE=3][B][COLOR=#ff0000]syntax:[/COLOR] setup_var [I]address value[/I][/B][/SIZE][/B]
OK, now type the command in EFI shell.
In this case, the command is setup_var 0x1C3 0x3. (Change the value of 0x1C3 to 0x3, which means changing the DVMT to 96MB.)

After changing the DVMT pre-allocated memory, go back to Windows and double check whether your current Dedicated Video Memory is 64MB. (96 - 32 = 64MB)

STEP 3: Injecting AAPL, ig-platform-id


Currently, Clover does not support inject AAPL, ig-platform-id for Broadwell's integrated graphics.

So we can use DSDT/SSDT to inject AAPL, ig-platform-id. 0x16160002 is working fine.

Open your DSDT, find Device (GFX0) or Device (IGPU) or Name (_ADR, 0x00020000) and add the Device-Specific Method.

Code:
Method (_DSM, 4, NotSerialized)
                    {
                        If (LEqual (Arg2, Zero))
                        {
                            Return (Buffer (One)
                            {
                                0x03
                            })
                        }

                        Return (Package (0x08)
                        {
                            "device-id", 
                            Buffer (0x04)
                            {
                                0x16, 0x16, 0x00, 0x00
                            }, 

                            "AAPL,ig-platform-id", 
                            Buffer (0x04)
                            {
                                0x02, 0x00, 0x16, 0x16
                            }, 

                            "model", 
                            Buffer (0x17)
                            {
                                "Intel HD Graphics 5500"
                            }, 

                            "hda-gfx", 
                            Buffer (0x0A)
                            {
                                "onboard-1"
                            }
                        })
                    }


Place your DSDT in /EFI/Clover/ACPI/Patched/

Restart your computer and you will find Intel HD Graphics 5500 is working now.

Some Issues you may encounter:


(1) Garbled Screen Issue

Enable Legacy Support in your BIOS settings.

(2) Screen Freeze Issue (GPU hang and restart)


Using FakeSMC 5.3.820 or other 5.x.xxx version will decrease the opportunity to freeze.
(Note that please delete CPUSensors.kext from FakeSMC.kext if you get kernel panic related to CPUSensors.kext)

Reference and Special Thanks:


Thanks to Rehabman @ tonymacx86 for his advice on garbled screen issue.

Thanks to nguyenmac @ tonymacx86 for his clues on freeze issue.

Thanks to sontrg for his direction to BIOS modification.

Thanks to the-darkvoid @ tonymacx86 for his QHD+ Guide on HD4600.
 
Joined
Nov 13, 2013
Messages
62
Motherboard
OS X 10.9.5
CPU
intel core 2 duo T6570
Graphics
Nvidia Geforce G 105m
Mac
Classic Mac
Mobile Phone
Congratulations!! It's really a good news for people who own a new device. And Congratulations to Austere.J for your first very own English Guide. Cheers! :thumbup:
 
Joined
Feb 9, 2012
Messages
117
Motherboard
ASUS Z370 PRIME A
CPU
i7-8700K
Graphics
GTX 650Ti
Mobile Phone
Android, Other
Congrats. More stuff coming out from you without doubt.
 
Joined
Mar 10, 2012
Messages
196
Motherboard
Dell XPS 8930
CPU
i5 8400
Graphics
UHD630+RX580
Mac
MacBook Pro
Mobile Phone
iOS
omg~ my sofa.........bench......and carpet....
 
Joined
Dec 29, 2014
Messages
147
Motherboard
Lenovo X1 Carbon (Gen 3 20BS) - Clover
CPU
Intel Core i7-5600U/Broadwell-U
Graphics
HD 5500, 1920x1080
Hi Austere!

Thanks sooooo much for the guide. I've read it about 3 times over now and am anxious to begin.

One quick question before I begin, based off your guide my dedicated video memory in windows is 64mb, dvmt = 96mb does that mean I can skip down to step 3 and go from there?

Thanks,
JC
 
Joined
Mar 10, 2012
Messages
196
Motherboard
Dell XPS 8930
CPU
i5 8400
Graphics
UHD630+RX580
Mac
MacBook Pro
Mobile Phone
iOS
Hi Austere!

Thanks sooooo much for the guide. I've read it about 3 times over now and am anxious to begin.

One quick question before I begin, based off your guide my dedicated video memory in windows is 64mb, dvmt = 96mb does that mean I can skip down to step 3 and go from there?

Thanks,
JC
definitely~ good luck~
 
Joined
Oct 22, 2012
Messages
3,494
Motherboard
HP Elitebook 8470p
CPU
Intel Core i5 3320M
Graphics
Intel HD 4000, 1600x900
Mobile Phone
iOS
Clover does support ig-platform-id

Just set:
InjectIntel=True
ig-platform-id=0x16160002 / 0x16160000

It works for me, although Clover will inject Intel HD6000 in model name (just cosmetic). It's easier than dsdt patching.
 
Joined
Mar 22, 2015
Messages
2
Motherboard
Dell Inspiron 5548
CPU
Intel Core i7 5500U
Graphics
Intel HD 5500
Mac
Classic Mac
Mobile Phone
Congratulation you guys. Your guide will be helpful for new device :D
 
Joined
Dec 29, 2014
Messages
147
Motherboard
Lenovo X1 Carbon (Gen 3 20BS) - Clover
CPU
Intel Core i7-5600U/Broadwell-U
Graphics
HD 5500, 1920x1080
Clover does support ig-platform-id

Just set:
InjectIntel=True
ig-platform-id=0x16160002 / 0x16160001

It works for me, although Clover will inject Intel HD6000 in model name (just cosmetic). It's easier than dsdt patching.
You just made step 3 a lot easier! I am downloading the 10.10.3 installer now but I am going to give all of this a try tonight and I will report back and let you know how it goes.
 

Top