Hello! This is a trivial patch that adds support for the "Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics" controller found on Apple MacBook laptops.
I've tested it with my MacBook and an external 19" CRT screen. Would be nice if this could be added to the Debian package or (even better) merged upstream. Thanks, Thomas
diff -ru i810switch-0.6.5/debian/changelog i810switch-0.6.5-thp/debian/changelog --- i810switch-0.6.5/debian/changelog 2006-12-24 22:30:48.000000000 +0100 +++ i810switch-0.6.5-thp/debian/changelog 2006-12-24 22:28:33.000000000 +0100 @@ -1,3 +1,9 @@ +i810switch (0.6.5-4) unstable; urgency=low + + * Added support for i945 chipset (as found in Apple MacBooks) + + -- Thomas Perl <[EMAIL PROTECTED]> Sun, 24 Dec 2006 22:28:02 +0100 + i810switch (0.6.5-3) unstable; urgency=low * Added AMD64 to list of supported arches, thanks Julien. Closes: #404039. Only in i810switch-0.6.5: i810switch diff -ru i810switch-0.6.5/i810switch.c i810switch-0.6.5-thp/i810switch.c --- i810switch-0.6.5/i810switch.c 2006-12-24 22:30:48.000000000 +0100 +++ i810switch-0.6.5-thp/i810switch.c 2006-12-24 22:27:47.000000000 +0100 @@ -60,6 +60,7 @@ #define I855STR "8086:3582" //#define I865STR "8086:2572" #define I915STR "8086:2592" +#define I945STR "8086:27a2" #define MEMSTR "Memory at" #define NONPRSTR "32-bit, non-prefetchable" @@ -279,6 +280,13 @@ return p; } + i = (p = strstr(*buff_ptr, I945STR)) != NULL; + if (i) + { + *chiptype = I855; + return p; + } + i = (p = strstr(*buff_ptr, I915STR)) != NULL; if (i) { Only in i810switch-0.6.5: i810switch.o