|
发表于 2006-8-3 23:06:37
|
显示全部楼层
可以在系统提供两个xorg.conf
一个在/etc/X11/xorg.conf
另一个在
/usr/lib/X11/xorg.conf
提供相对比较安全的配置。
当第一个有问题时只要
rm /etc/X11/xorg.conf
或者
mv /etc/X11/xorg.conf "/etc/X11/xorg.conf.backup-`date`"
就能进X
----------------------------------------------------------------------------------------------------
Xorg uses a configuration file called xorg.conf for its initial setup. This configuration file is searched for in the
following places when the server is started as a normal user:
/etc/X11/<cmdline>
/usr/etc/X11/<cmdline>
/etc/X11/$XORGCONFIG
/usr/etc/X11/$XORGCONFIG
/etc/X11/xorg.conf-4
/etc/X11/xorg.conf
/etc/xorg.conf
/usr/etc/X11/xorg.conf.<hostname>
/usr/etc/X11/xorg.conf-4
/usr/etc/X11/xorg.conf
/usr/lib/X11/xorg.conf.<hostname>
/usr/lib/X11/xorg.conf-4
/usr/lib/X11/xorg.conf
where <cmdline> is a relative path (with no ".." components) specified with the -config command line option, $XORGCON-
FIG is the relative path (with no ".." components) specified by that environment variable, and <hostname> is the
machine's hostname as reported by gethostname(3).
When the Xorg server is started by the "root" user, the config file search locations are as follows:
<cmdline>
/etc/X11/<cmdline>
/usr/etc/X11/<cmdline>
$XORGCONFIG
/etc/X11/$XORGCONFIG
/usr/etc/X11/$XORGCONFIG
$HOME/xorg.conf
/etc/X11/xorg.conf-4
/etc/X11/xorg.conf
/etc/xorg.conf
/usr/etc/X11/xorg.conf.<hostname>
/usr/etc/X11/xorg.conf-4
/usr/etc/X11/xorg.conf
/usr/lib/X11/xorg.conf.<hostname>
/usr/lib/X11/xorg.conf-4
/usr/lib/X11/xorg.conf
where <cmdline> is the path specified with the -config command line option (which may be absolute or relative),
$XORGCONFIG is the path specified by that environment variable (absolute or relative), $HOME is the path specified by
that environment variable (usually the home directory), and <hostname> is the machine's hostname as reported by geth-
ostname(3). |
|