In data martedì 30 giugno 2009 16:07:00, Harmuth, Florian ha scritto:
> hello all,
> at the moment i try to update my xorg version. I have attached an 19" tft
> with sxga resolution. If i try to set the resolution to 1280x1024 with
> xrandr it returns that the maximal resolution is 1028x1028. Where i can
> change this "maximal" resolution? With my old xorg version (and the
> reagrding nsc driver) i can set my "normal" resolution.
>
> Best Regards,
> flo
Hello,
I had the same problem when trying to add support for 1280x1024 and 1680x1050
modes on a custom board.
The attached patch manages to get X to start with the startup mode set by bios
(well not exactly, if you set 1600x1200 in bios it starts in 1680x1050 mode
with this patch).
No mode switching is supported because I've simply disabled all default modes
to make the bios mode the prefferred one.
The code scaling does not work with widths > 1024, and I think this is one
reason why DDC probe is disabled for panels. The workaround of setting in the
bios the video output to CRT instead of TFT/LVDS cannot be applied for me.
This is of course not a mainstream patch (well the part that gives names to
legacy modes could be) but does what I needed and maybe it may help.
Regards,
Silvan
--
mambaSoft di Calarco Silvan
Web: http://www.mambasoft.it
mambaSoft Store @ http://shop.mambasoft.it
openmamba GNU/Linux development @ http://www.openmamba.org
diff -Nru xf86-video-geode-2.11.3.orig/src/lx_output.c xf86-video-geode-2.11.3/src/lx_output.c
--- xf86-video-geode-2.11.3.orig/src/lx_output.c 2009-06-19 15:48:22.000000000 +0200
+++ xf86-video-geode-2.11.3/src/lx_output.c 2009-07-28 22:15:43.000000000 +0200
@@ -158,8 +158,7 @@
/* No scaling > for modes with > 1024 width */
if (pGeode->Output & OUTPUT_PANEL) {
- if ((pMode->HDisplay != pGeode->panelMode->HDisplay) &&
- pMode->HDisplay > 1024)
+ if (pMode->type & M_T_DEFAULT)
return MODE_BAD;
}
diff -Nru xf86-video-geode-2.11.3.orig/src/lx_panel.c xf86-video-geode-2.11.3/src/lx_panel.c
--- xf86-video-geode-2.11.3.orig/src/lx_panel.c 2009-06-19 15:48:22.000000000 +0200
+++ xf86-video-geode-2.11.3/src/lx_panel.c 2009-07-28 22:16:56.000000000 +0200
@@ -44,31 +44,34 @@
/* This is borrowed from xerver/hw/xfree86/modes */
-#define MODEPREFIX NULL, NULL, NULL, 0, M_T_DRIVER
+#define MODEPREFIX(name) NULL, NULL, name, 0, M_T_DRIVER
#define MODESUFFIX 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,FALSE,FALSE,0,NULL,0,0.0,0.0
DisplayModeRec lx_panel_modes[] = {
- {MODEPREFIX, 31200, 320, 354, 384, 400, 0, 240, 249, 253, 260, 0,
+ {MODEPREFIX("320x240"), 31200, 320, 354, 384, 400, 0, 240, 249, 253, 260, 0,
V_NHSYNC | V_NVSYNC, MODESUFFIX}
, /* 320x...@75 */
- {MODEPREFIX, 25175, 640, 656, 744, 800, 0, 480, 490, 492, 525, 0,
+ {MODEPREFIX("640x480"), 25175, 640, 656, 744, 800, 0, 480, 490, 492, 525, 0,
V_NHSYNC | V_NVSYNC, MODESUFFIX}
, /* 640x...@60 */
- {MODEPREFIX, 40000, 800, 840, 968, 1056, 0, 600, 601, 605, 628, 0,
+ {MODEPREFIX("800x600"), 40000, 800, 840, 968, 1056, 0, 600, 601, 605, 628, 0,
V_NHSYNC | V_NVSYNC, MODESUFFIX}
, /* 880x...@60 */
- {MODEPREFIX, 65000, 1024, 1048, 1184, 1344, 0, 768, 771, 777, 806, 0,
+ {MODEPREFIX("1024x768"), 65000, 1024, 1048, 1184, 1344, 0, 768, 771, 777, 806, 0,
V_NHSYNC | V_NVSYNC, MODESUFFIX}
, /* 1024x...@60 */
- {MODEPREFIX, 81600, 1152, 1216, 1336, 1520, 0, 864, 865, 868, 895, 0,
+ {MODEPREFIX("1152x864"), 81600, 1152, 1216, 1336, 1520, 0, 864, 865, 868, 895, 0,
V_NHSYNC | V_NVSYNC, MODESUFFIX}
, /* 1152x...@60 */
- {MODEPREFIX, 108000, 1028, 1328, 1440, 1688, 0, 1024, 1025, 1028, 1066, 0,
+ {MODEPREFIX("1280x1024"), 108000, 1280, 1328, 1440, 1688, 0, 1024, 1025, 1028, 1066, 0,
V_NHSYNC | V_NVSYNC, MODESUFFIX}
, /* 1280x1...@60 */
- {MODEPREFIX, 162000, 1600, 1664, 1856, 2160, 0, 1200, 1201, 1204, 1250, 0,
+ {MODEPREFIX("1680x1050"), 147140, 1680, 1784, 1968, 2256, 0, 1050, 1051, 1054, 1087, 0,
V_NHSYNC | V_NVSYNC, MODESUFFIX}
- , /* 1600x...@60 */
+ , /* 1680x1...@60 */
+ {MODEPREFIX("1600x1200"), 162000, 1600, 1664, 1856, 2160, 0, 1200, 1201, 1204, 1250, 0,
+ V_NHSYNC | V_NVSYNC, MODESUFFIX}
+ , /* 1600x1...@60 */
};
/* Get the legacy panel size from VSA, and return the associated mode rec */
_______________________________________________
Xorg-driver-geode mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-driver-geode