Author: fabbione Date: 2004-10-08 02:52:44 -0500 (Fri, 08 Oct 2004) New Revision: 1925
Added: trunk/debian/patches/099i_pro_savage_ddr_set_use_bios_to_false.diff Modified: trunk/debian/CHANGESETS trunk/debian/changelog Log: Add workaround for the UseBIOS default setting in the savage driver: + Add patch 099i_pro_savage_ddr_set_use_bios_to_false.diff + Set UseBios default to "no" for PROSAVAGE_DDR and PROSAVAGE_DDRK, as described here http://www.probo.com/timr/savage40.html. Modified: trunk/debian/CHANGESETS =================================================================== --- trunk/debian/CHANGESETS 2004-10-08 05:58:04 UTC (rev 1924) +++ trunk/debian/CHANGESETS 2004-10-08 07:52:44 UTC (rev 1925) @@ -55,4 +55,10 @@ actually be shipped. 1922 +Add workaround for the UseBIOS default setting in the savage driver: ++ Add patch 099i_pro_savage_ddr_set_use_bios_to_false.diff ++ Set UseBios default to "no" for PROSAVAGE_DDR and PROSAVAGE_DDRK, as + described here http://www.probo.com/timr/savage40.html. + 1925 + vim:set ai et sts=4 sw=4 tw=80: Modified: trunk/debian/changelog =================================================================== --- trunk/debian/changelog 2004-10-08 05:58:04 UTC (rev 1924) +++ trunk/debian/changelog 2004-10-08 07:52:44 UTC (rev 1925) @@ -46,6 +46,11 @@ on a powerpc laptop do not show this problem anymore. No references are available in upstream changelog. (Closes: #80140) + * Add workaround for the UseBIOS default setting in the savage driver: + + Add patch 099i_pro_savage_ddr_set_use_bios_to_false.diff + + Set UseBios default to "no" for PROSAVAGE_DDR and PROSAVAGE_DDRK, as + described here http://www.probo.com/timr/savage40.html. + -- Branden Robinson <[EMAIL PROTECTED]> Thu, 7 Oct 2004 23:58:53 -0500 xfree86 (4.3.0.dfsg.1-8) unstable; urgency=high Added: trunk/debian/patches/099i_pro_savage_ddr_set_use_bios_to_false.diff =================================================================== --- trunk/debian/patches/099i_pro_savage_ddr_set_use_bios_to_false.diff 2004-10-08 05:58:04 UTC (rev 1924) +++ trunk/debian/patches/099i_pro_savage_ddr_set_use_bios_to_false.diff 2004-10-08 07:52:44 UTC (rev 1925) @@ -0,0 +1,57 @@ +$Id$ + +This patch contains a workaround for the UseBIOS default setting, to fix +refresh rates detection as described here: +https://bugzilla.ubuntu.com/show_bug.cgi?id=2111 +http://www.probo.com/timr/savage40.html + +The patch moves the OPTION_USEBIOS configuration after the chipset is probed +and it add the two specific cases where the UseBios should be set to "no", +without user interaction. +The user will still have the option to override X_DEFAULT via configuration +file, exactly as it is now. + +This is a known problem for this version of the savage driver (1.1.27t) that is +already fixed in more recent versions of it, but a full backport is not an +option since the changes are quite big. + +This patch by Fabio M. Di Nitto. + +diff -Narud xc.orig/programs/Xserver/hw/xfree86/drivers/savage/savage_driver.c xc/programs/Xserver/hw/xfree86/drivers/savage/savage_driver.c +--- xc.orig/programs/Xserver/hw/xfree86/drivers/savage/savage_driver.c 2004-10-07 07:55:25.000000000 +0000 ++++ xc/programs/Xserver/hw/xfree86/drivers/savage/savage_driver.c 2004-10-07 08:31:28.000000000 +0000 +@@ -890,12 +890,14 @@ + xf86DrvMsg(pScrn->scrnIndex, from, "Using %s cursor\n", + psav->hwcursor ? "HW" : "SW"); + ++/* + from = X_DEFAULT; + psav->UseBIOS = TRUE; + if (xf86GetOptValBool(psav->Options, OPTION_USEBIOS, &psav->UseBIOS) ) + from = X_CONFIG; + xf86DrvMsg(pScrn->scrnIndex, from, "%ssing video BIOS to set modes\n", + psav->UseBIOS ? "U" : "Not u" ); ++*/ + + pScrn->videoRam = 0; + if( xf86GetOptValInteger(psav->Options, OPTION_VIDEORAM, &pScrn->videoRam ) ) +@@ -1003,6 +1005,19 @@ + + xfree(pEnt); + ++ /* set OPTION_USEBIOS according to the chipset */ ++ ++ from = X_DEFAULT; ++ if (( psav->ChipId == PCI_CHIP_PROSAVAGE_DDR ) || ( psav->ChipId == PCI_CHIP_PROSAVAGE_DDRK )) { ++ psav->UseBIOS = FALSE; ++ } else { ++ psav->UseBIOS = TRUE; ++ } ++ if (xf86GetOptValBool(psav->Options, OPTION_USEBIOS, &psav->UseBIOS) ) ++ from = X_CONFIG; ++ xf86DrvMsg(pScrn->scrnIndex, from, "%ssing video BIOS to set modes\n", ++ psav->UseBIOS ? "U" : "Not u" ); ++ + /* maybe throw in some more sanity checks here */ + + xf86DrvMsg(pScrn->scrnIndex, from, "Engine: \"%s\"\n", pScrn->chipset); Property changes on: trunk/debian/patches/099i_pro_savage_ddr_set_use_bios_to_false.diff ___________________________________________________________________ Name: svn:keywords + Id

