[PATCH]: Add 1280x854 to kmode.c

Gianni Tedesco gianni@scaramanga.co.uk
Wed, 25 Feb 2004 14:20:05 +0100


Hi,

Consider this a success report on my ATI Radeon Mobility RV350 NP.
Hopefuly I will have some other patches in the pipeline. I get a few
errors with xcompmgr including a segfault.

This patch adds the 1280x854 widescreen mode to kdrive mode setting
code. It is needed for widescreen displays, in my case the LCD on the
Apple PowerBook.

There are, I think, 2 other possible widescreen modes with horizontal
sizes of 800 and 1024, I didn't try these yet. I also didn't try any
other sync settings apart from 85.938 HZ. Suffice to say that didn't
work.

diff -ur xserver.orig/hw/kdrive/src/kmode.c xserver/hw/kdrive/src/kmode.c
--- xserver.orig/hw/kdrive/src/kmode.c	2004-01-14 11:00:00.000000000 +0100
+++ xserver/hw/kdrive/src/kmode.c	2004-02-24 21:32:27.493377656 +0100
@@ -147,6 +147,12 @@
 		    1,	    32,	    38,	    KdSyncPositive, /* 65.937 */
     },
     
+    /* 1280x854 modes */
+    {	1280,	854,	60,	108000,			    /* VESA */
+		    96,	    312,    520,    KdSyncPositive, /* 60.000 */
+		    1,	    36,	    40,	    KdSyncPositive, /* 60.000 */
+    },
+
     /* 1280x960 modes */
     {	1280,	960,	85,	148500,			    /* VESA */
 		    64,	    224,    448,    KdSyncPositive, /* 85.938 */

-- 
// Gianni Tedesco (gianni at scaramanga dot co dot uk)
lynx --source www.scaramanga.co.uk/scaramanga.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D