more about xorg.
xorg makes decision about what driver to load
based on doing a scan of the pci bus.
goal: write a script that calls scanpci
parses the vendor and device tags
if it find a recognized combination
it then creates an xorg.conf file if
it fails to do so the scrip should
say create vesa mode xorg.conf or even
just die and not exec xorg.
if (vendor and device)
make /etc/xorg.conf
else
make vesa based /etc/xorg.conf
exec startx
this would be under a specific user that
is not root!
this same user would have to have correct
dot files:
.xinitrc
.xserverrc
the .xinitrc is where the fun would begin!
parse the output of scanpci would be easy.
but i would need to understand the structure
of the /etc/xorg.conf file well enough to
add/replace the sections to say. what drive
to start and what modeline.
what are the sections of xorg.conf file:
1) Files
2) ServerFlags
3) InputDevices
4) Monitor
5) Modes
6) Device
7) Screen
8) ServerLayout
Files would be the fonts and drivers, i am guessing
but the locations would be fixed this is not
Server Flags i dont know what these would need to be.
Input Devices again this would be fixed and would stay
fixed this distro would run for one type of machine.
the idea would be this there wold a xorg.conf for
a type box in production lets say all the boxen
where of type foo-nvidia-psaux-2005.txt
that is a foo box with all the same kind of nvidia driver
all using psaux as the mouse device that were in production
in 2005 or some other unique identifer. but for testing
there was somethig like foo-vmware-psaxu-2005.txt this would
be a config for vmware so testing could be done on vmware
or qemu or uml. something like that. there would be little
or no shell script it would be
if vendor == someid and device == someide then
cp foo-nvidia-psaux-2005.txt /etc/xorg.conf
the distory
would have all the files
Thursday, June 02, 2005
Subscribe to:
Posts (Atom)