Bug 6915

Summary: xorg.conf search path
Product: xorg Reporter: optiluca
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED NOTABUG QA Contact:
Severity: minor    
Priority: high    
Version: 7.0.0   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description optiluca 2006-05-14 19:56:01 UTC
xorg.conf is looked for in / before /etc/X11/xorg.conf...

Don't think it's supposed to happen
Comment 1 Adam Jackson 2006-05-16 04:00:51 UTC
that's certainly the documented behaviour when the server is started as root. 
see the xorg.conf man page for details.
Comment 2 Phil Richards 2006-06-06 21:39:48 UTC
Well, from my xorg.conf man page, I have to disagree with you.

       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


The current xorg-server (1.1.0) is also looking in $HOME (for root) before
/etc/X11/xorg.conf, which is - according to the manpage - wrong.

Phil
Comment 3 Michel Dänzer 2006-06-06 23:33:50 UTC
Maybe it's the

$XORGCONFIG

case, if the X server's current directory is / ?
Comment 4 Alan Coopersmith 2006-06-07 07:32:43 UTC
Go back and read carefully the list you pasted in:

           /usr/etc/X11/$XORGCONFIG
 >>>>>     $HOME/xorg.conf
           /etc/X11/xorg.conf-4
           /etc/X11/xorg.conf

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.