Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kpkp

macrumors member
Original poster
Jun 13, 2012
39
5
I found a way to choose how much of VRAM you want your HD4000 to use under ML:
53574d1366143126-unified-appleintelframebuffercapri-ivy-probooks-1gb.jpg

I also made a script if you want to try it:
Code:
sudo perl -pi -e 's|\x00.{1}\x10\x07\x00\x00\x10\x07|\x00\x[COLOR="Red"]??[/COLOR]\x10\x07\x00\x00\x10\x07|g' ~/Desktop/AppleIntelFramebufferCapri.kext/Contents/MacOS/AppleIntelFramebufferCapri
Change the red ?? with the red number bellow to set the desired amount of VRAM:
10 = 256MB of RAM
18 = 384MB of RAM
20 = 512MB of RAM
30 = 768MB of RAM
40 = 1024MB of RAM
80 = 2048MB of RAM

1. copy AppleIntelFramebufferCapri.kext to the desktop and make a backup of it
2. run the script in the terminal (dont forget to fill in the ??)
3. install the kext, rebuild caches (i would suggest kext wizard)
4. restart pray and let me know how it went

Disclaimer: this was not yet tested on a real mac (just a few hacks), so if you want to be the first to try, here is all the info you need.
 
Last edited:

kpkp

macrumors member
Original poster
Jun 13, 2012
39
5
With a grand total of four posts, you seriously can't expect someone to just try this without verification...

http://www.insanelymac.com/forum/user/215785-kpkp/
http://www.tonymacx86.com/members/kpkp/
Digg in if you are to scared of changing 1 number in your graphic driver... But yes, if you don't know how to recover your Mac from a missing or bad graphic driver, then I guess you should just wait for someone who does... Be sure I would not be asking here if i had a Ivy Mac at hand.

I just posted here in hope there is someone willing to try it, even from a backup partition or something, I tried all the VRAMs mentioned above on my hack and that is all i can do for now... from here on is up to you.
 
Last edited:

ssn637

macrumors 6502
Feb 12, 2009
452
48
Switzerland
Just tried it on my rMBP 15" and upped my HD4000 VRAM from 512 MB to 1024 MB (at least that's what System Info shows).

Thanks for the tip!
 

Michael Goff

Suspended
Jul 5, 2012
13,329
7,421
And the performance on your system changed in what way?

It might be nice to throw more RAM at my graphics. My MBA has 8GB of RAM, this would be a good use.
 

kpkp

macrumors member
Original poster
Jun 13, 2012
39
5
Just tried it on my rMBP 15" and upped my HD4000 VRAM from 512 MB to 1024 MB (at least that's what System Info shows).

Thanks for the tip!
Thx for the feedback, yes i was also looking for a effective way of testing it, I checked in IORegistryExplorer under IGPU-IntelAccelerator-PerformenceStatisticsAccum you can see the ram allocation and if you check the "Wired" ram in Activity Monitor it increases also... And photoshop recognises the higher available VRAM too... All positive signs so far, but if someone has a better method to suggest...
 

NECyclone

macrumors newbie
Jan 21, 2013
10
0
Works on my Mid 2012 13in Macbook Pro also. Have only tested the game Civ 5 and I can't say it helped. Certainly didn't hurt though either. Wonder if upping to 2 or 3 megs of VRam would be possible and help. Thanks for the hack. I'll have to try it on my other laptop thats a hackinosh.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,371
179
Does anyone here know what the HD4000 does with more RAM? Is there a limit to the amount of RAM that it might usefully use? What is the advantage of more RAM, other than "more is better"?
 

kpkp

macrumors member
Original poster
Jun 13, 2012
39
5
Does anyone here know what the HD4000 does with more RAM? Is there a limit to the amount of RAM that it might usefully use? What is the advantage of more RAM, other than "more is better"?
If you do not know why you need it is most likely you do not... The most obvious answers in video and advanced photo editing, games.... And this flexibility makes it a bit more future proof.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,371
179
The most obvious answers in video and advanced photo editing, games.... And this flexibility makes it a bit more future proof.
What, obviously, does more RAM do for video, advanced photo editing, games?
What flexibility does it bring? I say again: what does the HD4000 do with more RAM?

Does it make it faster? Does it mean it can handle more polygons? What? If you gave the HD4000 4 GIGAbytes of RAM, or 8, -- would it match a discrete GPU in some regard? Or not?
Is there no limit to the amount of RAM that the GPU can effectively use?

Or put it another way: if the GPU has LESS RAM, what feature of the GPU is inhibited by that? (Don't just say "speed" -- why is it slower?)

If you don't know what it actually achieves, then why are you doing this?
 
Last edited:

Michael Goff

Suspended
Jul 5, 2012
13,329
7,421
Stupid question... where is the AppleIntelFramebufferCapri.kext?

:D

I generally don't try to touch the internal files, so I have no idea where they'd be.
 

kpkp

macrumors member
Original poster
Jun 13, 2012
39
5
What, obviously, does more RAM do for video, advanced photo editing, games?
What flexibility does it bring? I say again: what does the HD4000 do with more RAM?

Does it make it faster? Does it mean it can handle more polygons? What? If you gave the HD4000 4 GIGAbytes of RAM, or 8, -- would it match a discrete GPU in some regard? Or not?
Is there no limit to the amount of RAM that the GPU can effectively use?

Or put it another way: if the GPU has LESS RAM, what feature of the GPU is inhibited by that? (Don't just say "speed" -- why is it slower?)

If you don't know what it actually achieves, then why are you doing this?

What the HD4000 does with Vram is no different from what other GPUs would, it all depends on software. Now a practical example, you load a huge NASA image in photoshop if you have enough VRAM you scrolling, zooming... will work smoothly if you run out of VRAM things will slow down.

And if you want to know why i do that... Is just a side product of me making my notebook work with OSX, so if you or someone else can benefit from that cool, otherwise was still fun. And as i said, i am not selling this to you, with your attitude i would actuality prefer you wouldn't use it, because if i have to tell you all this you do not need it.
 
  • Like
Reactions: Dameatball

benwiggy

macrumors 68020
Jun 15, 2012
2,371
179
with your attitude i would actuality prefer you wouldn't use it, because if i have to tell you all this you do not need it.
There is no attitude, I'm just asking for some technical information. I assumed that if you were dabbling at this level, you would know a lot about it.
What sort of usage brings a need for more than 768Mb of RAM? What size image from NASA fills up that amount of memory -- a 768Mb image?

Is the limited frame rate in the latest game a direct result of not enough memory, or of not enough processing power in the GPU itself?

Is there a limit to amount of RAM that the GPU can effectively use? While too little RAM may impede performance, I'm wondering if you are sure that more RAM will always produce improved performance.

Just idly curious. I'm sure the data is out there somewhere.
 
Last edited:

kpkp

macrumors member
Original poster
Jun 13, 2012
39
5
There is no attitude, I'm just asking for some technical information. I assumed that if you were dabbling at this level, you might know a lot about it.
What sort of usage brings a need for more than 768Mb of RAM? What size image from NASA fills up that amount of memory -- a 768Mb image?

Is the limited frame rate in the latest game a direct result of not enough memory, or of not enough processing power in the GPU itself?

Is there a limit to amount of RAM that the GPU can effectively use? While too little RAM may impede performance, I'm wondering if you are sure that more RAM will always produce improved performance.

Just idly curious. I'm sure the data is out there somewhere.

Not everyone has 768MB, I had just 384MB and yes using photoshop and some NASA images it used up to 450MB (after mod). I don't play games and if I would it wouldn't be on a notebook with a hd4000.

I am not sure of anything, that's why I share what I know so people can help me test it...
 

hagan

macrumors newbie
Apr 22, 2013
7
2
No, different driver.

Ok, thanks. I run two screens and parallels on my mini with HD3000 and I have all kinds of problems. Skippy mouse pointer, crashes, flickering when using certain tools in photoshop.

Any suggestions?

:)
 

kpkp

macrumors member
Original poster
Jun 13, 2012
39
5
Paste to terminal:
sudo cp -r /System/Library/Extensions/AppleIntelFramebufferCapri.kext ~/Desktop/
 

Colpeas

macrumors 6502
Sep 30, 2011
479
119
Prague, Czech Rep.

That's odd, there should be like 200 files. But I see you have a MBA - careful with that, this hack doesn't seem to work on mine: This is how it messed up my system (see attached), I'm glad I backed that kext up...
 

Attachments

  • Screen Shot 2013-04-22 at 11.55.42 PM.png
    Screen Shot 2013-04-22 at 11.55.42 PM.png
    550.7 KB · Views: 2,294
  • Screen Shot 2013-04-22 at 11.50.54 PM.png
    Screen Shot 2013-04-22 at 11.50.54 PM.png
    606.1 KB · Views: 3,331

kpkp

macrumors member
Original poster
Jun 13, 2012
39
5
That's odd, there should be like 200 files. But I see you have a MBA - careful with that, this hack doesn't seem to work on mine: This is how it messed up my system (see attached), I'm glad I backed that kext up...

Are you sure you patched it right?
Idk how are the rules on this forum but i would like to see you patched kext, PM me if attaching a kext is against the rules or something.
 

Colpeas

macrumors 6502
Sep 30, 2011
479
119
Prague, Czech Rep.
Are you sure you patched it right?
Idk how are the rules on this forum but i would like to see you patched kext, PM me if attaching a kext is against the rules or something.

This is what I did:

1) Copied the kext over to the desktop
2) Pasted your script into Terminal and replaced ?? with 40
3) Executed the command
4) Moved the patched kext to /System/Library/Extensions
5) Used KextWizard to rebuild the cache (and repair disk permissions, just for good measure)
6) Rebooted

It took longer to boot and the temperature of colours changed. Now they're a bit cooler, IMHO, and changing a display profile won't change a thing. Take a look at my modified kext to see if it was me who messed up, or if it just doesn't work with Airs. Thanks
 

Attachments

  • AppleIntelFramebufferCapri.kext.zip
    193.4 KB · Views: 1,528

Michael Goff

Suspended
Jul 5, 2012
13,329
7,421
That's odd, there should be like 200 files. But I see you have a MBA - careful with that, this hack doesn't seem to work on mine: This is how it messed up my system (see attached), I'm glad I backed that kext up...

Do you have to check/uncheck something to see all the files or is it just a curious case of me not being able to do it?
 

ScottishCaptain

macrumors 6502a
Oct 4, 2008
871
474
Why bother at all?

The HD4000 uses system RAM as VRAM. Having the kernel extension reserve more RAM for the GPU isn't going to magically give your computer new capabilities. In fact, the more RAM you reserve for the HD4000, the more slower your system is going to become when that RAM is fully utilized.

The only thing I can think of where this might be useful is if you're running some sort of 3D package that requires more VRAM (and refuses to run otherwise), but even with this hack- if it did run afterwards, it would still be unbearably slow.

Real VRAM exists for a reason. The HD4000 has none. Apple didn't lock this down "just because they can". A decision was made, and that decision was that the default setting was enough given the fact that the GPU is integrated. If you need more computational resources then that, you'll have to buy a bigger computer.

-SC
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.