From owner-freebsd-x11@freebsd.org Thu Jan 10 18:36:12 2019 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E0B11494C41 for ; Thu, 10 Jan 2019 18:36:12 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out.migadu.com (out.migadu.com [91.121.223.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.migadu.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BDDCB8FF70 for ; Thu, 10 Jan 2019 18:36:06 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: (Migadu outbound); Thu, 10 Jan 2019 18:35:58 +0000 Received: from [192.168.1.141] ([62.122.208.146]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id A42AE51A-7764-4599-BC98-77CCFFDC0A79.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Thu, 10 Jan 2019 18:35:58 +0000 Date: Thu, 10 Jan 2019 21:35:58 +0300 From: Greg V Subject: Re: Intel modesetting and tearing To: Johannes Lundberg Cc: Christian Weisgerber , freebsd-x11@freebsd.org Message-Id: <1547145358.4829.0@smtp.migadu.com> In-Reply-To: References: X-Mailer: geary/lite-gnome~g3766af013824-dirty MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed DKIM-Signature: v=1; a=rsa-sha256; bh=jFMjA1pz3MHwYoM8Lm5dhJHhVM1dmM542YJ/M48navM=; c=relaxed/simple; d=unrelenting.technology; h=from:subject:date:to; s=default; b=gvoS1tC14Vve0lPiHNw12JLYWzeIedGt5BrvNgMawBiO6W5I+qX+bG4GBOrRTyhXde6shIxqBF+dUkR8/SmAB7wGeBLts84OyMNbtedoQQeH7pqt4FPc8eOEo1jBi2juG9WLR+h0Hb2nSbcxVz+aab2OHtJZAd/Im/ElK3OqOGc= X-Rspamd-Queue-Id: BDDCB8FF70 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unrelenting.technology header.s=default header.b=gvoS1tC1; dmarc=pass (policy=none) header.from=unrelenting.technology; spf=pass (mx1.freebsd.org: domain of greg@unrelenting.technology designates 91.121.223.63 as permitted sender) smtp.mailfrom=greg@unrelenting.technology X-Spamd-Result: default: False [-6.73 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[unrelenting.technology:s=default]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:91.121.223.63]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.96)[-0.964,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[unrelenting.technology:+]; DMARC_POLICY_ALLOW(-0.50)[unrelenting.technology,none]; MX_GOOD(-0.01)[aspmx1.migadu.com,aspmx2.migadu.com]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.75)[ip: (-9.88), ipnet: 91.121.0.0/16(-4.36), asn: 16276(0.50), country: FR(-0.02)]; ASN(0.00)[asn:16276, ipnet:91.121.0.0/16, country:FR]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2019 18:36:12 -0000 On Thu, Jan 10, 2019 at 9:22 PM, Johannes Lundberg wrote: > On Thu, Jan 10, 2019 at 16:03 Christian Weisgerber > > > wrote: > >> I recently switched from an obsolescent Radeon card to the built-in >> Intel HD Graphics P4600 with i915kms.ko and the modesetting driver. >> That works fine, but there is very noticeable tearing whenever >> something moves on-screen. If you google for it, you'll find plenty >> of complaints on Linux, so this is not a FreeBSD issue. >> >> For MPlayer, replacing the default Xvideo with GL video output (-vo >> gl) >> eliminates tearing. >> >> And as I found out just today and quite by accident, in Firefox >> toggling layers.acceleration.force-enabled to true will also >> eliminate >> all tearing, whether from soft-scrolling or when playing YouTube >> videos. Hallelujah! > > > Woot?! You mean I can use modesetting AND have tearfree Firefox? > Thanks for > the tip!! I will use this until I switch i3 -> Sway. When I still used X on my Intel laptop (of course with the modesetting DDX), I don't think GL acceleration of Firefox helped with tearing. (I always used GL accelerated Firefox anyway.) The solution was fiddling with compton flags, IIRC '--backend glx --vsync opengl-swc' was enough for the Intel GPU