[ANNOUNCE] xorg-server 1.7.99.902

Stefan Dirsch sndirsch at suse.de
Mon Mar 22 08:24:54 PDT 2010


On Mon, Mar 22, 2010 at 07:59:18AM -0700, Dan Nicholson wrote:
> > No, once you have an empty xorg.conf you're lost, an empty xorg.conf.d
> > directory is still ok though.
> 
> That makes sense. There are two ways to handle this.
> 
> 1. Make the full autoconfig kick in when only xorg.conf is missing. I
> don't think this is ideal since you could have a perfectly valid
> configuration with only .conf files in xorg.conf.d. However, it might
> work as a stopgap. Below diff would make this happen (gmail will hose
> the formatting).
> 
> diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
> index 132e8bc..78eba05 100644
> --- a/hw/xfree86/common/xf86Config.c
> +++ b/hw/xfree86/common/xf86Config.c
> @@ -2480,7 +2480,7 @@ xf86HandleConfigFile(Bool autoconfig)
>                         "Unable to locate/open config directory: \"%s\"\n",
>                         xf86ConfigDir);
>         }
> -       if (!filename && !dirname)
> +       if (!filename)
>             return CONFIG_NOFILE;
>      }

Thanks, but that's not an option. We definitely want to make use of
xorg.conf.d. :-)

> 2. Make the handling of missing sections from an existing
> configuration behave more like the full autoconfig. In other words, if
> there's a missing Screen section, generate multiple Screen/Device
> pairs with fallbacks. I think this is the correct fix, but I'm not
> that familiar with the autoconfig code so I don't think I could whip
> up a patch that fast.

Thanks. For now one could generate Screen/Device/Serverlayout snippets in
xorg.conf.d depending on the available hardware, e.g. for ATI:

/etc/X11/xorg.conf.d/99-devices.conf
------------------------------------
Section "Device"
        Identifier      "Builtin Default fglrx Device 0"
        Driver  "fglrx"
EndSection
Section "Screen"
        Identifier      "Builtin Default fglrx Screen 0"
        Device  "Builtin Default fglrx Device 0"
EndSection
Section "Device"
        Identifier      "Builtin Default radeonhd Device 0"
        Driver  "radeonhd"
EndSection
Section "Screen"
        Identifier      "Builtin Default radeonhd Screen 0"
        Device  "Builtin Default radeonhd Device 0"
EndSection
Section "Device"
        Identifier      "Builtin Default ati Device 0"
        Driver  "ati"
EndSection
Section "Screen"
        Identifier      "Builtin Default ati Screen 0"
        Device  "Builtin Default ati Device 0"
EndSection
Section "Device"
        Identifier      "Builtin Default fbdev Device 0"
        Driver  "fbdev"
EndSection
Section "Screen"
        Identifier      "Builtin Default fbdev Screen 0"
        Device  "Builtin Default fbdev Device 0"
EndSection
Section "Device"
        Identifier      "Builtin Default vesa Device 0"
        Driver  "vesa"
EndSection
Section "Screen"
        Identifier      "Builtin Default vesa Screen 0"
        Device  "Builtin Default vesa Device 0"
EndSection
Section "ServerLayout"
        Identifier      "Builtin Default Layout"
        Screen  "Builtin Default fglrx Screen 0"
        Screen  "Builtin Default radeonhd Screen 0"
        Screen  "Builtin Default ati Screen 0"
        Screen  "Builtin Default fbdev Screen 0"
        Screen  "Builtin Default vesa Screen 0"
EndSection

Best regards,
Stefan

Public Key available
------------------------------------------------------
Stefan Dirsch (Res. & Dev.)   SUSE LINUX Products GmbH
Tel: 0911-740 53 0            Maxfeldstraße 5
FAX: 0911-740 53 479          D-90409 Nürnberg
http://www.suse.de            Germany 
-----------------------------------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
-----------------------------------------------------------------


More information about the xorg-devel mailing list