From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roel Janssen Subject: Xorg tearing fix on Intel HD Graphics 4000 Date: Wed, 21 Jun 2017 09:55:46 +0200 Message-ID: <877f053hc7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNaUZ-00059H-Iv for guix-devel@gnu.org; Wed, 21 Jun 2017 03:56:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNaUV-0004tZ-Mr for guix-devel@gnu.org; Wed, 21 Jun 2017 03:55:59 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNaUV-0004tP-IY for guix-devel@gnu.org; Wed, 21 Jun 2017 03:55:55 -0400 Received: from ip112-245-209-87.adsl2.static.versatel.nl ([87.209.245.112]:59068 helo=antelope) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dNaUS-0006T7-RO for guix-devel@gnu.org; Wed, 21 Jun 2017 03:55:53 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel --=-=-= Content-Type: text/plain Dear Guix, For a long time now, I have a tearing issue on GuixSD (parts of the screen do not get updated while others do, resulting in dissapearing text in Emacs). With the following patch to the Xorg configuration file, I have a tear-free GuixSD experience. I wonder if this is upstreameable in some way. This patch is probably too broad in effect. Can I change it so that only the graphics card I have will be affected by this patch? Kind regards, Roel Janssen --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-services-xorg-Fix-tearing-issue.patch >From 25b431d23071b325b50c584977fcd6c1f9d790af Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Wed, 21 Jun 2017 09:44:46 +0200 Subject: [PATCH] gnu: services: xorg: Fix tearing issue. * gnu/services/xorg.scm (xorg-configuration-file): Fix tearing issue. --- gnu/services/xorg.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index 5bae8c18e..97f92ab53 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -133,6 +133,13 @@ EndSection Section \"ServerFlags\" Option \"AllowMouseOpenFail\" \"on\" EndSection + +Section \"Device\" + Identifier \"Intel Graphics\" + Driver \"intel\" + Option \"AccelMethod\" \"uxa\" #sna + Option \"DRI\" \"2\" +EndSection " (string-join (map device-section drivers) "\n") "\n" (string-join (map (cut screen-section <> resolutions) -- 2.13.1 --=-=-=--