Re: 640x512x16bpp with VESA ?




"whygee" wrote:
Hello,
Hi,

I have to use a 1280x1024 screen but there are too many pixels
to compute there. I think that a halved resolution would fit
but 1:1.25 ratio modes are very scarce. Practically, I use
the VESA2 framebuffer in ASM with my own bootloader so the
help of an operating system is useless, unless it gives me
correct parameters. Should I dump the registers after X.org
has set this mode ?

Dunno what X.org does nor what it is ...
but I also have to use VESA/VBE to set Vmodes on newer PCI/AGP cards,
because they are unfortunately not at all documented in deep detail.

I guess that I have to setup 1280x1024x16 then tweak the CRTC

by x16 you mean 16 colors on four distributed planes ?
or 16-bit colours ?

to "double scan" (so i get 1280x512). I have read books 12 years
ago about this but i don't remember the particularities of the X mode :-)
I have to half the clock speed too but it's above my ability now
(i don't have the books anymore). Hint : my graphics chip is based on S3.

It will not be enough to set Vclock and double-scan, you need also
to recalculate synch/border/blank periods within the range of your
monitor.
I remember good old S3-times quite well and I played around with
own created Video-modes of any kind, even a weird behaving mixed
Text/Graphic-mode were possible here.

My requirement is to conserve the 1:1.25 ratio of the screen
with practically fine values. If you know of other resolutions
that fit, fine, as long as I can set it with a simple asm program.

You got a 5:4 (better known as 10:8) monitor ?
I never used any 4-bit color format, my preference is and always was
8-bit (one byte/pixel serves me well) and my standard resolution is
1152*864x256 to allow a 1024x768 display plus tool-bars and stuff,
so keeping the monitors 4:3 format (and circels remain 'round').

I once found all required information for S3(GL4x/5x..)in RBIL(ports).
This collection may be still on one of my old HDs, so if you don't
find it on the net, I could search my archives and post the few pages.

Do you know which S3-chip is in there ?

thanks,
YG (not been here for 8 years or so...)

welcome back ;)
__
wolfgang


.



Relevant Pages

  • Re: Bad quality in Live and Recorded TV...
    ... I think the resolution is constant and the content is scaled to fit. ... that brings up further questions...what display adapter board are you using, ... capabilities are useless on a monitor. ...
    (microsoft.public.windows.mediacenter)
  • Re: 1920x1200 on 21 in screen
    ... though of course the aspect ratio on the 21 inch monitor was a bit compressed. ... usually do mean that there's only 1600x1200 physical pixels. ... any other resolution scales it to fit. ...
    (comp.os.linux.hardware)
  • Re: 720p Component Video problem
    ... At this time nvidia and ATI dont seem to support 4:3 resolution above 720x480 ... > Using the dongle it comes with and component video cables, ... > fit the screen right. ... I tried using a game with the ...
    (microsoft.public.windows.mediacenter)
  • Re: Stranche form corruption
    ... Pick a common resolution that will fit most screens: ... Detect settings on startup and launch the form of best fit. ... provides for small icons, large icons, text on buttons, etc. ...
    (microsoft.public.vb.enterprise)
  • Acer AL2223W desktop too wide
    ... I just bought a new Acer AL22223W 22" monitor. ... There doesn't appear to be a way to set the screensize directly on the ... fit, but maybe LCD's don't work that way. ... So I guess I have the right resolution on the screen; ...
    (Fedora)