[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Xorg tearing fix on Intel HD Graphics 4000
From: |
Mark H Weaver |
Subject: |
Re: Xorg tearing fix on Intel HD Graphics 4000 |
Date: |
Sun, 25 Jun 2017 07:08:30 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hi Chris,
Chris Marusich <address@hidden> writes:
> Mark H Weaver <address@hidden> writes:
>
>> However, your proposed workaround is not a proper fix, and I don't think
>> we should apply it system-wide in Guix.
>
> Can you elaborate on why it is not a proper fix? It isn't obvious to
> me.
You're right, it's not obvious, and an explanation is indeed warranted.
The problem is that the Device section added by this patch specifies
that the "intel" driver should be used. I haven't tested it, but the
way xorg.conf generally works is that explicit configuration overrides
auto-configuration. Quoting from the introduction of xorg.conf(5):
Xorg supports several mechanisms for supplying/obtaining configuration
and run-time parameters: command line options, environment variables,
the xorg.conf configuration file, auto-detection, and fallback
defaults. When the same information is supplied in more than one way,
the highest precedence mechanism is used. The list of mechanisms is
ordered from highest precedence to lowest.
https://www.x.org/archive/X11R6.8.1/doc/xorg.conf.5.html#sect1
If we want to make UXA the default acceleration method for
xf86-video-intel, I've attached a patch that accomplishes this without
overriding auto-configuration. Given the severity of the problems on
the X200, I would be in favor of applying this patch to master. The
X200 is an important system for us because it is one of only two
RYF-certified laptops.
FWIW, I do not notice any visually apparent difference in performance
between UXA and SNA on the X200 for things like web browsing, watching
videos, and running gnome-shell. Nonetheless, I've seen reports that
SNA performs significantly better than UXA, at least on newer Intel
chips:
http://cynic.cc/blog/posts/sna_acceleration_vs_uxa/
https://ickle.wordpress.com/2013/10/02/and-over-in-the-red-corner/
https://www.reddit.com/r/archlinux/comments/17sy9l/intel_graphics_uxa_vs_sna/
I would invite someone who cares about this to enhance
'xorg-configuration-file' in (gnu services xorg) to allow users to
optionally specify which accel-method to use for each driver.
Mark
>From 745487d79dca402609200f67431ac19eaa99a4eb Mon Sep 17 00:00:00 2001
From: Mark H Weaver <address@hidden>
Date: Sun, 25 Jun 2017 05:20:36 -0400
Subject: [PATCH] gnu: xf86-video-intel: Use UXA accel method by default.
* gnu/packages/xorg.scm (xf86-video-intel)[arguments]: Add #:configure-flags
with "--with-default-accel=uxa".
---
gnu/packages/xorg.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index d4da5d709..c6d194622 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2014 Andreas Enge <address@hidden>
-;;; Copyright © 2014, 2015 Mark H Weaver <address@hidden>
+;;; Copyright © 2014, 2015, 2017 Mark H Weaver <address@hidden>
;;; Copyright © 2014, 2015 Eric Bavier <address@hidden>
;;; Copyright © 2015, 2016, 2017 Ludovic Courtès <address@hidden>
;;; Copyright © 2015 Eric Dvorsak <address@hidden>
@@ -2849,7 +2849,8 @@ X server.")
(string-prefix? "x86_64-" system)))
%supported-systems))
(arguments
- '(#:phases (modify-phases %standard-phases
+ '(#:configure-flags '("--with-default-accel=uxa")
+ #:phases (modify-phases %standard-phases
(add-after 'unpack 'bootstrap
(lambda _
(zero? (system* "autoreconf" "-vfi")))))))
--
2.13.1
- Re: Xorg tearing fix on Intel HD Graphics 4000, (continued)
- Re: Xorg tearing fix on Intel HD Graphics 4000, Kei Kebreau, 2017/06/21
- Re: Xorg tearing fix on Intel HD Graphics 4000, Mark H Weaver, 2017/06/21
- Re: Xorg tearing fix on Intel HD Graphics 4000, Roel Janssen, 2017/06/21
- Re: Xorg tearing fix on Intel HD Graphics 4000, William, 2017/06/21
- Re: Xorg tearing fix on Intel HD Graphics 4000, Marius Bakke, 2017/06/25
- Re: Xorg tearing fix on Intel HD Graphics 4000, Roel Janssen, 2017/06/25
- Re: Xorg tearing fix on Intel HD Graphics 4000, Marius Bakke, 2017/06/25
- Re: Xorg tearing fix on Intel HD Graphics 4000, Chris Marusich, 2017/06/25
- Re: Xorg tearing fix on Intel HD Graphics 4000, Roel Janssen, 2017/06/25
- Re: Xorg tearing fix on Intel HD Graphics 4000, Mark H Weaver, 2017/06/25
- Re: Xorg tearing fix on Intel HD Graphics 4000,
Mark H Weaver <=
- Re: Xorg tearing fix on Intel HD Graphics 4000, Chris Marusich, 2017/06/25
- Re: Xorg tearing fix on Intel HD Graphics 4000, Roel Janssen, 2017/06/25
Re: Xorg tearing fix on Intel HD Graphics 4000, Christopher Baines, 2017/06/23
Re: Xorg tearing fix on Intel HD Graphics 4000, Andy Wingo, 2017/06/26