From dd080e7fda2be54e2bcec3814473f90b326cb256 Mon Sep 17 00:00:00 2001 From: Ian Eure Date: Fri, 27 Mar 2026 20:49:08 -0700 Subject: gnu: xorg-server: Apply tearfree patch for modesetting driver. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Much of the modern Linux video stack depends on using kernel modesetting (KMS) drivers. Because of this, not much effort has been put into the legacy stuff, which have grown less supported and more buggy. Unfortunately, the modesetting Xorg driver didn’t initially have support for tear-free video (which most legacy drivers did), requiring additional software -- a compositor -- to fix this. Sadly, there’s no good option for a compositor -- they all require hardware-specific tweaking and tuning, and tend to be quite buggy. Support for a "TearFree" option merged in 2022[1], but there hasn’t been an Xorg release since it was merged. This PR applies the patch from that MR to the last release. It required a one-character edit to apply cleanly, necesitating inclusion in the Guix repo. I tested this on bare metal and it appears to work well. [1]: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1006 * gnu/local.mk (dist_patch_DATA): Add patch. * gnu/packages/patches/xorg-server-tearfree-modesetting.patch: New file. * gnu/packages/xorg.scm (xorg-server): Apply modesetting tearfree patch. Change-Id: I60a705b35cb51bfd7de79aba406bc4b7b3934e48 --- gnu/local.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'gnu/local.mk') diff --git a/gnu/local.mk b/gnu/local.mk index fc3bb46bc95..d4019b94f1f 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -2606,6 +2606,7 @@ dist_patch_DATA = \ %D%/packages/patches/xiphos-glib.patch \ %D%/packages/patches/xlispstat-fix-compilation-with-modern-gcc.patch \ %D%/packages/patches/xmonad-dynamic-linking.patch \ + %D%/packages/patches/xorg-server-tearfree-modesetting.patch \ %D%/packages/patches/xplanet-1.3.1-cxx11-eof.patch \ %D%/packages/patches/xplanet-1.3.1-libdisplay_DisplayOutput.cpp.patch \ %D%/packages/patches/xplanet-1.3.1-libimage_gif.c.patch \ -- cgit v1.3