From owner-freebsd-x11@freebsd.org Mon Jan 14 10:32:11 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 AE45B149B504 for ; Mon, 14 Jan 2019 10:32:11 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5A4ED829F4 for ; Mon, 14 Jan 2019 10:32:10 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-ot1-x332.google.com with SMTP id e12so18866018otl.5 for ; Mon, 14 Jan 2019 02:32:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=JR4B4qzXnRzMFlh3DJddsBhlfVSNCVzyQ/utM53rt7Y=; b=ovzarhFQZFjGlcZjDkUV49W5CHvQYmKMbbdLt75tUVIcBn3A6WPWIJ16WZznIjHHVJ ocefuv9KWcLoeH0lyGnGKPVmUA21KkFXWlHxtlGiptcdWhJe9lFriJ6CPBcCKplwfrju Vr6zBS27kULpL+s7eJ6nG+N06L76DO/53QHd8U9a+bLzCP9qQ6GnWtgJ1zwNurPPSgv6 w17YyUpXWkflQf5oy+YRlH4uFcTzW5SPYo+NEErizNH7BUEQB6SWen6YpQ4jSvqMzCgF lgmceo1yvWrD1+WENp5MtLUrP2KpXvkavTL22cQ2MnV8jAytTut9c7YBjekvJDTfuL/i bPlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=JR4B4qzXnRzMFlh3DJddsBhlfVSNCVzyQ/utM53rt7Y=; b=qqqtAF0m4f9v4Jb8/Msas0zJTgj9WOZxT6HDjszqy/e706K+dinbQH5If/LqOcPwmO QAEcZXWO1oAtwESOS2I/nqUDI3+02UTZ4RtxKH+4SkhaAKXjZTv0S7+PEfG4xE12s9r7 tagMDCr1BzyHyRbizBkvGi6d4tZLzw4nZsFJpKjaVsTF5sRsp9F7jBFFAAJ4D2igbk3G WCqrtiP2qi5oMQQ+o8Vm1PdujPpV2uhg2XpKSXp3ah1sn9yCK/RHL1FImEyTuXBHGU6I l3VDi9C8jyp3UnWvZPnaSzIRig8SSU2hDLwxLmk2EJzkdImeumEqVepsOGFPtx/TyKNj esYw== X-Gm-Message-State: AJcUukdw15nKS7YX4wOPu2VcBQvG3aA34JGcXWH2zW29I+yCZMeVajBf hEEntVJCApNua+WiGp0JnHAam615 X-Google-Smtp-Source: ALg8bN5fXlIoQeXJTSiveV5/escEc3BbysXDf/u236NDe8Jf67UyueWmuZ8rBCC8oz4H+FyTTSe8mg== X-Received: by 2002:a9d:39e5:: with SMTP id y92mr16958447otb.233.1547461929201; Mon, 14 Jan 2019 02:32:09 -0800 (PST) Received: from [192.168.1.33] ([81.174.250.12]) by smtp.gmail.com with ESMTPSA id a21sm16830otr.3.2019.01.14.02.32.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 02:32:08 -0800 (PST) Subject: Re: Intel modesetting and tearing To: Greg V Cc: Christian Weisgerber , freebsd-x11@freebsd.org References: <1547145358.4829.0@smtp.migadu.com> <1547151442.4829.1@smtp.migadu.com> From: Johannes Lundberg Message-ID: <6b095427-5a8c-6313-80f5-9a7fcd3d18e0@gmail.com> Date: Mon, 14 Jan 2019 10:32:05 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <1547151442.4829.1@smtp.migadu.com> Content-Language: en-US X-Rspamd-Queue-Id: 5A4ED829F4 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ovzarhFQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of johalun0@gmail.com designates 2607:f8b0:4864:20::332 as permitted sender) smtp.mailfrom=johalun0@gmail.com X-Spamd-Result: default: False [-6.75 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.97)[-0.970,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.77)[ip: (-9.74), ipnet: 2607:f8b0::/32(-2.30), asn: 15169(-1.76), country: US(-0.08)] Content-Type: text/plain; charset=iso-8859-13; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Mon, 14 Jan 2019 10:32:11 -0000 On 1/10/19 8:17 PM, Greg V wrote: > > > On Thu, Jan 10, 2019 at 9:40 PM, Johannes Lundberg > wrote: >> >> >> 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˙s less noticeable on smaller screens but on >> 4K@60Hz it˙s quite severe and no Compton settings help. I tried them >> all. Or maybe you mean Compton in combination GL in Firefox? > > Yeah, I *always* used GL in Firefox. > > Still no luck... When running glxgears, scrolling in FF, watching videos (mpv with vaapi), etc, I can clearly see a "tear line" something like ascii pic below. For normal video playback or FF scrolling it's visible in 4K but not (or barely) 1080p. For tear test video playback, it's visible even in 1080p. +-------------------------+ |----- | | \ | | \ | | -----------------| | | | | | | +-------------------------+