Re: how to override modelines?

Search this archive.

From: wim@djo.wtm.tudelft.nl
Date: Wed 04 Apr 2001 - 20:44:05 IST


> From linux-svgalib@svgalib.org Wed Apr 04 08:35:03 2001
> Date: Wed, 4 Apr 2001 02:10:32 -0500
> From: Matan Ziv-Av <matan@svgalib.org>
> Reply-To: Matan Ziv-Av <matan@svgalib.org>
> 
> > could anyone please point out how to override the internal 'modelines'
> > that svgalib uses?Defining modelines in /etc/vga/libvga.config doesn't
> > seem to work for me!
> 
> I did not look at that part much, but I think that user mode lines
> should override internal mode lines.

That's what everyone is expecting; they should. But they don't.

> > I'm using a fixed-frequency monitor that will only synchronize on 48KHz x
> > 59Hz on which it is capable of using a resolution of 1024x768.
> > (Standard I get a vertical frequency of about 70Hz, which is much too high.)
> 
> If you use
> HorizSync 47 49
> VertRefresh 58 60
> 
> Then for sure, svgalib won't select any mode outside that range.

Yes, it has influence on the behaviour of svgalib, but it only proves that
the configfile gets read in some way. That was already clear from the fact
that choosing the wrong chipset does really matter.

> Please note that not all drivers use mode lines - specifically the vesa
> driver. If you use the vesa driver, the bios sets whatever mode timing
> it wants, without svgalib's control.

It doesn't concern VESA drivers. It's a S3 trio64 PCI card.

For what it's worth, here is the config file:
---
# Configuration file for svgalib. Default location is /etc/vga.
# there's no ~/.svgalibrc
# skip mouse stuff. skip keyboard stuff

HorizSync 47 51
VertRefresh 58 61

chipset S3		# S3 chipsets
colortext

modeline 1024x768   62 1024 1112 1166 1282   768 769 775 824 -hsync -vsync
modeline 800x600    50  800  870  930 1030   600 720 728 822 -hsync -vsync
modeline 640x480    43  640  710  762  834   480 650 656 850 -hsync -vsync
---

Narrowing down the options to for example
HorizSync 48 58.8
VertRefresh 58 59.5
doesn't do any good.

What I simply need is that it uses the working modelines. They just get
ignored. So how do I fix that?


Regards, Wim.


----- wim@djo.wtm.tudelft.nl -----



------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST