iLeopod, on Jul 10 2011, 09:59 PM, said:
<key>SMboardproduct</key> <string>Mac-94245B3640C91C81</string>
Yes - use
<key>SMboardproduct</key> <string>Mac-942459F8199B171B</string>
But how do I get output of the nm command ??
bcc9, on Jul 11 2011, 12:05 AM, said:
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 ............For DVI, I removed the connector entry for the LVDS display, and shifted the remaining entries up.
dougaa, on Jul 17 2011, 08:49 PM, said:
Thanks for bcc9. i got my DVI work :P ------------------------------------------------------------------------------------------------------------------ Last login: Tue Jul 19 13:52:16 on console 188:~ ye$ cd /System/Library/Extensions/AppleIntelSNBGraphicsFB.kext/Contents/MacOS 188:MacOS ye$ nm -arch x86_64 AppleIntelSNBGraphicsFB | grep 'D _PlatformInformationList' 0000000000029600 D _PlatformInformationList 188:MacOS ye$ lipo -detailed_info AppleIntelSNBGraphicsFB Fat header in: AppleIntelSNBGraphicsFB fat_magic 0xcafebabe nfat_arch 2 architecture x86_64 cputype CPU_TYPE_X86_64 cpusubtype CPU_SUBTYPE_X86_64_ALL offset 4096 size 283552 align 2^12 (4096) architecture i386 cputype CPU_TYPE_I386 cpusubtype CPU_SUBTYPE_I386_ALL offset 290816 size 294736 align 2^12 (4096) 188:MacOS ye$ /code] So i got the disk address is 0x29600+4096=173568. let's go on 188:MacOS ye$ dd if=AppleIntelSNBGraphicsFB of=/tmp/table bs=1 skip=173568 count=60 60+0 records in 60+0 records out 60 bytes transferred in 0.000395 secs (151876 bytes/sec) 188:MacOS ye$ cd /tmp 188:tmp ye$ xxd -c 12 < table > hex 188:tmp ye$ cat hex 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 ............ BY THE WAY, the code above had been edited, i want 0205 (DVI)work, so i should put it in row2, right? xxd -c 12 -r hex >! table % dd if=table of=/System/Library/Extensions/AppleIntelSNBGraphicsFB.kext/Contents/MacOS/AppleIntelSNBGraphicsFB bs=1 seek=173568 conv=notrunc here i got the information 60+0 records 60+0 records out and % touch /System/Library/Extensions it show me need permission, so i put sudo touch /System/Library/Extensions i need reboot for test. After reboot, thanks for bcc9, i SUCCEED! Thanks for every one!
guymass, on Jul 20 2011, 05:19 AM, said:
131, on Jul 19 2011, 07:01 AM, said:
bcc9, on Jun 19 2011, 04:20 AM, said:
/* 12 byte connectorinfo */
typedef struct {
char byte0;
char byte1; /* i2cid? */
char unused[2];
uint32 connectortype; /* The connector type, see below */
char byte[4];
} connectorinfo_t;
/* 60 byte total */
typedef struct {
char byte0; /* Presence? */
char byte1; /* For display pipe max connector index? */
char byte2; /* Usable Connector count */
char byte3; /* Appears unused */
char byte[8];
connectorinfo_t connectors[4];
} PlatformInformationList_type;
PlatformInformationList_type PlatformInformationList[8];
where integers are represented in intel little-endian byte order, and bit 0 is the LSB.
In English, there are 8 tables in the list, each 60 bytes long. Each 60 byte table entry starts with a 12 byte header, followed by 4 connector information blocks. The connector information blocks are each 12 bytes long.<key>SMboardproduct</key> <string>Mac-94245B3640C91C81</string>
kernel[0]: WaitForStamp: Overflowed waiting for stamp 0x2f3 on Main ring: called from ... kernel[0]: Looks like Main ring is stuck waiting on an event kernel[0]: After attempt to clear wait condition = 0x00003001 no longer waitingAnd it would get re-stuck every 5 seconds or so. More importantly this would make the graphics unusably slow unless I unplugged the display for > 5 seconds first. At that point the stuck ring problem would "heal"... Using a dual-head setup also seems to avoid this problem.
% cd /System/Library/Extensions/AppleIntelSNBGraphicsFB.kext/Contents/MacOS % nm -arch x86_64 AppleIntelSNBGraphicsFB | grep 'D _PlatformInformationList' 00000000000295f0 D _PlatformInformationList % lipo -detailed_info AppleIntelSNBGraphicsFB Fat header in: AppleIntelSNBGraphicsFB fat_magic 0xcafebabe nfat_arch 2 architecture x86_64 cputype CPU_TYPE_X86_64 cpusubtype CPU_SUBTYPE_X86_64_ALL offset 4096 size 283008 align 2^12 (4096) architecture i386 cputype CPU_TYPE_I386 cpusubtype CPU_SUBTYPE_I386_ALL offset 290816 size 293092 align 2^12 (4096) %So now we know the disk address for this table is:
% dd if=AppleIntelSNBGraphicsFB of=/tmp/table bs=1 skip=173552 count=60 60+0 records in 60+0 records out 60 bytes transferred in 0.000142 secs (422955 bytes/sec) % cd /tmp % xxd -c 12 < table > hex % cat hex 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 ............ %In the above table you can see that 4 connectors are marked usable, 1 LVDS and 3 DP. On my h67 motherboard, I have 4 connectors: VGA, DVI, DP and HDMI. The DVI, DP and HDMI connectors all work with the DP connectortype shown in this table (the intel driver doesn't seem to use the connectortype for much).
0000000: 0102 0300 1007 0000 1007 0000 ............ 000000c: 0304 0000 0004 0000 0900 0000 ............ 0000018: 0205 0000 0004 0000 0700 0000 ............ 0000024: 0406 0000 0004 0000 0900 0000 ............ 0000030: 0000 0000 0000 0000 0000 0000 ............In the above I moved the hex from the 3rd connector (row 4) to the first (row 2), zeroed the hex in row 5, and subtracted 1 from the connector count in row 0.
xxd -c 12 -r hex >! table % dd if=table of=/System/Library/Extensions/AppleIntelSNBGraphicsFB.kext/Contents/MacOS/AppleIntelSNBGraphicsFB bs=1 seek=173552 conv=notrunc % touch /System/Library/ExtensionsViola, 3 working connectors and no driver hangs, instead of 1 broken connector & 3 working connectors with driver hangs.
Terminal.jpg 52.53K
233 downloads
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 ............
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 ............
dd if=AppleIntelSNBGraphicsFB of=/tmp/table bs=1 skip=173568 count=96
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 ............ 000003c: 0102 0100 1007 0000 1007 0000 ............ 0000048: 0503 0000 0200 0000 3000 0000 ........0... 0000054: 0000 0000 0100 0000 4000 0000 ........@...
000003c: 0102 0100 1007 0000 1007 0000 ............ 0000048: 0503 0000 0200 0000 3000 0000 ........0...
000003c: 0102 0100 1007 0000 1007 0000 ............ 0000048: 0205 0000 0004 0000 0700 0000 ........0...
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 ............ 000003c: 0102 0100 1007 0000 1007 0000 ............ 0000048: 0503 0000 0200 0000 3000 0000 ........0...
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: 0205 0000 0004 0000 0700 0000 ........0...
dougaa, on Jul 24 2011, 01:21 AM, said:
rimmi2002, on Jul 24 2011, 01:52 AM, said:
0 members, 1 guests, 0 anonymous users