[Xorg] X server autoconfiguration

Francois Tigeot ftigeot at wolfpond.org
Thu Aug 19 09:10:21 PDT 2004


On Thu, Aug 19, 2004 at 03:45:23PM +0100, Alan Cox wrote:
> On Iau, 2004-08-19 at 16:22, Francois Tigeot wrote:
> > With 'X -configure', the X server is able to auto-detect which driver
> > to use and write a sample configuration file.
> > 
> > This mechanism forces to run the server twice, the first time to generate
> > a sample xorg.conf file which will be used untouched by the server in a
> > second time.
> > 
> > Is there a way to have the server auto-detect the appropriate graphic
> > driver at run time without having to use a temporary configuration file ?
> 
> Soething like
> 
> mv X Xsv
> 
> and set X to be
> 
> #!/bin/sh
> 
> if [ ! -e /etc/X11/xorg.conf ]; then
> 	X -configure
> fi
> exec /usr/X11R6/bin/Xsv
> 
> Software tools are good. Saves putting a million ugly special cases into
> applications 8)

I was hoping the special cases were already written :)

The generated xorg.conf file will need to be parsed and since this will be
done from a ramdisk with limited space and tools, it should become quite
fun :-/

-- 
Francois Tigeot



More information about the xorg mailing list