Index: trident_video.c =================================================================== --- trident_video.c (revision 75) +++ trident_video.c (revision 82) @@ -261,7 +261,8 @@ OUTW(0x3C4, 0x007A); OUTW(0x3C4, 0x007D); } - if (pTrident->Chipset == CYBERBLADEXP4) { + if (pTrident->Chipset == CYBERBLADEXP4 || + pTrident->Chipset == XP5) { OUTW(0x3CE, 0x0462); } switch (pScrn->depth) { @@ -1313,6 +1314,18 @@ case CYBERBLADEE4: pTrident->hsync -= 8; break; + case XP5: + /* 2008-11-25/david: hsync_(rskew) values taken from XP4 -- if we + omit them, we get a blue bar on the left side of the overlay. + bskew value determined by trial and error to remove single-pixel + constant line with random pixels at bottom of screen. In mplayer + but not in totem we still have a blue horizontal line at the + bottom. In both players the rightmost vertical line looks like a + copy of the leftmost line. */ + pTrident->hsync -= 24; + pTrident->hsync_rskew = -1; + pTrident->vsync_bskew = -1; + break; case CYBERBLADEXP4: pTrident->hsync -= 24; pTrident->hsync_rskew = -1;