Jump to content

Editing Custom connector info for Intel HD 3000 Graphics (sandy bridge, OSX Lion)


  • Please log in to reply
211 replies to this topic

#81
dougaa

dougaa

    InsanelyMac Geek

  • Donators
  • 179 posts

The AppleIntelSNBGraphicsFB.kext loads in 1 of every 4 boots, any suggestions there?

There was a bug in Chameleon which causes that. The bug exists in versions r1108 through r1220. Versions starting with r1221 should be ok.

#82
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 823 posts
  • Gender:Male

There was a bug in Chameleon which causes that. The bug exists in versions r1108 through r1220. Versions starting with r1221 should be ok.


Your comment is very helpful. Thanks.

#83
pauldmps

pauldmps

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts

There was a bug in Chameleon which causes that. The bug exists in versions r1108 through r1220. Versions starting with r1221 should be ok.



Updating Chameleon did help some users but not me.

Instead, it broke the AppleInteHDGraphics.kext for me. I always get "Failed to load com.apple.AppleInteHDGraphics.kext, com.apple.iokit.IOGraphicsFamily.kext not found." even when IOGraphicsFamily.kext was present in S/L/E. I even tried reinstalling those kexts but no avail.

I'm back to Chimera r877 as of now. I'll rather wait for Chimera to be updated.

#84
iLeopod

iLeopod

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 435 posts
  • Gender:Male
  • Location:Germany
  • Interests:ileopod.wordpress.com
For HDMI Audio we should maybe modify the PlatformInformation of Mac Mini 5,1 because of the native HDMI Connector. How to find out the exact place of that table?

#85
pauldmps

pauldmps

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts

Bcc9, could u may look into the thing with the Intel HD 3000 graphics with Hardware ID 0116?
All users with this ID get a green screen while only the left half of the display is working, QE/CI works out of the box.
The Problem is in the AppleIntelSNBGraphicsFB.kext. When i use the Snow Leopard kext screen works wonderful but unfortunately AppleIntelHDGraphics.kext from Lion wont boot with Snow Leo AppleIntelSNBGraphicsFB.kext. When i delete AppleIntelHDGraphics.kext i have full resolution and everthing working but as AppleIntelHDGraphics.kext controlls QE/CI we cant have QE/CI and both half of the screen.

Lion HD Graphics + Lion SNB Buffer = Green Screen bug and only 50% visible QE/CI working
Lion HD Graphics + SL SNB Buffer = Kernel Panic while booting caused by Lion HD Graphics
SL HD Graphics + SL SNB Buffer = Some artifacts, full resolution, no QE/CI
No HD Graphics + SL SNB Buffer= very nice screen, no artifacts, full resolution, no QE/CI

This Problem only occour to people with the ID 0116 which all "m" Models of the Sandy Bridge processors use.
It would be wonderful to find out what in the Lion SNB Framebuffer causes the Green Screen, i coundnt see any difference between the wonderfully working Sl SNB Framebuffer and the green-screen-u-cant-do-anything-but-play-chess-with-QE-CI Lion SNB Framebuffer

the attachment show the green screen thing, sry for the quality but u see what i mean


Try this: http://tonymacx86.co...a...51&p=182834

This has something to do with DualLink which is disabled without proper DSDT edit & causes the screen to receive incomplete data & hence these corruptions.

#86
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 823 posts
  • Gender:Male

My experience with HDMI audio:

I have HDA-GFX entrys in HDEF and IGPU like in MacBookPro8,1. After that the audio device for hdmi is under HDEF in IOREG just like at real MacBook.

When using Displayport Connector-Type i get a sound assertion(see my last post).

When i set Connector-Type to HDMI no HDMI audio and also no Realtek audio anymore.

iLeopod, your suggestion worked. The connector table below works for both HDMI ports with MacBookPro8,1.

0000000: 0102 0200 1007 0000 1007 0000  ............
000000c: 0205 0000 0008 0000 0600 0000  ............
0000018: 0406 0000 0008 0000 0600 0000  ............
0000024: 0000 0000 0000 0000 0000 0000  ............
0000030: 0000 0000 0000 0000 0000 0000  ............
Regarding audio, onboard audio is working, HDMI audio is not and both audio codecs show up in HDEF. Under AppleIntelFrambuffer, I have
AAPL,DisplayPipe: <10 00 00 00>
audio-signal-type: <03 01 05 00>
av-signal-type: <08 00 00 00>
connector=type: <00 08 00 00>

There was one time where I got AppleHDAEngineOutputDP@1B,3,1,0:(5209-.. in IOReg
Two interesting elements:
AppleHDAController@1B
CodecList/1/VendorProductID: 0xffffffff80862805
AppleIntelFrambuffer
audio-selector: <30 30 70 64>
missing AAPL,DisplayPipe:

Even though EngineOutputDP showed up in IOReg, no audio

Currently, I'm getting the following sound assertion.
kernel Sound assertion "0 == iterator" failed in AppleHDAController at line 1047 goto Exit

I see this assertion when I have to patch the HDMI audio codec in AppleHDAController. Usually lspci will show the d_id but there is no audio id associated with HD3000 graphics. Any ideas?

On your Mac Mini connector info request, here is what I got using MacMini5,1 (corrected - 8/16/01)

0000078: 0002 0300 0000 0000 ffff ffff  ............
0000084: 0205 0000 0004 0000 0700 0000  ............
0000090: 0304 0000 0004 0000 0900 0000  ............
000009c: 0406 0000 0008 0000 0600 0000  ............


#87
iLeopod

iLeopod

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 435 posts
  • Gender:Male
  • Location:Germany
  • Interests:ileopod.wordpress.com

On your Mac Mini connector info request, here is what I got using MacMini5,1

0000000: 0102 0400 1007 0000 1007 0000  ............
000000c: 0503 0000 0200 0000 3000 0000  ........0...
0000018: 0205 0000 0004 0000 0700 0000  ............
0000024: 0304 0000 0004 0000 0900 0000  ............
0000030: 0406 0000 0004 0000 0900 0000  ............

That cannot be the one form mac mini (witch has hdmi and Thunderbold(maybe we have 2 of them because of the possible Displaychain or how that called).

If i understand bcc9 rigt the table of all sandy bridge compatible macs are hardcoded and the active on is selected via smboard-id.

ok now i get it:
dd if=AppleIntelSNBGraphicsFB of=/tmp/table bs=1 skip=173552 count=480
60+0 records in

to extract all 8 different tables.

Will look on it later on the desktop.

Audio:

Dont know whats wrong on my machine but with HDMI audio compatible Display and Hdmi Connector-Type i got a bunch of sound assertions.


Update Here all tables:
0000000: 0102 0300 1007 0000 1007 0000  ............
000000c: 0205 0000 0004 0000 0700 0000  ............
0000018: 0304 0000 0004 0000 0900 0000  ............
0000024: 0406 0000 0004 0000 0900 0000  ............
0000030: 0000 0000 0000 0000 0000 0000  ............
000003c: 0102 0100 1007 0000 1007 0000  ............
0000048: 0503 0000 0200 0000 3000 0000  ........0...
0000054: 0000 0000 0100 0000 4000 0000  ........@...
0000060: 0000 0000 0100 0000 4000 0000  ........@...
000006c: 0000 0000 0100 0000 4000 0000  ........@...
0000078: 0002 0300 0000 0000 ffff ffff  ............
0000084: 0205 0000 0004 0000 0700 0000  ............
0000090: 0304 0000 0004 0000 0900 0000  ............
000009c: 0406 0000 0008 0000 0600 0000  ............
00000a8: 0000 0000 0100 0000 4000 0000  ........@...
00000b4: 0000 0000 0000 0000 0000 0000  ............
00000c0: 0000 0000 0100 0000 4000 0000  ........@...
00000cc: 0000 0000 0100 0000 4000 0000  ........@...
00000d8: 0000 0000 0100 0000 4000 0000  ........@...
00000e4: 0000 0000 0100 0000 4000 0000  ........@...
00000f0: 0102 0300 1007 0000 1007 0000  ............
00000fc: 0100 0000 0200 0000 3000 0000  ........0...
0000108: 0205 0000 0004 0000 0700 0000  ............
0000114: 0304 0000 0004 0000 0900 0000  ............
0000120: 0000 0000 0100 0000 4000 0000  ........@...
000012c: 0000 0000 0000 0000 0000 0000  ............
0000138: 0000 0000 0100 0000 4000 0000  ........@...
0000144: 0000 0000 0100 0000 4000 0000  ........@...
0000150: 0000 0000 0100 0000 4000 0000  ........@...
000015c: 0000 0000 0100 0000 4000 0000  ........@...
0000168: 0001 0000 0000 0000 0000 0000  ............
0000174: 0000 0000 0100 0000 4000 0000  ........@...
0000180: 0000 0000 0100 0000 4000 0000  ........@...
000018c: 0000 0000 0100 0000 4000 0000  ........@...
0000198: 0000 0000 0100 0000 4000 0000  ........@...
00001a4: 0103 0400 1007 0000 1007 0000  ............
00001b0: 0100 0000 0004 0000 3000 0000  ........0...
00001bc: 0205 0000 0004 0000 0700 0000  ............
00001c8: 0304 0000 0004 0000 0900 0000  ............
00001d4: 0406 0000 0008 0000 0600 0000  ............

so correct hdmi is :

0406 0000 0008 0000 0600 0000  ............


#88
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 823 posts
  • Gender:Male

Dont know whats wrong on my machine but with HDMI audio compatible Display and Hdmi Connector-Type i got a bunch of sound assertions.

so correct hdmi is :

0406 0000 0008 0000 0600 0000  ............

You were right. Cockpit error with the tools. The correct MacMini5,1 connector table has been edited to the post above.

My experience with the standard connector table above is the assertion you see but that is the only one.
kernel	Sound assertion ""Graphics vendor supplied 'av-signal-type' property indicates a DVI device with audio capabilities has been attached but cannot be supported."" failed in AppleHDAController at line 2341 goto handler
When I modify the first DisplayPort entry to HDMI, I get the table below.
0000078: 0002 0300 0000 0000 ffff ffff  ............
0000084: 0205 0000 0008 0000 0600 0000  ............
0000090: 0304 0000 0004 0000 0900 0000  ............
000009c: 0406 0000 0008 0000 0600 0000  ............
Boots fine from first HDMI port, both HDMI monitors work (mirror or no mirror). Problems with boot from HDMI2. With HDMI audio, I get only the one sound assertion below.
kernel	Sound assertion "0 == iterator" failed in AppleHDAController at line 1047 goto Exit
With two Lion installs; MacMini5,1 offers 3 display connectors while MacBookPro8,1 presents 2 and both require framebuffer edits. On board audio works fine but HDMI audio and/or DisplayPort audio don't work. Intel graphics seems to have problem with DisplayPort. Other graphics cards interpret a HDMI device as HDMI, not DVI, when plugged into a HDMI or DP port. Stuck with the discrete solution until there is a way for the HD3000 to make HDMI audio.

#89
rimmi2002

rimmi2002

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 153 posts

You were right. Cockpit error with the tools. The correct MacMini5,1 connector table has been edited to the post above.

My experience with the standard connector table above is the assertion you see but that is the only one.

kernel	Sound assertion ""Graphics vendor supplied 'av-signal-type' property indicates a DVI device with audio capabilities has been attached but cannot be supported."" failed in AppleHDAController at line 2341 goto handler
When I modify the first DisplayPort entry to HDMI, I get the table below.
0000078: 0002 0300 0000 0000 ffff ffff  ............
0000084: 0205 0000 0008 0000 0600 0000  ............
0000090: 0304 0000 0004 0000 0900 0000  ............
000009c: 0406 0000 0008 0000 0600 0000  ............
Boots fine from first HDMI port, both HDMI monitors work (mirror or no mirror). Problems with boot from HDMI2. With HDMI audio, I get only the one sound assertion below.
kernel	Sound assertion "0 == iterator" failed in AppleHDAController at line 1047 goto Exit
With two Lion installs; MacMini5,1 offers 3 display connectors while MacBookPro8,1 presents 2 and both require framebuffer edits. On board audio works fine but HDMI audio and/or DisplayPort audio don't work. Intel graphics seems to have problem with DisplayPort. Other graphics cards interpret a HDMI device as HDMI, not DVI, when plugged into a HDMI or DP port. Stuck with the discrete solution until there is a way for the HD3000 to make HDMI audio.


Do you have Board Product ID for a mac mini or a smbios file for a mac mini? I'd like to use that instead of MacPro 8,1 since its more like a desktop. Maybe will get rid of some artifacts as well. Thanks.

#90
tonymacx86

tonymacx86

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 212 posts
Here's a MacMini5,1 smbios.plist to use. I've been testing this as well- HDMI audio has been tough- haven't gotten it yet, as toleda said. If anyone gets it working- even with Voodoo, post your success.

I think part of the issue has to do with the Intel HDMI audio device ID conflicting with the Realtek ALC889, at least on my H67N-USB3 + i3-2105. Haven't been able to get a peep out of it. :thumbsup_anim:

Attached Files



#91
McDonald Ray

McDonald Ray

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts
Thanks for bcc9's method, it's really awsome.But I have similar problem that could not be resolved this way.

I have a Thinkpad T420, which has only LVDS and displayport.

I edited the AppleIntelSNBGrpahicsFB.kext, removed the last three lines and kept LVDS only.

However my computer still often get stuck(not every 5 seconds, but quite often, sometimes even cause the whole system halt), showed the log like:

May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: WaitForStamp: Overflowed waiting for stamp 0x2f3 on Main ring: called from
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: timestamp = 0x02cc
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: ****  Debug info for apparent hang in Main graphics engine  ****
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: ring head	= 0x00600eb4, wrap count = 0x 3
May  25 23:20:45 xs-MacBook-Pro-2 kernel[0]: ring tail	= 0x00000110 ring  control = 0x00003801   enabled, auto report disabled,  waiting,  semaphore not waiting, length = 0x004 4KB pages
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: timestamps = 0x02cc
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: Semaphore register values:
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: VRSYNC: (0x12044) = 0x2cc
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: BRSYNC: (0x22040) = 0x0
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: RVSYNC: (0x 2040) = 0x0
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: BVSYNC: (0x22044) = 0x0
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: RBSYNC: (0x 2044) = 0x0
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: VBSYNC: (0x12040) = 0x0
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: Looks like Main ring is stuck waiting on an event
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: After attempt to clear wait condition = 0x00003001 no longer waiting
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: kIPEHR: 0x7a000003
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: kINSTDONE: 0xfffb
May 25 23:20:45 xs-MacBook-Pro-2 kernel[0]: kINSTDONE_1: 0x230003f

Any other possibilities that casue this problem?Anyone idea will be appreciated! Thank you all!

#92
iLeopod

iLeopod

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 435 posts
  • Gender:Male
  • Location:Germany
  • Interests:ileopod.wordpress.com
try
0000000: 0102 0200 1007 0000 1007 0000 ............
000000c: 0503 0000 0200 0000 3000 0000 ........0...
0000018: 0304 0000 0004 0000 0900 0000 ............
0000024: 0000 0000 0000 0000 0000 0000 ............
0000030: 0000 0000 0000 0000 0000 0000 ............
%

And don't forget to set smboard-id.

#93
McDonald Ray

McDonald Ray

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

try
0000000: 0102 0200 1007 0000 1007 0000 ............
000000c: 0503 0000 0200 0000 3000 0000 ........0...
0000018: 0304 0000 0004 0000 0900 0000 ............
0000024: 0000 0000 0000 0000 0000 0000 ............
0000030: 0000 0000 0000 0000 0000 0000 ............
%

And don't forget to set smboard-id.


thanks for that , I have set macbookpro8,1 boardid.

my present table was:
0000000: 0102 0100 1007 0000 1007 0000 ............
000000c: 0503 0000 0200 0000 3000 0000 ........0...
0000018:
0000 0000 0000 0000 0000 0000 ............
0000024: 0000 0000 0000 0000 0000 0000 ............
0000030: 0000 0000 0000 0000 0000 0000 ............


by the way, my t420 have only one dp port, does 0304 0000 0004 0000 0900 0000 mean a dp port?

#94
beaups

beaups

    InsanelyMac Protégé

  • Members
  • PipPip
  • 85 posts
Can bcc9 or another help explain the other bytes in the connector table?

I have a new Sony Z2, internal display is displayport, external supports hdmi and vga. I can get the hdmi working via connector edits and I can get the internal lcd to initialize and be active in - but no display on it! And yes, the backlight is on.

#95
Arin91

Arin91

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts
Has anybody had any luck with devid 0x0102 (i5 2400)?

Best I can get with/without connector modifications is a grey screen with working mouse.

I have tried:

  • Setting model and board-id to iMac12,2, Macbookpro8,1, macmini5,1
  • Injecting an alternate devid (106 or 126)
  • Changing AppleIntelSNBGraphicsFB Info.plist to disable the current 0x0102 with a false id.

I tried the last as it looks like this id is being sandboxed. iMac12,2 does have a model with i5 2400 but in looking at the dumps for it the Intel hd graphics is not being used at all.

My board has 3 ports, x2 hdmi and x1 display port mapped out as:
port 5 HDMI1
port 6 HDMI2
port 7 DisplayPort

In trying iMac12,2 and macmini5,1 I'm updating all tables as I'm not sure which one is mapped to what.

#96
boumbo

boumbo

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts
Hi,
i don't know if it is really the LVDS connector that made some trouble,
i had some trouble with my HD3000 with the connector so i follow this guide to remove LVDS connector
and put in first position the hdmi connector the one i use with my screen
but if i change and i use a dvi cable, i have the same problem with the grey screen issue
so i need to edit again the connector table.

I found a easy way for me, modify the table with the real type of connector and not to leave all connector as they are DP ports connectors

-remove the connector edited AppleiNtelSNBgraphicsFB.kext replace it with the original one, restart in safe mode
watch in system information\Video card which connectors feat with connector table
(ex: for me in the connector table: 304----- is the hdmi port 205---- is the dvi port and 406----- is the DP
change the connector table to have
0503 0000 0200 ----------- =LVDS
0304 0000 0008------------=HDMI
0205 0000 0400 ------------=DVI DUAL LINK
0406 0000 0004 ------------=DP
you could let the LVDS in first position, it doesn't change anything

and now you will see that you can use the connector that you wantwithout any problem, hot plug work perfectly
and if you go in system information\video card , you will see that there is 4 connectors avaible ,the first one can't be use of course, it is the LVDS one and it doesn't create any problems

#97
Mohamed Khairy

Mohamed Khairy

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 2,153 posts
  • Gender:Male
is there no idea to make nvidia optimus works
my laptop dell insprion n5110
i use on it MBP 8.3 SMBIOS
intel hd 3000 works good for laptop display
but can't use any VGA or HDMI
nvidia geforce 525m tried to inject it on dsdt and tried to emulate intel and nvidia as it is on macbookpro 6.1 ioregistery

when i add this value to igpu it crash screen when blue screen appear
"AAPL00,DualLink", 
						Buffer (0x04)
						{
							0x01, 0x00, 0x00, 0x00
						},


nvidia card give on kernel log this that it failed

Sep  4 21:08:25 The-Kings-MacBook-Pro kernel[0]: NVDA: rmStart failed
Sep  4 21:08:25 The-Kings-MacBook-Pro kernel[0]: NVDA,Display-B: Not usable


any idea to by pass restart failed

i attached dsdt i use now with out dual link value

Attached Files



#98
Mohamed Khairy

Mohamed Khairy

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 2,153 posts
  • Gender:Male
i finally understood that nvidia optimus card has no direct out put and it pass throw intel gfx to give output
so now i wonder if i can edit connector to get VGA connector to work on my lap

i steed my notebook as macbookpro and i have now 4 port need to edit last three
as on my notebook there are three connector
one for LVDS my notebook screen
one for VGA
one for HDMI


so his it will be like that or what


0000000: 0102 0300 1007 0000 1007 0000  ............
000000c: 0503 0000 0200 0000 3000 0000  ........0...
0000018: 0205 0000 0004 0000 0700 0000  ............
0000024: 0304 0000 0008 0000 0900 0000  ............
0000030: 0000 0000 0000 0000 0000 0000  ............


DP is coded by 0004 but what about VGA connector is there any special code for it or even for DVI


thanks

#99
bcc9

bcc9

    InsanelyMac Legend

  • Coders
  • 1,277 posts
  • Gender:Male
I have nothing new to add about VGA; do any genuine sandy bridge macs have working VGA output?

Basically my knowledge doesn't go beyond what I wrote in post #58:
http://www.insanelym...p...t&p=1725612

I don't have a sandy bridge notebook with which to explore this any further.

#100
.kAroshi

.kAroshi

    InsanelyMac Protégé

  • Members
  • Pip
  • 22 posts
Hi, i have a z68x-ud3h motherboard with 4 outputs: vga dvi-d hdmi and dp. Of course they all work except for vga. If you have DP or DVI-A, your best bet to connect to a vga monitor is to buy a 20€ dp->vga or a 2€ dvi-a->vga adapter and stop worrying.
But if you want to experiment i've found out that radeon drivers use

#define CONNECTORTYPE_VGA 0x00000010
for vga ports, which means that if bcc9 is right and intel drivers use the same connector ids as the radeon ones we could use this one.
Of course i tried editing the table but nothing worked for me.





1 user(s) are reading this topic

0 members, 1 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