# HG changeset patch # User Rohit Joshi # Date 1260451236 0 # Node ID c2796e3d4f8172ca233574b6b111fd1c09e9f6ca # Parent ab535bc253e36af30d962ee16fce0887adcb1bcd improve 915resolution patch and receipt diff -r ab535bc253e3 -r c2796e3d4f81 915resolution/receipt --- a/915resolution/receipt Thu Dec 10 13:18:57 2009 +0000 +++ b/915resolution/receipt Thu Dec 10 13:20:36 2009 +0000 @@ -3,24 +3,24 @@ PACKAGE="915resolution" VERSION="0.5.3" CATEGORY="system-tools" -SHORT_DESC="Modify the video BIOS of the 800 and 900 series Intel graphics chipsets" +SHORT_DESC="Widescreen support; modify video BIOS of the 800 and 900 series Intel graphics chipsets" MAINTAINER="erjo@slitaz.org" DEPENDS="" TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="http://www.geocities.com/stomljen/" -WGET_URL="http://www.geocities.com/stomljen/$TARBALL" +WEB_SITE="http://915resolution.mango-lang.org/" +WGET_URL="$WEB_SITE/$TARBALL" +TAGS="widescreen resolution" # Rules to configure and make the package. compile_rules() { cd $src - for i in eeepc901.u ; do + for i in $PACKAGE-$VERSION-widescreen-resolution.patch ; do [ -f done.$i ] && continue patch -p0 < ../stuff/$i touch done.$i done - make clean && make - #make + make clean && make } # Rules to gen a SliTaz package suitable for Tazpkg. diff -r ab535bc253e3 -r c2796e3d4f81 915resolution/stuff/915resolution-0.5.3-widescreen-resolution.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/915resolution/stuff/915resolution-0.5.3-widescreen-resolution.patch Thu Dec 10 13:20:36 2009 +0000 @@ -0,0 +1,152 @@ +--- 915resolution.c ++++ 915resolution.c +@@ -55,13 +55,13 @@ + typedef unsigned int cardinal; + + typedef enum { +- CT_UNKWN, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM, +- CT_946GZ, CT_G965, CT_Q965 ++ CT_UNKWN, CT_500GMA, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM, ++ CT_945GME, CT_946GZ, CT_G965, CT_Q965, CT_965GM + } chipset_type; + + char * chipset_type_names[] = { +- "UNKNOWN", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM", +- "946GZ", "G965", "Q965" ++ "UNKNOWN", "500GMA", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM", ++ "945GME", "946GZ", "G965", "Q965", "965GM" + }; + + typedef enum { +@@ -179,8 +179,12 @@ + + chipset_type get_chipset(cardinal id) { + chipset_type type; +- ++ + switch (id) { ++ case 0x81008086: ++ type = CT_500GMA; ++ break; ++ + case 0x35758086: + type = CT_830; + break; +@@ -192,14 +196,14 @@ + case 0x35808086: + type = CT_855GM; + break; +- ++ + case 0x25708086: + type = CT_865G; + break; + + case 0x25808086: +- type = CT_915G; +- break; ++ type = CT_915G; ++ break; + + case 0x25908086: + type = CT_915GM; +@@ -213,18 +217,26 @@ + type = CT_945GM; + break; + ++ case 0x27ac8086: ++ type = CT_945GME; ++ break; ++ + case 0x29708086: + type = CT_946GZ; + break; + + case 0x29a08086: +- type = CT_G965; +- break; ++ type = CT_G965; ++ break; + + case 0x29908086: + type = CT_Q965; + break; + ++ case 0x2a008086: ++ type = CT_965GM; ++ break; ++ + default: + type = CT_UNKWN; + break; +@@ -502,15 +514,18 @@ + outl(0x8000005a, 0xcf8); + outb(0x33, 0xcfe); + break; ++ case CT_500GMA: + case CT_845G: + case CT_865G: + case CT_915G: + case CT_915GM: + case CT_945G: + case CT_945GM: ++ case CT_945GME: + case CT_946GZ: + case CT_G965: + case CT_Q965: ++ case CT_965GM: + outl(0x80000090, 0xcf8); + map->b1 = inb(0xcfd); + map->b2 = inb(0xcfe); +@@ -542,15 +557,18 @@ + outl(0x8000005a, 0xcf8); + outb(map->b1, 0xcfe); + break; ++ case CT_500GMA: + case CT_845G: + case CT_865G: + case CT_915G: + case CT_915GM: + case CT_945G: + case CT_945GM: ++ case CT_945GME: + case CT_946GZ: + case CT_G965: + case CT_Q965: ++ case CT_965GM: + outl(0x80000090, 0xcf8); + outb(map->b1, 0xcfd); + outb(map->b2, 0xcfe); +@@ -781,8 +799,10 @@ + if(argc<=index) { + return 0; + } +- +- if (!strcmp(argv[index], "845")) { ++ else if (!strcmp(argv[index], "500GMA")) { ++ *forced_chipset = CT_500GMA; ++ } ++ else if (!strcmp(argv[index], "845")) { + *forced_chipset = CT_845G; + } + else if (!strcmp(argv[index], "855")) { +@@ -803,6 +823,9 @@ + else if (!strcmp(argv[index], "945GM")) { + *forced_chipset = CT_945GM; + } ++ else if (!strcmp(argv[index], "945GME")) { ++ *forced_chipset = CT_945GME; ++ } + else if (!strcmp(argv[index], "946GZ")) { + *forced_chipset = CT_946GZ; + } +@@ -812,6 +835,9 @@ + else if (!strcmp(argv[index], "Q965")) { + *forced_chipset = CT_Q965; + } ++ else if (!strcmp(argv[index], "965GM")) { ++ *forced_chipset = CT_965GM; ++ } + else { + *forced_chipset = CT_UNKWN; + } diff -r ab535bc253e3 -r c2796e3d4f81 915resolution/stuff/eeepc901.u --- a/915resolution/stuff/eeepc901.u Thu Dec 10 13:18:57 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ ---- 915resolution.c -+++ 915resolution.c -@@ -56,12 +56,12 @@ - - typedef enum { - CT_UNKWN, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM, -- CT_946GZ, CT_G965, CT_Q965 -+ CT_946GZ, CT_G965, CT_Q965, CT_965GM - } chipset_type; - - char * chipset_type_names[] = { - "UNKNOWN", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM", -- "946GZ", "G965", "Q965" -+ "946GZ", "G965", "Q965", "965GM" - }; - - typedef enum { -@@ -225,6 +225,10 @@ - type = CT_Q965; - break; - -+ case 0x2a008086: -+ type = CT_965GM; -+ break; -+ - default: - type = CT_UNKWN; - break; -@@ -511,6 +515,7 @@ - case CT_946GZ: - case CT_G965: - case CT_Q965: -+ case CT_965GM: - outl(0x80000090, 0xcf8); - map->b1 = inb(0xcfd); - map->b2 = inb(0xcfe); -@@ -551,6 +556,7 @@ - case CT_946GZ: - case CT_G965: - case CT_Q965: -+ case CT_965GM: - outl(0x80000090, 0xcf8); - outb(map->b1, 0xcfd); - outb(map->b2, 0xcfe); -@@ -809,6 +815,9 @@ - else if (!strcmp(argv[index], "G965")) { - *forced_chipset = CT_G965; - } -+ else if (!strcmp(argv[index], "965GM")) { -+ *forced_chipset = CT_965GM; -+ } - else if (!strcmp(argv[index], "Q965")) { - *forced_chipset = CT_Q965; - }