diff --git a/0001-xfree86-Prefer-fbdev-to-vesa.patch b/0001-xfree86-Prefer-fbdev-to-vesa.patch new file mode 100644 index 0000000..2b34dbb --- /dev/null +++ b/0001-xfree86-Prefer-fbdev-to-vesa.patch @@ -0,0 +1,62 @@ +From 3818d72812f895207a0e89d0d4ebaeca941f852a Mon Sep 17 00:00:00 2001 +From: Adam Jackson +Date: Mon, 18 Nov 2013 11:26:46 -0500 +Subject: [PATCH] xfree86: Prefer fbdev to vesa + +Signed-off-by: Adam Jackson +--- + hw/xfree86/common/xf86AutoConfig.c | 17 +++++++++-------- + hw/xfree86/common/xf86Config.c | 2 +- + 2 files changed, 10 insertions(+), 9 deletions(-) + +diff --git a/hw/xfree86/common/xf86AutoConfig.c b/hw/xfree86/common/xf86AutoConfig.c +index cc6dcce..4c5d1d5 100644 +--- a/hw/xfree86/common/xf86AutoConfig.c ++++ b/hw/xfree86/common/xf86AutoConfig.c +@@ -267,14 +267,6 @@ listPossibleVideoDrivers(char *matches[], int nmatches) + if (i < (nmatches - 1)) + i = xf86PciMatchDriver(matches, nmatches); + #endif +- /* Fallback to platform default hardware */ +- if (i < (nmatches - 1)) { +-#if defined(__i386__) || defined(__amd64__) || defined(__hurd__) +- matches[i++] = xnfstrdup("vesa"); +-#elif defined(__sparc__) && !defined(sun) +- matches[i++] = xnfstrdup("sunffb"); +-#endif +- } + + #if defined(__linux__) + matches[i++] = xnfstrdup("modesetting"); +@@ -296,6 +288,15 @@ listPossibleVideoDrivers(char *matches[], int nmatches) + #endif + } + #endif /* !sun */ ++ ++ /* Fallback to platform default hardware */ ++ if (i < (nmatches - 1)) { ++#if defined(__i386__) || defined(__amd64__) || defined(__hurd__) ++ matches[i++] = xnfstrdup("vesa"); ++#elif defined(__sparc__) && !defined(sun) ++ matches[i++] = xnfstrdup("sunffb"); ++#endif ++ } + } + + /* copy a screen section and enter the desired driver +diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c +index 8255d8d..66f98b2 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(char **drivers) + { +- static const char *fallback_hw[4] = { "vesa", "fbdev", "wsfb", NULL }; ++ static const char *fallback_hw[4] = { "fbdev", "vesa", "wsfb", NULL }; + #ifdef XORG_WAYLAND + static const char *fallback_wl[2] = { "wayland", NULL }; + #endif +-- +1.8.4.2 + diff --git a/xorg-x11-server.spec b/xorg-x11-server.spec index 9896262..8dfeac8 100644 --- a/xorg-x11-server.spec +++ b/xorg-x11-server.spec @@ -161,6 +161,9 @@ Patch9014: 0004-composite-Fix-COW-creation-for-Xinerama.patch Patch9015: 0005-fixes-Fix-PanoramiXSetPictureClipRegion-for-window-p.patch Patch9016: 0006-fixes-Fix-PanoramiXSetWindowShapeRegion.patch +# also also submitted, 1030454, 1030695 +Patch9050: 0001-xfree86-Prefer-fbdev-to-vesa.patch + %global moduledir %{_libdir}/xorg/modules %global drimoduledir %{_libdir}/dri %global sdkdir %{_includedir}/xorg @@ -656,9 +659,12 @@ rm -rf $RPM_BUILD_ROOT %{xserver_source_dir} %changelog -* Mon Nov 18 2013 Adam Jackson 1.14.99.902-1 +* Wed Nov 20 2013 Adam Jackson 1.14.99.902-1 - 1.15RC2 +* Mon Nov 18 2013 Adam Jackson 1.14.99.901-6 +- Prefer fbdev to vesa, fixes fallback path on UEFI + * Fri Nov 08 2013 Adam Jackson 1.14.99.901-5 - Restore XkbCopyDeviceKeymap for (older) tigervnc