From owner-freebsd-x11@freebsd.org Thu Jan 10 20:17:31 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 7CD541497338 for ; Thu, 10 Jan 2019 20:17:31 +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 730C76C9F9 for ; Thu, 10 Jan 2019 20:17:30 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: (Migadu outbound); Thu, 10 Jan 2019 20:17:27 +0000 Received: from [192.168.1.141] ([62.122.208.146]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id 2B09CE52-970D-4B5B-A487-CE4A32D0A7E4.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Thu, 10 Jan 2019 20:17:27 +0000 Date: Thu, 10 Jan 2019 23:17:22 +0300 From: Greg V Subject: Re: Intel modesetting and tearing To: Johannes Lundberg Cc: Christian Weisgerber , freebsd-x11@freebsd.org Message-Id: <1547151442.4829.1@smtp.migadu.com> In-Reply-To: References: <1547145358.4829.0@smtp.migadu.com> X-Mailer: geary/lite-gnome~g3766af013824-dirty MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-13; format=flowed Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; bh=KRUgnv71L99jYghdbCsl3FcW92Y9NKMjYcDZI/Qzh0Y=; c=relaxed/simple; d=unrelenting.technology; h=from:subject:date:to; s=default; b=Sf27R1jHPBEWkMCEjedu+RonJVTGrHeTAtIZ0PESnyT216PCxEXaRV5EyeBdPgUL4hUD0v1ucEtUJihaust8B8NyVm4jn6Z09CFFbyTHgzm5dHzWnabM+vprd2Ssv8sIx68A87cRhe9gwnnuQBg7hHDrhoHPwv+606V8j/JBvWA= X-Rspamd-Queue-Id: 730C76C9F9 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unrelenting.technology header.s=default header.b=Sf27R1jH; 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.72 / 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)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[unrelenting.technology:+]; MX_GOOD(-0.01)[cached: aspmx1.migadu.com]; DMARC_POLICY_ALLOW(-0.50)[unrelenting.technology,none]; NEURAL_HAM_SHORT(-0.95)[-0.949,0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.76)[ip: (-9.88), ipnet: 91.121.0.0/16(-4.40), 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 20:17:31 -0000 On Thu, Jan 10, 2019 at 9:40 PM, Johannes Lundberg =20 wrote: >=20 >=20 > On Thu, Jan 10, 2019 at 18:35 Greg V =20 > wrote: >>=20 >>=20 >> On Thu, Jan 10, 2019 at 9:22 PM, Johannes Lundberg=20 >> > >> wrote: >> > On Thu, Jan 10, 2019 at 16:03 Christian Weisgerber >> > =20 >> >> >> > wrote: >> > >> >> I recently switched from an obsolescent Radeon card to the=20 >> built-in >> >> Intel HD Graphics P4600 with i915kms.ko and the modesetting=20 >> driver. >> >> That works fine, but there is very noticeable tearing whenever >> >> something moves on-screen. If you google for it, you'll find=20 >> plenty >> >> of complaints on Linux, so this is not a FreeBSD issue. >> >> >> >> For MPlayer, replacing the default Xvideo with GL video output=20 >> (-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. >>=20 >> When I still used X on my Intel laptop (of course with the=20 >> modesetting >> DDX), I don't think GL acceleration of Firefox helped with tearing.=20 >> (I >> always used GL accelerated Firefox anyway.) >>=20 >> The solution was fiddling with compton flags, IIRC '--backend glx >> --vsync opengl-swc' was enough for the Intel GPU >=20 > What resolution? It=FFs less noticeable on smaller screens but on=20 > 4K@60Hz it=FFs quite severe and no Compton settings help. I tried=20 > them all. Or maybe you mean Compton in combination GL in Firefox? Yeah, I *always* used GL in Firefox. =