From owner-freebsd-x11@freebsd.org Thu Jan 10 18:40:44 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 0B1D51494D43 for ; Thu, 10 Jan 2019 18:40:44 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 14E17680C6 for ; Thu, 10 Jan 2019 18:40:43 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wm1-x32c.google.com with SMTP id y185so314204wmd.1 for ; Thu, 10 Jan 2019 10:40:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OXnjKSTOMOC//VQ1IGoJeOB+YAqkjxMNhv3obNwYyWQ=; b=SwFIuSZfZb5JMCzF3odG5YYdDr9HQ1wmxKCow1aDfMqNGk/oSpxe4I7K/P9xskIf7G Kiu4KIWQtDCwl02ZHBOueiZrVHVAw5sMTnX4rdO1+l/vgBjSBjhdp0fCNH07nxTlLFUt 0S/+kWzn4yGZ3W5Gxk7lezDFxt3VvArVmyINVh66ssfZw96Vm+KJcelQS4baA6ftwxiE ubXGsHTYWfjwSW5oyiY41/m1QDENLcokxbtqc8u+aGTv17AefOgfQeAH34novq60Dk8h WLXisE6ZoMqR1zNkJm4d80A6DVJpIswP2Vh36s4wwdhYbpO4ovpTtgPJHR0aYvmG2Dkt kuVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OXnjKSTOMOC//VQ1IGoJeOB+YAqkjxMNhv3obNwYyWQ=; b=dr/DO5+QnGHhaDOA/AaTh5nW8PbXhx63+X9lFud23NC1d74CjTmkV7NXNOVqeLIyJb u3dqZVkgUT4QqVSOxYPEoweH6gBVAu3SmVHSvf0p4zMBKzAQt3Vf1IhBLE285Ti0mvUf nzqETJF31MhIGJ81h2KXBG/pUv/6GzNbcBD7EgNkKe0trna0SHf2wFVp3pNTShhu5g2S hSqq+1UFN51ab7WRtTbzPNr3zJY7g3NohDnpEfwU758L1IHhg5y9CDnKHE/r8hzeUCuk y0rFiVdV3w7XQ6vypabO6Cm8eE44AOybzR6H/7/6IMuGFj6R5cBLvl0fteFn/0nraYr6 kN6A== X-Gm-Message-State: AJcUukd542iklopc2v7bOCJkNL22VhmC6dcT70UhB9lgyQTEXdsWIdfy SKUvNOwbKmKnrIo4sas7KiNDdOKOpjjRBJfiv4Z1WQ== X-Google-Smtp-Source: ALg8bN6RWY4YXv3tUcOWUFCcPIm7SHgEZ1CeZpVBy1HzDLl8g1gGVqmtI0CoIf2sH1jBH+szSfPgr1S10RWvuxDL6o4= X-Received: by 2002:a1c:1902:: with SMTP id 2mr40944wmz.150.1547145641889; Thu, 10 Jan 2019 10:40:41 -0800 (PST) MIME-Version: 1.0 References: <1547145358.4829.0@smtp.migadu.com> In-Reply-To: <1547145358.4829.0@smtp.migadu.com> From: Johannes Lundberg Date: Thu, 10 Jan 2019 18:40:31 +0000 Message-ID: Subject: Re: Intel modesetting and tearing To: Greg V Cc: Christian Weisgerber , freebsd-x11@freebsd.org X-Rspamd-Queue-Id: 14E17680C6 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=SwFIuSZf; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of johalun0@gmail.com designates 2a00:1450:4864:20::32c as permitted sender) smtp.mailfrom=johalun0@gmail.com X-Spamd-Result: default: False [-6.62 / 15.00]; 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]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[c.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_SHORT(-0.93)[-0.927,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-2.69)[ip: (-9.66), ipnet: 2a00:1450::/32(-1.96), asn: 15169(-1.73), country: US(-0.08)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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: Thu, 10 Jan 2019 18:40:44 -0000 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 4K@= 60Hz it=E2=80=99s quite severe and no Compton settings help. I tried them all. O= r maybe you mean Compton in combination GL in Firefox? > > >