Re: VESAFB CUSTOM RESOLUTION

From: Antonino A. Daplas
Date: Wed Jul 18 2007 - 18:43:35 EST


On Wed, 2007-07-18 at 19:59 +0300, Matan Ziv-Av wrote:
> On Wed, 18 Jul 2007, Antonino A. Daplas wrote:
>
> > So, one cannot just set any mode, unless that mode is already defined in
> > the BIOS mode table. In VBE 3.0, you might be able to choose an
> > arbitrary vertical refresh rate, but that's the best mode tuning you can
> > do with the video BIOS.
>
> Theoretically, not correct. VBE 3.0 allows arbitrary mode setting - not
> only vertical refresh, but all mode parameters (the ones appearing in X
> modelines). This is supported by both svgalib and uvesafb. I don't know
> on how many VBE3 cards this feature really works, but it does work for
> some cards.

The CRTCInfoBlock structure passed for Function 0x4f02 does not include
xres and yres so the horizontal and vertical active lengths cannot be
modified arbitrarily, an appropriate mode ID must still be chosen. I
cannot set 880x244, for example, if it's not in the table. It's the
horizontal timings, the vertical timings and the pixelclock that can be
adjusted.

Tony

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/