[PATCH 180/180] Look for $PREFIX/etc/X11/xorg.conf before /etc/X11/xorg.conf

Bill Spitzak spitzak at gmail.com
Mon Aug 27 12:50:04 PDT 2012


Scott Moreau wrote:

> For what it's worth, xwayland has always found my xorg.conf 
> automatically in $prefix/etc/X11/ where prefix is a nonstandard path.

That does not work if there is a file in /etc/X11/xorg.conf. It will 
find that one first, that is pretty obvious from the code and my 
testing. It is possible the "%F" line, if moved earlier, would do the 
correct thing, rather than my addition of a "%P" line.

> I'm not really sure why you need a 'global' xorg.conf if you're using 
> open drivers to begin with.

I am using the nvidia driver as wayland works *MUCH* better on it. Yes 
it is slow, but at least it got rid of that xcb slowness bug I have been 
writing about before. Also all the other software is back to normal 
speed with this.

Besides I was certainly never able to get the noeveau driver to work 
without an xorg.conf file. It would find some fallback frame buffer 
driver in that case.

So I certainly see no way for anybody to test xwayland under 
x11-compositor unless something is done. Possibilities:

1. The above patch
2. Make weston pass --config xxxx to xorg
3. Make xorg read a differently-named file when using the wayland backend

It might also help if whatever problem prevents automatic loading of the 
wlshm driver was fixed, so a blank config file might work.


More information about the wayland-devel mailing list