From owner-freebsd-x11@freebsd.org Tue Jan 15 21:30:07 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 4B66B14976E1 for ; Tue, 15 Jan 2019 21:30:07 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E67A973AB5; Tue, 15 Jan 2019 21:30:06 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id D78D510815; Tue, 15 Jan 2019 21:30:06 +0000 (UTC) From: Jan Beich To: Johannes Lundberg Cc: Greg V , freebsd-x11@freebsd.org, Christian Weisgerber Subject: Re: Intel modesetting and tearing References: <1547145358.4829.0@smtp.migadu.com> Date: Tue, 15 Jan 2019 22:29:52 +0100 In-Reply-To: (Johannes Lundberg's message of "Thu, 10 Jan 2019 18:40:31 +0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: E67A973AB5 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.94 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_LONG(-0.99)[-0.994,0]; NEURAL_HAM_SHORT(-0.95)[-0.950,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US] 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: Tue, 15 Jan 2019 21:30:07 -0000 Johannes Lundberg writes: > On Thu, Jan 10, 2019 at 18:35 Greg V wrote: > >> >> >> 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 > > > What resolution? It=E2=80=99s less noticeable on smaller screens but on 4= K@60Hz > it=E2=80=99s quite severe and no Compton settings help. I tried them all.= Or maybe > you mean Compton in combination GL in Firefox? Tearing probably depends on hardware. On my 4K@60Hz display (LG 27MU67-B connected to mainboard over DisplayPort 1.2) it isn't as severe, so I'm using compton *without* --vsync[1]. However, before drm-v4.9 at some point I had unfixable tearing due to what appeared broken VSync. -- [1] My config https://github.com/FreeBSDDesktop/kms-drm/issues/32