RFC: xconfig init script

Clifford Wolf <[email protected]>
Newsgroups gmane.linux.distributions.rock.devel
Message-ID <[email protected]>
Hi,

a big issue for livecds as well as for 'user-friedly' distributions is
hardware detection for x11. I was thinking about providing a nice solution
which could easily used for such systems. here is my proposal:

We add a 'xconfig' init script to the xorg package which is disabled by
default. This script first checks if one of the following condidions is
true:

	- the /etc/X11/xorg.conf file is identical to
	  /etc/X11/xorg.conf.example

	- the /etc/X11/xorg.conf file is missing

	- the /etc/X11/xorg.conf file is auto-generated by 'xconfig'

the script fails if none of this checks matches. otherwise it tries to
auto-detect the hardware and creates the xorg config (using 'Xorg
-configure' and other hacks) and loads the 'drm' modules.

The check if /etc/X11/xorg.conf is done by checking for a special comment
in /etc/X11/xorg.conf. That comment also contains a checksum for the
file (excluding the comment itself). If the file has been modified, it
the auto-generated file will be named differently and the other steps
(such as loading kernel modules) are still performed. That way it is
possible for the user to modify the config (such as altering default
resolutions) without loosing the rest of the magic.

Targets sch as the livecd could enable that init script by default. crystal
could enable it in runlevel 5 (the runlevel which automatically starts up
xdm).

What do you think?

yours,
 - clifford

-- 
| Clifford Wolf /-----=[ www.clifford.at ]==[ Tel: +43-699-10063494 ]=-\
|--------------/ www.cngw.org - www.ccc.de =[ Fax: +43-2235-42788-4 ]=-|
|-=[ EDEN Creations -- www.edenevents.at ]==[ IRC: www.freenode.net ]=-|
\==[ www.rocklinux.org ]===[ www.rocklinux.net ]===[ www.linbit.com ]==/
 
To understand recursion, you must first understand recursion.

_______________________________________________
rock-devel mailing list
[email protected]
http://www.rocklinux.net/mailman/listinfo/rock-devel
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFCXsW8PNIEsfpKDdERAgggAKDYivLc4c8GW1EUOsTiBZY0w5yUYwCeIeAa
UEpk8En9MPJLRmbcSFovpqw=
=IvyN
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.