Contribute
Register

DMVT Memory Patch and Intel HD 5500 - macOS Sierra - HP ENVY 15-ae020ng

Status
Not open for further replies.
Joined
Mar 14, 2011
Messages
22
Motherboard
ASROCK Z77 Extreme4
CPU
Intel i5 3570K
Graphics
Palit GTX 780 Super Jetstream
Mobile Phone
  1. Android
Hello hackintoshers,

back from the dead I now own a new notebook since some months and now finally had the time to test out the mackintosh installation.

My specs:
HP Envy 15-ae020ng
Mac OS 10.12 - Sierra
Intel HD 5500 Graphics
system currently running on an external drive

Now to my problem:
Currently the system shows the Intel HD 5500 with 7MB VRAM, of course everything is laggy and not daily driver ready.
So I want to get full support for my Intel HD 5500 under Sierra.
IMG_20170319_110418.jpg

What I have done so far:
I downloaded and flashed the newest BIOS.
I extracted it and found the offset "0x18C" to be the "DVMT Pre-Allocated" which was set to "0x1" so 32MB.
I now want to increase that by changing it to "0x3" which equals 96MB.

Using the EFI Shell provided here in the forums I can boot into it by choosing "Boot from EFI File" but I cannot set the value using setup_var.
Using "setup_var 0x18C 0x3" only shows me the error:
(Cannot set variable (Error: 0x0000000001a))

Using setup_var2 however, I can permanently change the value and even after a reboot it stays at "0x3".
Does that mean the change was successful, even though I could not use setup_var?

Since that command does not work I tried to change it using Ubuntu and EFIvars, but since nearly every kernel has been patched to not allow /sys/firmware/efi/efivars/ modification anymore, I am out of luck.

Another way I used to change my primary graphics card, was using the Clover EFI Shell which worked using setvar with the GUIDs I got from Linux by reading the directory above.
This way I could permanently edit a variable.
IMG_20170318_235700.jpg

Sadly, the memory value is saved in a variable called "Setup" which is so huge that with the command
"setvar Setup -guid {GUID} = 00 01 04 05 03 00 00 ..."
would take forever and very dangerous if I mistype one number.

Are there any others ways to set the values?

-------

Using the Clover Configurator I used "0x16160002" and "0x16260006" as values for my clover ig-platform-id, as well as activated "Inject Intel" and using the Kext-Patch provided in the file:
config_HD5300_5500_6000.plist

With the HD Audio Port Patches and also without them my screen on boot looks the following:
IMG_20170319_165040.jpg

Removing the Kext-Patch for the minimal memory requirements, I do get a kernel panic:
IMG_20170319_171107.jpg

Is there something I am missing to get the display right?
Getting the kernel panic without the Kext-Patch should mean my DVMT Memory change has not been successful.
I am doing something wrong, or why could the command setup_var fail at that point?

Thank you for any help, I will try to provide more information on request. :)
 
Hello hackintoshers,

back from the dead I now own a new notebook since some months and now finally had the time to test out the mackintosh installation.

My specs:
HP Envy 15-ae020ng
Mac OS 10.12 - Sierra
Intel HD 5500 Graphics
system currently running on an external drive

Now to my problem:
Currently the system shows the Intel HD 5500 with 7MB VRAM, of course everything is laggy and not daily driver ready.
So I want to get full support for my Intel HD 5500 under Sierra.
View attachment 243083

What I have done so far:
I downloaded and flashed the newest BIOS.
I extracted it and found the offset "0x18C" to be the "DVMT Pre-Allocated" which was set to "0x1" so 32MB.
I now want to increase that by changing it to "0x3" which equals 96MB.

Using the EFI Shell provided here in the forums I can boot into it by choosing "Boot from EFI File" but I cannot set the value using setup_var.
Using "setup_var 0x18C 0x3" only shows me the error:
(Cannot set variable (Error: 0x0000000001a))

Using setup_var2 however, I can permanently change the value and even after a reboot it stays at "0x3".
Does that mean the change was successful, even though I could not use setup_var?

Since that command does not work I tried to change it using Ubuntu and EFIvars, but since nearly every kernel has been patched to not allow /sys/firmware/efi/efivars/ modification anymore, I am out of luck.

Another way I used to change my primary graphics card, was using the Clover EFI Shell which worked using setvar with the GUIDs I got from Linux by reading the directory above.
This way I could permanently edit a variable.
View attachment 243082

Sadly, the memory value is saved in a variable called "Setup" which is so huge that with the command
"setvar Setup -guid {GUID} = 00 01 04 05 03 00 00 ..."
would take forever and very dangerous if I mistype one number.

Are there any others ways to set the values?

-------

Using the Clover Configurator I used "0x16160002" and "0x16260006" as values for my clover ig-platform-id, as well as activated "Inject Intel" and using the Kext-Patch provided in the file:
config_HD5300_5500_6000.plist

With the HD Audio Port Patches and also without them my screen on boot looks the following:
View attachment 243080

Removing the Kext-Patch for the minimal memory requirements, I do get a kernel panic:
View attachment 243079

Is there something I am missing to get the display right?
Getting the kernel panic without the Kext-Patch should mean my DVMT Memory change has not been successful.
I am doing something wrong, or why could the command setup_var fail at that point?

Thank you for any help, I will try to provide more information on request. :)
You need to figure out your own value like it is written in the DVMT guide.
I think the value "0x18C 0x3" isn´t for your system, so you need to da an IFR extract from the .ROM file.
For example I also have an Acer notebook like Kintusk, but my value is for example "0x180".
Each notebook has a different value.
 
You need to figure out your own value like it is written in the DVMT guide.
I think the value "0x18C 0x3" isn´t for your system, so you need to da an IFR extract from the .ROM file.
For example I also have an Acer notebook like Kintusk, but my value is for example "0x180".
Each notebook has a different value.

Thank you very much for answering, but i am far beyond this point.
I have written i extracted the BIOS and found the offset, which you can see in the files attached to this answer.

Code:
Grayout If: {19 82}
0x7420C             Variable 0x297 equals 0x2 {12 86 97 02 02 00}
0x74212                 Variable 0x296 equals 0x1 {12 06 96 02 01 00}
0x74218                 And {15 02}
0x7421A             End {29 02}
0x7421C             Setting: IGD - DVMT Pre-Allocated, Variable: 0x18C {05 91 EC 02 ED 02 00 0A 34 12 8C 01 04 10 00 3F 00}
0x7422D                 Option: 0 MB, Value: 0x0 {09 07 19 02 00 00 00}
0x74234                 Option: 32 MB, Value: 0x1 (default) {09 07 1E 02 10 00 01}
0x7423B                 Option: 64 MB, Value: 0x2 {09 07 1F 02 00 00 02}
0x74242                 Option: 96 MB, Value: 0x3 {09 07 22 02 00 00 03}
0x74249                 Option: 128 MB, Value: 0x4 {09 07 20 02 00 00 04}
0x74250                 Option: 160 MB, Value: 0x5 {09 07 23 02 00 00 05}
0x74257                 Option: 192 MB, Value: 0x6 {09 07 26 02 00 00 06}
0x7425E                 Option: 224 MB, Value: 0x7 {09 07 24 02 00 00 07}
0x74265                 Option: 256 MB, Value: 0x8 {09 07 21 02 00 00 08}
0x7426C                 Option: 288 MB, Value: 0x9 {09 07 27 02 00 00 09}
0x74273                 Option: 320 MB, Value: 0xA {09 07 28 02 00 00 0A}
0x7427A                 Option: 352 MB, Value: 0xB {09 07 25 02 00 00 0B}
0x74281                 Option: 384 MB, Value: 0xC {09 07 29 02 00 00 0C}
0x74288                 Option: 416 MB, Value: 0xD {09 07 2A 02 00 00 0D}
0x7428F                 Option: 448 MB, Value: 0xE {09 07 2B 02 00 00 0E}
0x74296                 Option: 480 MB, Value: 0xF {09 07 2C 02 00 00 0F}
0x7429D                 Option: 512 MB, Value: 0x10 {09 07 2D 02 00 00 10}
0x742A4                 Option: 1024 MB, Value: 0x20 {09 07 2E 02 00 00 20}
0x742AB                 Option: 1536 MB, Value: 0x30 {09 07 2F 02 00 00 30}
0x742B2                 Option: 2016 MB, Value: 0x3F {09 07 30 02 00 00 3F}
0x742B9             End of Options {29 02}
0x742BB         End If {29 02}


Thank you anyway :)
 

Attachments

  • FE3542FE-C1D3-4EF8-657C-8048606FF670_1465 IFR.txt
    503.9 KB · Views: 660
Hello hackintoshers,

back from the dead I now own a new notebook since some months and now finally had the time to test out the mackintosh installation.

My specs:
HP Envy 15-ae020ng
Mac OS 10.12 - Sierra
Intel HD 5500 Graphics
system currently running on an external drive

Now to my problem:
Currently the system shows the Intel HD 5500 with 7MB VRAM, of course everything is laggy and not daily driver ready.
So I want to get full support for my Intel HD 5500 under Sierra.
View attachment 243083

What I have done so far:
I downloaded and flashed the newest BIOS.
I extracted it and found the offset "0x18C" to be the "DVMT Pre-Allocated" which was set to "0x1" so 32MB.
I now want to increase that by changing it to "0x3" which equals 96MB.

Using the EFI Shell provided here in the forums I can boot into it by choosing "Boot from EFI File" but I cannot set the value using setup_var.
Using "setup_var 0x18C 0x3" only shows me the error:
(Cannot set variable (Error: 0x0000000001a))

Using setup_var2 however, I can permanently change the value and even after a reboot it stays at "0x3".
Does that mean the change was successful, even though I could not use setup_var?

Since that command does not work I tried to change it using Ubuntu and EFIvars, but since nearly every kernel has been patched to not allow /sys/firmware/efi/efivars/ modification anymore, I am out of luck.

Another way I used to change my primary graphics card, was using the Clover EFI Shell which worked using setvar with the GUIDs I got from Linux by reading the directory above.
This way I could permanently edit a variable.
View attachment 243082

Sadly, the memory value is saved in a variable called "Setup" which is so huge that with the command
"setvar Setup -guid {GUID} = 00 01 04 05 03 00 00 ..."
would take forever and very dangerous if I mistype one number.

Are there any others ways to set the values?

-------

Using the Clover Configurator I used "0x16160002" and "0x16260006" as values for my clover ig-platform-id, as well as activated "Inject Intel" and using the Kext-Patch provided in the file:
config_HD5300_5500_6000.plist

With the HD Audio Port Patches and also without them my screen on boot looks the following:
View attachment 243080

Removing the Kext-Patch for the minimal memory requirements, I do get a kernel panic:
View attachment 243079

Is there something I am missing to get the display right?
Getting the kernel panic without the Kext-Patch should mean my DVMT Memory change has not been successful.
I am doing something wrong, or why could the command setup_var fail at that point?

Thank you for any help, I will try to provide more information on request. :)

Many HP laptops have the variable locked in BIOS therefore not possible to change without a patched BIOS.

If you can't set the variable, you need to use the minStolenSize patch and hope for the best.
 
Many HP laptops have the variable locked in BIOS therefore not possible to change without a patched BIOS.

If you can't set the variable, you need to use the minStolenSize patch and hope for the best.

Thank you for your reply.
I was able to set the SwitchableGraphicsVariable, is it possible that only some variables are locked?
Because if not, i will have to use the way described above by manually copying the hex data by using setvar in the clover shell which hopefully is able to update the variable like the first time (see "screenshot").

I do have the patch installed in the plist, but as you can see in the other screenshot, the display is distorted.
Is there anything else i could try beside the patch?
 
I do have the patch installed in the plist, but as you can see in the other screenshot, the display is distorted.

Distorted display is likely due to CSM not being enabled.
As per guide, you should have enabled CSM/legacy boot even if booting UEFI.
 
Distorted display is likely due to CSM not being enabled.
As per guide, you should have enabled CSM/legacy boot even if booting UEFI.

Ahhh, i must have reactivated it when booting back to my current Windows 10 Setup, but i will check that later when being home again, Thank you very very much!
 
Distorted display is likely due to CSM not being enabled.
As per guide, you should have enabled CSM/legacy boot even if booting UEFI.

So, after quite some hours now what i did and the result.
At first i tried to downgrade the BIOS on my HP and found out, that once you flash a newer Version F.36 for example, you can only downgrade to F.35 and not F.16. (wanted to check if i can write the EFIvars there)

I then took your list from github for the Intel HD5500 and changed it a bit, until i found myself with some information to the IGPU in the verbose output, but an error message "kextd timeout 'AppleACPICPU'".
IMG_20170321_182959_1280x720.jpg

After two timeouts, it then changes to the apple loading screen, which, with legacy enabled, now looks great, but it just kind of crashes and the loading bar does not fill up at all.
IMG_20170321_182118_1280x720.jpg

I have tried using the iMac14,2 in SMBIOS as well as the MacBookAir7,2 because it is Broadwell. To what extend does this influence the boot process? Should i try MacBookAir6,2 too?

I tried to attach photos of the message, as well as IOReg (not quite useful, since i had to boot from the USB Stick which uses a different config) and the patchmatic output, which as i have read, is sometimes helpful.
Please let me know if there is anything else needed.
 

Attachments

  • iMac.ioreg
    3.2 MB · Views: 198
  • RehabMan.zip
    61.2 KB · Views: 142
So, after quite some hours now what i did and the result.
At first i tried to downgrade the BIOS on my HP and found out, that once you flash a newer Version F.36 for example, you can only downgrade to F.35 and not F.16. (wanted to check if i can write the EFIvars there)

I then took your list from github for the Intel HD5500 and changed it a bit, until i found myself with some information to the IGPU in the verbose output, but an error message "kextd timeout 'AppleACPICPU'".
View attachment 243449

After two timeouts, it then changes to the apple loading screen, which, with legacy enabled, now looks great, but it just kind of crashes and the loading bar does not fill up at all.
View attachment 243448

I have tried using the iMac14,2 in SMBIOS as well as the MacBookAir7,2 because it is Broadwell. To what extend does this influence the boot process? Should i try MacBookAir6,2 too?

I tried to attach photos of the message, as well as IOReg (not quite useful, since i had to boot from the USB Stick which uses a different config) and the patchmatic output, which as i have read, is sometimes helpful.
Please let me know if there is anything else needed.

Read FAQ, "Problem Reporting"
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/

Hint: If you can't boot, you must provide a verbose boot photo and the EFI/Clover that you're using that causes it.
 
So, after quite some hours now what i did and the result.
At first i tried to downgrade the BIOS on my HP and found out, that once you flash a newer Version F.36 for example, you can only downgrade to F.35 and not F.16. (wanted to check if i can write the EFIvars there)

I then took your list from github for the Intel HD5500 and changed it a bit, until i found myself with some information to the IGPU in the verbose output, but an error message "kextd timeout 'AppleACPICPU'".
View attachment 243449

After two timeouts, it then changes to the apple loading screen, which, with legacy enabled, now looks great, but it just kind of crashes and the loading bar does not fill up at all.
View attachment 243448

I have tried using the iMac14,2 in SMBIOS as well as the MacBookAir7,2 because it is Broadwell. To what extend does this influence the boot process? Should i try MacBookAir6,2 too?

I tried to attach photos of the message, as well as IOReg (not quite useful, since i had to boot from the USB Stick which uses a different config) and the patchmatic output, which as i have read, is sometimes helpful.
Please let me know if there is anything else needed.
Can you please share with me yours plist which was able to boot? With rehabs plist a got same APPLEACPICPU problem..
 
Status
Not open for further replies.
Back
Top