Jump to content

AppleIntelHDGraphicsFB fixed (SL 10.6.8)


  • Please log in to reply
272 replies to this topic

#161
fmac

fmac

    InsanelyMac Protégé

  • Members
  • PipPip
  • 83 posts
@voidRunner

I have a Dell E6510 and my dispaly is connected via eDP

the Apple MacBookAir 4.2 has the dispaly connected with Displayport too
here is EDID

<00 ff ff ff ff ff ff 00 06 10 df 9c 00 00 00 00 1a 15 01 04 95 1d 12 78 02 ef 05 97 57 54 92 27 22 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 c2 23 a0 d4 50 84 1a 30 40 2a 36 00 1e b3 10 00 00 18 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fe 00 4c 50 31 33 33 57 50 31 2d 54 4a 41 33 00 00 00 fc 00 43 6f 6c 6f 72 20 4c 43 44 0a 20 20 20 00 7e>

you can see the red marked numbers

95 = hex 95 (binary 10010101)

see my post # 250 there

http://www.insanelymac.com/forum/topic/223754-intel-hd-graphics-gma-5700/page__st__240

the MacBookAir has the Sandybridge CPU

Intel HD Graphics 3000:

Chipsatz-Modell: Intel HD Graphics 3000
Typ: GPU
Bus: Integriert
VRAM (gesamt): 384 MB
Hersteller: Intel (0x8086)
Geräte-ID: 0x0116
Versions-ID: 0x0009
Monitore:
Color LCD:
Auflösung: 1440 x 900
Pixeltiefe: 32-Bit Farbe (ARGB8888)
Hauptmonitor: Ja
Synchronisierung: Aus
Eingeschaltet: Ja
Integriert: Ja
Verbindungstyp: DisplayPort


@verteks we need your help, lets try to patch the "AppleIntelSNBGraphicsFB.kext"

maybe it works

thanks to every one in this forum, great work !

#162
giofrida

giofrida

    InsanelyMac Italy

  • Members
  • PipPipPipPipPipPipPip
  • 667 posts
  • Gender:Male
  • Location:Italy

For all you eager testers i've patched framebuffer from 10.8.3 based off vertek's work so credit to him, will upload now


Intel HD Graphics kext patcher

This is a tiny shell script made by me, that can patch the kext in singlelink or duallink.

If you want to execute the commands manually, here they are:
SingleLink
sudo perl -pi -e 's|\x00\x00\x0F\x45\xC8\x42\x89\x8C\x33\xF0\x01\x00\x00\x48\x89\xDF|\x00\x00\x90\x90\x90\x42\x89\x8C\x33\xF0\x01\x00\x00\x48\x89\xDF|g' /System/Library/Extensions/AppleIntelHDGraphicsFB.kext/Contents/MacOS/AppleIntelHDGraphicsFB

sudo perl -pi -e 's|\x48\x89\xD3\x49\x89\xFE\xC7\x03\x01\x00\x00\x00\xC7\x43\x20\x00|\x48\x89\xD3\x49\x89\xFE\xC7\x03\x00\x00\x00\x00\xC7\x43\x20\x00|g' /System/Library/Extensions/AppleIntelHDGraphicsFB.kext/Contents/MacOS/AppleIntelHDGraphicsFB

sudo perl -pi -e 's|\x0C\x00\x0F\x00\x49\x8B\x84\x24\x98\x06\x00\x00\x0F\xB6\x40\x18\xC1\xE0\x13\x41\x0B\x46\x6C\x41\x89\x46\x6C\x49\x8B\x8C\x24\x98\x00\x00\x00\x89\x81\x0C\x00\x0F\x00\x49\x8B\x84\x24\x98\x06\x00\x00\x0F\xB6\x40\x18\xC1\xE0\x13\x41\x0B\x46\x68\x41\x83\xFF\x03\x41\x89|\x0C\x00\x0F\x00\x41\x8B\x46\x6C\x25\xFF\xFF\xC7\xFF\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x41\x89\x46\x6C\x49\x8B\x8C\x24\x98\x00\x00\x00\x89\x81\x0C\x00\x0F\x00\x41\x8B\x46\x68\x25\xFF\xFF\xC7\xFF\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x41\x83\xFF\x03\x41\x89|g' /System/Library/Extensions/AppleIntelHDGraphicsFB.kext/Contents/MacOS/AppleIntelHDGraphicsFB

sudo perl -pi -e 's|\xB9\x00\x00\x00\x09\xC7\x85\x60\xFF\xFF\xFF\x00\x00\x00\x00\xC7|\xB9\x00\x00\x00\x08\xC7\x85\x60\xFF\xFF\xFF\x00\x00\x00\x00\xC7|g' /System/Library/Extensions/AppleIntelHDGraphicsFB.kext/Contents/MacOS/AppleIntelHDGraphicsFB

sudo perl -pi -e 's|\xC3\xFC\xC3\x7F\x41\x81\xCE\x3C\x03\x30\x80\x48\x8D\xB5\xE8\xFE|\xC3\xFC\xC3\x7F\x41\x81\xCE\x00\x03\x30\x80\x48\x8D\xB5\xE8\xFE|g' /System/Library/Extensions/AppleIntelHDGraphicsFB.kext/Contents/MacOS/AppleIntelHDGraphicsFB
DualLink
sudo perl -pi -e 's|\x0C\x00\x0F\x00\x49\x8B\x84\x24\x98\x06\x00\x00\x0F\xB6\x40\x18\xC1\xE0\x13\x41\x0B\x46\x6C\x41\x89\x46\x6C\x49\x8B\x8C\x24\x98\x00\x00\x00\x89\x81\x0C\x00\x0F\x00\x49\x8B\x84\x24\x98\x06\x00\x00\x0F\xB6\x40\x18\xC1\xE0\x13\x41\x0B\x46\x68\x41\x83\xFF\x03\x41\x89|\x0C\x00\x0F\x00\x41\x8B\x46\x6C\x25\xFF\xFF\xC7\xFF\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x41\x89\x46\x6C\x49\x8B\x8C\x24\x98\x00\x00\x00\x89\x81\x0C\x00\x0F\x00\x41\x8B\x46\x68\x25\xFF\xFF\xC7\xFF\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x41\x83\xFF\x03\x41\x89|g' /System/Library/Extensions/AppleIntelHDGraphicsFB.kext/Contents/MacOS/AppleIntelHDGraphicsFB

sudo perl -pi -e 's|\x00\x00\x0F\x45\xC8\x42\x89\x8C\x33\xF0\x01\x00\x00\x48\x89\xDF|\x00\x00\x90\x90\x90\x42\x89\x8C\x33\xF0\x01\x00\x00\x48\x89\xDF|g' /System/Library/Extensions/AppleIntelHDGraphicsFB.kext/Contents/MacOS/AppleIntelHDGraphicsFB

Try it and give a feedback.


Oops! I saw only now the first post was updated.

Attached Files



#163
calmesal

calmesal

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 163 posts

Good news.... I managed to fix the backlight issue on waking up from sleep :) I am trying to enable the brightness keys now. when that's ready, I think I will post a guide in another thread, as this one is getting quite messy! :construction:

Also fixed max brightness to be the actual max brightness (it was slightly too dark)

Hi again!
How about to look into my DSDT for patching brightness control as you promised?
Thanks.

Attached Files



#164
mnorthern

mnorthern

    InsanelyMac Protégé

  • Members
  • PipPip
  • 52 posts
  • Gender:Male
  • Location:London, United Kingdom

Hi again!
How about to look into my DSDT for patching brightness control as you promised?
Thanks.


yes I remember :) i have the brightness keys working now, as well as the wake up fix. didnt want to patch your DSDT before all was ready, but I will look into it now. Expect a new thread tonight with all the fixes!

#165
GhostRaider

GhostRaider

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 396 posts
  • Gender:Male
Anybody here know how to execute the patch?

#166
calmesal

calmesal

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 163 posts

yes I remember :) i have the brightness keys working now, as well as the wake up fix. didnt want to patch your DSDT before all was ready, but I will look into it now. Expect a new thread tonight with all the fixes!


OK! I can't wait. :thumbsup_anim:

#167
warraisraw

warraisraw

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts
  • Gender:Male

Anybody here know how to execute the patch?



Hi, copy AppleIntelHDGraphicsFB into the same folder with patcher and run in terminal:

./hdgraphics_patcher -p LVDS+VGA AppleIntelHDGraphicsFB
(if you want this output)

Regards.

#168
mnorthern

mnorthern

    InsanelyMac Protégé

  • Members
  • PipPip
  • 52 posts
  • Gender:Male
  • Location:London, United Kingdom

OK! I can't wait. :thumbsup_anim:


OK i've posted a new thread in http://www.insanelym...hd-gma-5700mhd/


Everyone, please go check out this new guide to find out how to enable wake up from sleep and brightness keys!

calmesal, I'm finally gonna look at your DSDT now! :D
EDIT: I have compiled the following DSDT for you calmesal, but you will have to confirm that your BAR0 offset is OK before you use it (have a look at the new guide to see how to use RW-everything. Change the magic numbers if your BAR0 is different\)

Attached Files



#169
2bad0

2bad0

    InsanelyMac Protégé

  • Members
  • PipPip
  • 68 posts
mnorthern

maybe you can have a look at this dsdt for me please.
Every time pnlf device is added, in combination with frame-buffer, get a fancy reboot.

Although i suspect where the problem might be, just want a second opinion.

Attached Files



#170
Tomdev

Tomdev

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts
Hi everyone,

I tried to enable QE/CI but with no succes. I can load the framebuffer kext and I am able to change resolution however:
  • When I use the kexts in this guide: http://www.insanelym...d-graphics-qeci, all the kexts get loaded and I have resolution, but no QE/CI
  • When I use the kexts from 10.8.3 (I patched the framebuffer) I'm stuck at booting. Removing the AppleIntelHDGraphics kext (or booting with -x) makes booting possible again, but no QE/CI without that kext.
intel_reg_dumper gives me this output:


FDI_RXA_CTL: 0xb0022050 (enable, train pattern not train, port width X1, 6bpc,link_reverse_strap_overwrite no, dmi_link_reverse no, FDI PLL enable,FS ecc disable, FE ecc disable, FS err report disable, FE err report disable,scrambing enable, enhanced framing enable, PCDClk)

PCH_LVDS: 0x80308302 (enabled, pipe A, 18 bit, 1 channel)

So I patched like this:

hdgraphics_patcher -p LVDS+VGA AppleIntelHDGraphicsFB

Further info:
adding the natit.kext makes no difference

Does anyone recognize the problem/know how to solve it?

Tomdev

#171
mnorthern

mnorthern

    InsanelyMac Protégé

  • Members
  • PipPip
  • 52 posts
  • Gender:Male
  • Location:London, United Kingdom

mnorthern

maybe you can have a look at this dsdt for me please.
Every time pnlf device is added, in combination with frame-buffer, get a fancy reboot.

Although i suspect where the problem might be, just want a second opinion.


Hi what do you suspect? I am not an expert in DSDT, I am not sure at this time what the problem is, but I'm thinking Posted Image

Also at which point are you getting restarts, after booting?

#172
2bad0

2bad0

    InsanelyMac Protégé

  • Members
  • PipPip
  • 68 posts

Hi what do you suspect? I am not an expert in DSDT, I am not sure at this time what the problem is, but I'm thinking Posted Image


Before frambuffer fix........... dsdt did not play nice with os-info...hence used natit

Woudn't be surprised if natit and pnlf are not best of friends, because in my case pnlf device add some extra apple panels.

My monitor connection is also single link but utilizing x4 width... using that patch = blackscreen

#173
mnorthern

mnorthern

    InsanelyMac Protégé

  • Members
  • PipPip
  • 52 posts
  • Gender:Male
  • Location:London, United Kingdom

Before frambuffer fix........... dsdt did not play nice with os-info...hence used natit

Woudn't be surprised if natit and pnlf are not best of friends, because in my case pnlf device add some extra apple panels.

My monitor connection is also single link but utilizing x4 width... using that patch = blackscreen


I actually use NATIT and i Have pnlf installed.

What happens if you add a really basic PNLF like the following

Device (PNLF)
{
Name (_HID, EisaId ("APP0002"))
Name (_CID, "backlight")
Name (_UID, 0x0A)
Name (_STA, 0x0B)
}

#174
red555

red555

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts

Hi, copy AppleIntelHDGraphicsFB into the same folder with patcher and run in terminal:

./hdgraphics_patcher -p LVDS+VGA AppleIntelHDGraphicsFB
(if you want this output)

Regards.


Sorry to be a noob, but I have tried this and each time get the ouput "could not open file AppleIntelHDGraphicsFB"

The files are in the same folder, GFX on my desktop 10.8.0

#175
GhostRaider

GhostRaider

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 396 posts
  • Gender:Male

Hi everyone,

I tried to enable QE/CI but with no succes. I can load the framebuffer kext and I am able to change resolution however:

  • When I use the kexts in this guide: http://www.insanelym...d-graphics-qeci, all the kexts get loaded and I have resolution, but no QE/CI
  • When I use the kexts from 10.8.3 (I patched the framebuffer) I'm stuck at booting. Removing the AppleIntelHDGraphics kext (or booting with -x) makes booting possible again, but no QE/CI without that kext.
intel_reg_dumper gives me this output:


FDI_RXA_CTL: 0xb0022050 (enable, train pattern not train, port width X1, 6bpc,link_reverse_strap_overwrite no, dmi_link_reverse no, FDI PLL enable,FS ecc disable, FE ecc disable, FS err report disable, FE err report disable,scrambing enable, enhanced framing enable, PCDClk)

PCH_LVDS: 0x80308302 (enabled, pipe A, 18 bit, 1 channel)

So I patched like this:

hdgraphics_patcher -p LVDS+VGA AppleIntelHDGraphicsFB

Further info:
adding the natit.kext makes no difference

Does anyone recognize the problem/know how to solve it?

Tomdev


Again, I did not write this either in my guide. Need time, but in the plist inside the AppleIntelHDGraphicsFB, set these values to 0. I suggest delete all Intel HD Graphics, rebuild cache, and install all of them again with the edited framebuffer plist. Maybe this will work for you.

<key>FBCControl</key>
   <dict>
    <key>Compression</key>
    <integer>0</integer>
   </dict>
   <key>FeatureControl</key>
   <dict>
    <key>FBC</key>
    <integer>0</integer>
    <key>GPUInterruptHandling</key>
    <integer>0</integer>
    <key>Gamma</key>
    <integer>0</integer>
    <key>MaximumSelfRefreshLevel</key>
    <integer>0</integer>
    <key>PowerStates</key>
    <integer>0</integer>
    <key>RSTimerTest</key>
    <integer>0</integer>
    <key>RenderStandby</key>
    <integer>0</integer>
    <key>Watermarks</key>
    <integer>0</integer>
   </dict>

This helped me boot up to OS X with all the Intel HD Graphics loaded. Without this, my computer freezes.

Has anybody tried the LVDS+VGA combination? Does connecting a VGA display work? I tried it but it doesn't work. Something that I don't understand is how come HD2000-4000 users can use HDMI? I thought real MacBooks don't have HDMI ports.

Sorry to be a noob, but I have tried this and each time get the ouput "could not open file AppleIntelHDGraphicsFB"

The files are in the same folder, GFX on my desktop 10.8.0


You have to extract the AppleIntelHDGraphicsFB exec file from the MacOS folder and put that in the patch folder. Not the kext itself.

#176
Tomdev

Tomdev

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts
Thanks GhostRaider! :thumbsup_anim: I'm able to boot now AND I have QE/CI.

#177
calmesal

calmesal

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 163 posts

OK i've posted a new thread in http://www.insanelym...hd-gma-5700mhd/


Everyone, please go check out this new guide to find out how to enable wake up from sleep and brightness keys!

calmesal, I'm finally gonna look at your DSDT now! :D
EDIT: I have compiled the following DSDT for you calmesal, but you will have to confirm that your BAR0 offset is OK before you use it (have a look at the new guide to see how to use RW-everything. Change the magic numbers if your BAR0 is different\)

Thanks!
I applied the BAR1 magic number to the dsdt and compiled without error, but it doesn't work.
Any more ides?

Edit. I found this in kernel log.

Attached Files



#178
2bad0

2bad0

    InsanelyMac Protégé

  • Members
  • PipPip
  • 68 posts

I actually use NATIT and i Have pnlf installed.

What happens if you add a really basic PNLF like the following

Device (PNLF)
{
Name (_HID, EisaId ("APP0002"))
Name (_CID, "backlight")
Name (_UID, 0x0A)
Name (_STA, 0x0B)
}


ok will try and get back to you

GhostRaider
Do you use os-info ? if so try using the different variations of it.

if there is any user who don't user os-info to boot maybe they can try out the lvds+vga..

correct me if i'm wrong but doesn't os-info specify which connection to use?

#179
red555

red555

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts

Thanks GhostRaider! :thumbsup_anim: I'm able to boot now AND I have QE/CI.


+1

I finally got QE with your FB and the natit kext on my Thinkpad T510 {onboard GFX only model} .

The only thing not working is one of the built in screensavers on Mountain Lion: "Shell"

The other screensavers work, and my system shows all signs of QE being enabled such as

Zoom effect when logging on, chess game working, water effect when adding widget to dashboard.

I was wondering if the problem with the Shell screensaver indicates a wider problem with QE?

I should also mention that my LCD baklight doesn't come on when waking from sleep, but I am about to start fixing that one.

#180
mnorthern

mnorthern

    InsanelyMac Protégé

  • Members
  • PipPip
  • 52 posts
  • Gender:Male
  • Location:London, United Kingdom

Thanks!
I applied the BAR1 magic number to the dsdt and compiled without error, but it doesn't work.
Any more ides?

Edit. I found this in kernel log.


Hey that second screenshot is so cool! How did you manage to get BAR1 on your MAC? What command did you use?
I will have a look to see why it's not working, but I may need some more screenshots from you (look at the screenshots by Felix Chan in the other brightness thread)





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy