[PATCH] xfree86: Add "modesetting" to list of fallback drivers

Søren Sandmann sandmann at cs.au.dk
Thu May 29 12:21:48 PDT 2014

From: Søren Sandmann <ssp at redhat.com>

To make X -configure work properly, the output of fixup_video_driver_list()
should be in order of preference. Otherwise, the config file may use
the incorrect driver for some devices.

In particular, the drivers that work for all (or many) devices need to be
last in the list. Since the modesetting driver works for many devices,
it needs to be considered a fallback driver.

Signed-off-by: Søren Sandmann <ssp at redhat.com>
 hw/xfree86/common/xf86Config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
index 2adef44..32608a5 100644
--- a/hw/xfree86/common/xf86Config.c
+++ b/hw/xfree86/common/xf86Config.c
@@ -519,7 +519,7 @@ xf86InputDriverlistFromConfig(void)
 static void
 fixup_video_driver_list(const char **drivers)
-    static const char *fallback[4] = { "fbdev", "vesa", "wsfb", NULL };
+    static const char *fallback[5] = { "fbdev", "vesa", "wsfb", "modesetting", NULL };
     const char **end, **drv;
     const char *x;
     int i;

More information about the xorg-devel mailing list