Вы находитесь на странице: 1из 4

AppleIntelSNBGraphicsFB VRAM Intel HD 3000

Patching the Intel HD3000 VRAM size


I talked about the VRAM total size property here before but today I had another quick look. And I can
now that I learned some neat new tricks so lets change the VRAM total size property. Heres what
I did. Step one is to CD into the right directory:
cd /System/Library/Extensions/AppleIntelSNBGraphicsFB.kext/Contents/MacOS/
Now we are in the right spot. Time to fire up some good old Perl commands. But lets first make a
backup.
sudo cp AppleIntelSNBGraphicsFB AppleIntelSNBGraphicsFB.backup
This enables us to easily restore the factory one, just in case when something doesnt seem to work.
It is also very handy to have some sort of secondary boot option. Yes. You can boot into single user
mode by holding down the S key at boot time and restore your factory copy, but what if that
doesnt work? You are warned!
Lets look at the target opcodes for 32-bit mode. Here they are:
Opcodes used in 32-bit code
C7 45 E0 00 00 00 12 = 288 MB
C7 45 E0 00 00 00 12 = 288 MB
C7 45 E0 00 00 00 18 = 384 MB
C7 45 E0 00 00 00 20 = 512 MB
Please note that I have 4GB of memory installed, and thus I am stuck with 384MB of VRAM. But
what if I want to change this? What if I want to up or lower it? No problem. You can change this. With
the help of Perl. I included the terminal commands for both 32-bit and 64-bit. Several to reduce or
increase the value. And here they are:
Faking, more VRAM The following terminal commands will let it think that you have more memory
than you actually have:
sudo perl -pi -e 's|\xC7\x45\xE0\x00\x00\x00\x12|\xC7\x45\xE0\x00\x00\x00\x18|g'
AppleIntelSNBGraphicsFB
sudo perl -pi -e 's|\xC7\x45\xE0\x00\x00\x00\x18|\xC7\x45\xE0\x00\x00\x00\x20|g'
AppleIntelSNBGraphicsFB
First. You have to read this from left to right. And the first line means that you have 288MB and want
to change it into 384MB. The second line is to increase the value from 384 into 512MB. Easy huh?

Faking, less VRAM The following terminal commands will let it think that you have less memory than
you actually have:
sudo perl -pi -e 's|\xC7\x45\xE0\x00\x00\x00\x20|\xC7\x45\xE0\x00\x00\x00\x18|g'
AppleIntelSNBGraphicsFB
sudo perl -pi -e 's|\xC7\x45\xE0\x00\x00\x00\x20|\xC7\x45\xE0\x00\x00\x00\x12|g'
AppleIntelSNBGraphicsFB
sudo perl -pi -e 's|\xC7\x45\xE0\x00\x00\x00\x18|\xC7\x45\xE0\x00\x00\x00\x12|g'
AppleIntelSNBGraphicsFB
This might come in handy for people who have 8GB RAM, or more, installed. They will have a value
of 00 00 00 20 as their VRAM,totalsize. And since there are people who claim that they had no
glitches with 4GB, but things went from acceptable to worse after they installed more RAM. Well.
Maybe this helps. I dont know. Give it a go.
And heres your target data for 64-bit mode:
Opcodes used in 64-bit code
C7 45 BC 00 00 00 12 = 288 MB
C7 45 BC 00 00 00 12 = 288 MB
C7 45 BC 00 00 00 18 = 384 MB
C7 45 BC 00 00 00 20 = 512 MB
Faking, more VRAMThe following terminal commands will let it think that you have more memory
than you actually have:
sudo perl -pi -e 's|\xC7\x45\xBC\x00\x00\x00\x12|\xc7\x45\xBC\x00\x00\x00\x18|g'
AppleIntelSNBGraphicsFB
sudo perl -pi -e 's|\xC7\x45\xBC\x00\x00\x00\x18|\xc7\x45\xBC\x00\x00\x00\x20|g'
AppleIntelSNBGraphicsFB

Faking, less VRAMThe following terminal commands will let it think that you have less memory than
you actually have:
sudo perl -pi -e 's|\xC7\x45\xBC\x00\x00\x00\x20|\xC7\x45\xBC\x00\x00\x00\x18|g'
AppleIntelSNBGraphicsFB
sudo perl -pi -e 's|\xC7\x45\xBC\x00\x00\x00\x20|\xC7\x45\xBC\x00\x00\x00\x12|g'
AppleIntelSNBGraphicsFB
sudo perl -pi -e 's|\xC7\x45\xBC\x00\x00\x00\x18|\xC7\x45\xBC\x00\x00\x00\x12|g'
AppleIntelSNBGraphicsFB

Updating Caches You cant expect it to work without first updating the caches, and thus that is the
last step before we can reboot:
sudo touch /System/Library/Extensions/
sudo reboot now

Need More VRAM?I dont know why anyone would want/need this, but you can try one of these:
32-bit:
C7 45 E0 00 00 00 30 = 768 MB
C7 45 E0 00 00 00 40 = 1024 MB
64-bit:
C7 45 BC 00 00 00 30 = 768 MB
C7 45 BC 00 00 00 40 = 1024 MB
I personally used 00 00 00 04 to see if this works, and it did. It did show up in System Profiler, but I
have no idea if this will change anything.
Why Would I Need This?To test if this patch reduces, or eliminates, the graphical artifacts you are
seeing?
Have fun now!

for Clover patch on the fly insert to Kernel & Kext Patches tab
Find
AppleIntelSNBGraphicsFB
AppleIntelSNBGraphicsFB
AppleIntelSNBGraphicsFB
AppleIntelSNBGraphicsFB

Hex
3AC745E000000012
35C745E000000012
09C745E000000018
1EC745E000000020

Replace
3AC745E000000018
35C745E000000018
09C745E000000020
1EC745E000000030

Вам также может понравиться