Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

how to fix tearing of videos in browsers? SOLVED

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
MagicPoulp
Posts: 431
Joined: 2018-11-05 21:30

how to fix tearing of videos in browsers? SOLVED

#1 Post by MagicPoulp »

Edit: even chrome under the windows vm has tearing.

Inside a windows VM client, with kvm, videos look fine inside Chrome. Such as for Netflix videos.

But from the host with buister, there is tearing. I tried firefox-esr, chromium, google-chrome.

What can I do?

I run a very old version of enlightenment as desktop environment. And I run debian buster with kernel 5.7 from backports. I thought I would then build myself enlightenment for wayland but it was too time consuming.
Version: 0.22.4-2. Latest in buster, but very old after I investigated EFL and enlightenment.

I have the same problem if I boot using xfce. I just tried in Chrome and I had tearing. Not all the time but clearly I saw it. In Youtube videos.

I want to try gnome to see if wayland removes the problem or if I have a graphics card issue with nouveau. But I wait to see what you say first because gnome requires 355 new packages. And kde-plasma-desktop requires 429 packages.

I don't have an AMD or Nvidia card. I have intel integrated.

Code: Select all

lspci -v
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
	Subsystem: Dell 8th Gen Core Processor Host Bridge/DRAM Registers
	Flags: bus master, fast devsel, latency 0
	Capabilities: <access denied>
	Kernel driver in use: skl_uncore
	Kernel modules: ie31200_edac

00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Desktop) (prog-if 00 [VGA controller])
	Subsystem: Dell UHD Graphics 630 (Desktop)
	Flags: bus master, fast devsel, latency 0, IRQ 140
	Memory at 91000000 (64-bit, non-prefetchable) [size=16M]
	Memory at 80000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 4000 [size=64]
	[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: i915
	Kernel modules: i915

00:08.0 System peripheral: Intel Corporation Skylake Gaussian Mixture Model
	Subsystem: Dell Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model
	Flags: fast devsel, IRQ 255
	Memory at 92c40000 (64-bit, non-prefetchable) [disabled] [size=4K]
	Capabilities: <access denied>

Code: Select all

sudo apt-get install -s firmware-linux
firmware-linux is already the newest version (20190114-2).
Last edited by MagicPoulp on 2020-12-08 10:45, edited 3 times in total.

CwF
Global Moderator
Global Moderator
Posts: 2636
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: how to fix tearing of videos in browsers?

#2 Post by CwF »

MagicPoulp wrote:But from the host with buister, there is tearing. I tried firefox-esr, chromium, google-chrome.

What can I do?
Nothing except get a bigger cpu!
There is no gpu acceleration for debian's KVM, unless you add a video card!
Wait awhile, it's coming...

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: how to fix tearing of videos in browsers?

#3 Post by Head_on_a_Stick »

https://wiki.archlinux.org/index.php/In ... cs#Tearing

That configuration file needs the Intel DDX driver (xserver-xorg-video-intel).
deadbang

MagicPoulp
Posts: 431
Joined: 2018-11-05 21:30

Re: how to fix tearing of videos in browsers?

#4 Post by MagicPoulp »

Ok thanks. And sorry that I reopen I question I asked long before (but with an nvidia).

on debian 10 there is no file as they say /etc/X11/xorg.conf.d/20-intel.conf
sudo find /etc/X11/ | grep -i intel
returns empty

Actually chrome in a Windows VM also has slight tearing. Netflix videos are very compressed but I don't think it explains so much tearing.

Maybe do this?
https://wiki.debian.org/Xorg#What_if_I_ ... ig_file.3F



foudn some intel info:

man intel

Option "TearFree" "boolean"
Disable or enable TearFree updates. This option forces X to perform all rendering to a backbuffer prior to updating the actual
display. It requires an extra memory allocation the same size as a framebuffer, the occasional extra copy, and requires Damage
tracking. Thus enabling TearFree requires more memory and is slower (reduced throughput) and introduces a small amount of output
latency, but it should not impact input latency. However, the update to the screen is then performed synchronously with the ver‐
tical refresh of the display so that the entire update is completed before the display starts its refresh. That is only one
frame is ever visible, preventing an unsightly tear between two visible and differing frames. Note that this replicates what the
compositing manager should be doing, however TearFree will redirect the compositor updates (and those of fullscreen games) di‐
rectly on to the scanout thus incurring no additional overhead in the composited case. Also note that not all compositing man‐
agers prevent tearing, and if the outputs are rotated, there will still be tearing without TearFree enabled.

Default: TearFree is disabled.

MagicPoulp
Posts: 431
Joined: 2018-11-05 21:30

Re: how to fix tearing of videos in browsers?

#5 Post by MagicPoulp »

I have run Xorg -configure, there was a strange error PCI somethign and then I got a new file in my home folder.

I added the tearfree option in the config file xorg.conf.new in my home folder
by the way Driver "intel" was already present in the file.


Now I tried again after a reboot. I still have tearing in Chrome on Netflix videos. And the tearing is very strong.

So I have various potential sources of bugs:
Netflix videos could be bugged wit ha strange anti copy thing to activate in the browser.
THe X Server may be responsible.
Maybe my X config file is not active since I had an error when creating it.


What do you advise?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: how to fix tearing of videos in browsers?

#6 Post by Head_on_a_Stick »

MagicPoulp wrote:on debian 10 there is no file as they say /etc/X11/xorg.conf.d/20-intel.conf
Yes, that's right. Create the file yourself.
MagicPoulp wrote:I have run Xorg -configure
Don't use that, it's obsolete. The configuration file on the ArchWiki page to which I linked is all you need.
MagicPoulp wrote:I added the tearfree option in the config file xorg.conf.new in my home folder
Are you sure you put the option in the right place? I would recommend that you delete the configuration file created by the obsolete command and instead just use the file shown on the ArchWiki page.
MagicPoulp wrote:I still have tearing
Check the X.Org log to see if the TearFree option has actually been applied.

Also make sure that you're not using Wayland:

Code: Select all

echo $XDG_SESSION_TYPE
deadbang

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: how to fix tearing of videos in browsers?

#7 Post by stevepusser »

CwF wrote:
MagicPoulp wrote:But from the host with buister, there is tearing. I tried firefox-esr, chromium, google-chrome.

What can I do?
Nothing except get a bigger cpu!
There is no gpu acceleration for debian's KVM, unless you add a video card!
Wait awhile, it's coming...
Why does hardware accelerated decoding have anything to do with video tearing?

Enlightenment from upstream Debian is a fairly straightforward backport. You just have to backport the EFL libraries first, then build e17 against the new EFL -dev files. The latest efl and e17 packages I just built for MX 19 test were built in vanilla Buster chroots: http://mxrepo.com/mx/testrepo/pool/test/e/

The newer Enlightenment setting do have a setting for VSync, but I don't know if the older one does. Maybe you haven't found it yet, or it may do no good without the Tearfree option.
MX Linux packager and developer

MagicPoulp
Posts: 431
Joined: 2018-11-05 21:30

Re: how to fix tearing of videos in browsers?

#8 Post by MagicPoulp »

I tried again logging in as a single user using init=/bin/bash during boot time. then mount -o rw,remount /
then cd /etc/Xorg
Xorg -configure
it does not produce an error in the shell. But it ends saying the process terminated with 2 errors. I could copy the Xorg.0.log before rebooting
and then it puts a new file in / and not in my home folder.

I edited the file to look like this: (I just added the tearfree)

Code: Select all

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "AccelMethod"        	# <str>
        #Option     "Backlight"          	# <str>
        #Option     "CustomEDID"         	# <str>
        #Option     "DRI"                	# <str>
        #Option     "Present"            	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "VideoKey"           	# <i>
        #Option     "Tiling"             	# [<bool>]
        #Option     "LinearFramebuffer"  	# [<bool>]
        #Option     "HWRotation"         	# [<bool>]
        #Option     "VSync"              	# [<bool>]
        #Option     "PageFlip"           	# [<bool>]
        #Option     "SwapbuffersWait"    	# [<bool>]
        #Option     "TripleBuffer"       	# [<bool>]
        #Option     "XvPreferOverlay"    	# [<bool>]
        #Option     "HotPlug"            	# [<bool>]
        #Option     "ReprobeOutputs"     	# [<bool>]
        #Option     "XvMC"               	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "VirtualHeads"       	# <i>
        #Option     "TearFree"           	# [<bool>]
        #Option     "PerCrtcPixmaps"     	# [<bool>]
        #Option     "FallbackDebug"      	# [<bool>]
        #Option     "DebugFlushBatches"  	# [<bool>]
        #Option     "DebugFlushCaches"   	# [<bool>]
        #Option     "DebugWait"          	# [<bool>]
        #Option     "BufferCache"        	# [<bool>]
	Option      "TearFree"                  "True"
	Identifier  "Card0"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection
strangely
2>&1 > /home/myself/file
cannot catch the output in the console, like if a separate process produces it.

THe log only shows one error even if at the end it says it terminates with 2 errors.
Her is one: Does someone understand?

(EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory)
  • [ 64.393]
    X.Org X Server 1.20.4
    X Protocol Version 11, Revision 0
    [ 64.394] Build Operating System: Linux 4.19.0-10-amd64 x86_64 Debian
    [ 64.394] Current Operating System: Linux (none) 5.7.0-0.bpo.2-amd64 #1 SMP Debian 5.7.10-1~bpo10+1 (2020-07-30) x86_64
    [ 64.394] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.7.0-0.bpo.2-amd64 root=UUID=0e81aca3-cd41-421c-8c1b-f239d97396f3 ro quiet init=/bin/bash
    [ 64.394] Build Date: 27 August 2020 08:51:48AM
    [ 64.394] xorg-server 2:1.20.4-1+deb10u1 (https://www.debian.org/support)
    [ 64.394] Current version of pixman: 0.36.0
    [ 64.395] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 64.395] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 64.402] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Dec 2 09:16:35 2020
    [ 64.402] (II) Loader magic: 0x55f7fd33fe20
    [ 64.402] (II) Module ABI versions:
    [ 64.402] X.Org ANSI C Emulation: 0.4
    [ 64.402] X.Org Video Driver: 24.0
    [ 64.402] X.Org XInput driver : 24.1
    [ 64.402] X.Org Server Extension : 10.0
    [ 64.402] (EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory)
    [ 64.402] (--) using VT number 2

    [ 64.402] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
    [ 64.404] (II) xfree86: Adding drm device (/dev/dri/card0)
    [ 64.415] (--) PCI:*(0@0:2:0) 8086:3e92:1028:0860 rev 0, Mem @ 0x91000000/16777216, 0x80000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/131072
    [ 64.417] List of video drivers:
    [ 64.417] amdgpu
    [ 64.417] ati
    [ 64.417] intel
    [ 64.417] nouveau
    [ 64.417] qxl
    [ 64.417] radeon
    [ 64.417] vmware
    [ 64.417] modesetting
    [ 64.417] fbdev
    [ 64.417] vesa
    [ 64.417] (II) LoadModule: "amdgpu"
    [ 64.418] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
    [ 64.428] (II) Module amdgpu: vendor="X.Org Foundation"
    [ 64.428] compiled for 1.20.3, module version = 18.1.99
    [ 64.428] Module class: X.Org Video Driver
    [ 64.428] ABI class: X.Org Video Driver, version 24.0
    [ 64.428] (II) LoadModule: "ati"
    [ 64.428] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
    [ 64.429] (II) Module ati: vendor="X.Org Foundation"
    [ 64.429] compiled for 1.20.4, module version = 19.0.1
    [ 64.429] Module class: X.Org Video Driver
    [ 64.429] ABI class: X.Org Video Driver, version 24.0
    [ 64.429] (II) LoadModule: "intel"
    [ 64.429] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
    [ 64.432] (II) Module intel: vendor="X.Org Foundation"
    [ 64.432] compiled for 1.20.1, module version = 2.99.917
    [ 64.432] Module class: X.Org Video Driver
    [ 64.432] ABI class: X.Org Video Driver, version 24.0
    [ 64.432] (II) LoadModule: "nouveau"
    [ 64.432] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
    [ 64.433] (II) Module nouveau: vendor="X.Org Foundation"
    [ 64.434] compiled for 1.20.3, module version = 1.0.16
    [ 64.434] Module class: X.Org Video Driver
    [ 64.434] ABI class: X.Org Video Driver, version 24.0
    [ 64.434] (II) LoadModule: "qxl"
    [ 64.434] (II) Loading /usr/lib/xorg/modules/drivers/qxl_drv.so
    [ 64.436] (II) Module qxl: vendor="X.Org Foundation"
    [ 64.436] compiled for 1.20.0, module version = 0.1.5
    [ 64.436] Module class: X.Org Video Driver
    [ 64.436] ABI class: X.Org Video Driver, version 24.0
    [ 64.436] (II) LoadModule: "radeon"
    [ 64.436] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
    [ 64.439] (II) Module radeon: vendor="X.Org Foundation"
    [ 64.439] compiled for 1.20.4, module version = 19.0.1
    [ 64.439] Module class: X.Org Video Driver
    [ 64.439] ABI class: X.Org Video Driver, version 24.0
    [ 64.439] (II) LoadModule: "vmware"
    [ 64.439] (II) Loading /usr/lib/xorg/modules/drivers/vmware_drv.so
    [ 64.561] (II) Module vmware: vendor="X.Org Foundation"
    [ 64.561] compiled for 1.20.0, module version = 13.3.0
    [ 64.561] Module class: X.Org Video Driver
    [ 64.561] ABI class: X.Org Video Driver, version 24.0
    [ 64.561] (II) LoadModule: "modesetting"
    [ 64.561] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
    [ 64.562] (II) Module modesetting: vendor="X.Org Foundation"
    [ 64.562] compiled for 1.20.4, module version = 1.20.4
    [ 64.562] Module class: X.Org Video Driver
    [ 64.562] ABI class: X.Org Video Driver, version 24.0
    [ 64.562] (II) LoadModule: "fbdev"
    [ 64.562] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
    [ 64.562] (II) Module fbdev: vendor="X.Org Foundation"
    [ 64.562] compiled for 1.20.0, module version = 0.5.0
    [ 64.562] Module class: X.Org Video Driver
    [ 64.562] ABI class: X.Org Video Driver, version 24.0
    [ 64.562] (II) LoadModule: "vesa"
    [ 64.563] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
    [ 64.563] (II) Module vesa: vendor="X.Org Foundation"
    [ 64.563] compiled for 1.20.1, module version = 2.4.0
    [ 64.563] Module class: X.Org Video Driver
    [ 64.563] ABI class: X.Org Video Driver, version 24.0
    [ 64.563] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
    i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
    915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
    Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
    GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
    [ 64.564] (II) intel: Driver for Intel(R) HD Graphics
    [ 64.564] (II) intel: Driver for Intel(R) Iris(TM) Graphics
    [ 64.564] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
    [ 64.564] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
    [ 64.564] (II) FBDEV: driver for framebuffer: fbdev
    [ 64.564] (II) VESA: driver for VESA chipsets: vesa
    [ 64.656] (++) Using config file: "/xorg.conf.new"
    [ 64.656] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [ 64.658] (==) ServerLayout "X.org Configured"
    [ 64.658] (**) |-->Screen "Screen0" (0)
    [ 64.658] (**) | |-->Monitor "Monitor0"
    [ 64.659] (**) | |-->Device "Card0"
    [ 64.659] (**) |-->Input Device "Mouse0"
    [ 64.659] (**) |-->Input Device "Keyboard0"
    [ 64.659] (==) Automatically adding devices
    [ 64.659] (==) Automatically enabling devices
    [ 64.659] (==) Automatically adding GPU devices
    [ 64.659] (==) Max clients allowed: 256, resource mask: 0x1fffff
    [ 64.661] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
    [ 64.661] Entry deleted from font path.
    [ 64.665] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
    [ 64.665] Entry deleted from font path.
    [ 64.665] (**) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/100dpi/:unscaled,
    /usr/share/fonts/X11/75dpi/:unscaled,
    /usr/share/fonts/X11/Type1,
    /usr/share/fonts/X11/100dpi,
    /usr/share/fonts/X11/75dpi,
    built-ins,
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/100dpi/:unscaled,
    /usr/share/fonts/X11/75dpi/:unscaled,
    /usr/share/fonts/X11/Type1,
    /usr/share/fonts/X11/100dpi,
    /usr/share/fonts/X11/75dpi,
    built-ins
    [ 64.665] (**) ModulePath set to "/usr/lib/xorg/modules"
    [ 64.665] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
    [ 64.665] (WW) Disabling Mouse0
    [ 64.665] (WW) Disabling Keyboard0
    [ 64.667] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20200313
    [ 64.667] (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.917+git20180925-2 (Andreas Boll <aboll@debian.org>)
    [ 64.667] (II) intel(0): SNA compiled for use with valgrind
    [ 64.669]
    [ 64.669]
    Xorg detected your mouse at device /dev/input/mice.
    Please check your config if the mouse is still not
    operational, as by default Xorg tries to autodetect
    the protocol.
    [ 64.669]
    Your xorg.conf file is /xorg.conf.new

    [ 64.670] To test the server, run 'X -config /xorg.conf.new'

    [ 64.670] (EE) Server terminated with error (2). Closing log file.

it seems to me very strange that both the folder and the conf file miss on debian. Besides, the debian doc failed because i did not login as a single user I did not understand it.
Moreover, in the generated home folder file, the device was not the same as on the arch wiki. So it makes lots of uncertainties.

THen concerning enlightenement, even if I could build it for wayland, it does not seem stable. There must be lots of manual configs. WHen I talked to EFL guys on IRC, it gave me a bad impression.
I will probably install gnome when I want to install enlightenment.

I wonder why enlightment is not part of the debian installer any more... probably bvecause it is using old EFL version.

MagicPoulp
Posts: 431
Joined: 2018-11-05 21:30

Re: how to fix tearing of videos in browsers?

#9 Post by MagicPoulp »

I rebooted and the xorg log says that it uses
/usr/share/X11/xorg.conf.d/
it does not mention my /xorg.conf.new

/usr/share/X11/xorg.conf.d$ ls
10-amdgpu.conf 10-quirks.conf 10-radeon.conf 40-libinput.conf 70-wacom.conf

maybe I should do in that folder what the arch wiki says since head on a stick says the Xorg -configure is obsolete.

Should I just put the device thing or copy the whole xorg.conf.ne was an inte file /usr/share/X11/xorg.conf.d/20-intel.conf?
https://wiki.archlinux.org/index.php/In ... cs#Tearing
  • [ 24.151]
    X.Org X Server 1.20.4
    X Protocol Version 11, Revision 0
    [ 24.151] Build Operating System: Linux 4.19.0-10-amd64 x86_64 Debian
    [ 24.151] Current Operating System: Linux debian-thierry 5.7.0-0.bpo.2-amd64 #1 SMP Debian 5.7.10-1~bpo10+1 (2020-07-30) x86_64
    [ 24.151] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.7.0-0.bpo.2-amd64 root=UUID=0e81aca3-cd41-421c-8c1b-f239d97396f3 ro quiet
    [ 24.151] Build Date: 27 August 2020 08:51:48AM
    [ 24.151] xorg-server 2:1.20.4-1+deb10u1 (https://www.debian.org/support)
    [ 24.151] Current version of pixman: 0.36.0
    [ 24.151] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 24.151] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 24.152] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Dec 2 09:27:44 2020
    [ 24.156] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [ 24.157] (==) No Layout section. Using the first Screen section.
    [ 24.157] (==) No screen section available. Using defaults.
    [ 24.157] (**) |-->Screen "Default Screen Section" (0)
    [ 24.157] (**) | |-->Monitor "<default monitor>"
    [ 24.157] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
    [ 24.157] (==) Automatically adding devices
    [ 24.157] (==) Automatically enabling devices
    [ 24.157] (==) Automatically adding GPU devices
    [ 24.157] (==) Max clients allowed: 256, resource mask: 0x1fffff
    [ 24.159] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
    [ 24.159] Entry deleted from font path.
    [ 24.162] (==) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/100dpi/:unscaled,
    /usr/share/fonts/X11/75dpi/:unscaled,
    /usr/share/fonts/X11/Type1,
    /usr/share/fonts/X11/100dpi,
    /usr/share/fonts/X11/75dpi,
    built-ins
    [ 24.162] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 24.162] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.


    truncated too long but no (EE) error
Why does hardware accelerated decoding have anything to do with video tearing?
I do not use kvm when running chrome on the host.
And I am quite sure kvm with the redhat spice tools uses hardware acceleration (gpu).

Decoding films probably uses the GPU both for decoding and rendering. Then what intel says about Tear Free is relevant for that. But yes maybe not relevant for the decoding itself.

MagicPoulp
Posts: 431
Joined: 2018-11-05 21:30

Re: how to fix tearing of videos in browsers?

#10 Post by MagicPoulp »

If the debian Xorg -confgure command is deprecated why is the the only wat for me to generate a template file and why isn't the debian doc updated?
https://wiki.debian.org/Xorg#What_if_I_ ... ig_file.3F
Last edited by MagicPoulp on 2020-12-02 11:52, edited 1 time in total.

MagicPoulp
Posts: 431
Joined: 2018-11-05 21:30

Re: how to fix tearing of videos in browsers?

#11 Post by MagicPoulp »

EDIT: the tearing inside google-chrome disappeared totally. Thanks.

the debian doc answered part of my question, even if said obsolete

https://wiki.debian.org/Xorg
"Anyway, probably, this is unnecessary. Per this comment and this advice, it seems best to create the directory /etc/X11/xorg.conf.d and place in it a few files in order to tweak sections of the implicit xorg.conf, as for example is done here.

Xorg reads vendor configuration information from the directory /usr/share/X11/xorg.conf.d, as stated by man xorg.conf.d.

Rather than in xorg.conf, another quite useful way to adjust X settings is on the fly, in a desktop environment's list of scripts to run at startup. "

Finally, I did what you suggested, but I put the files in share and not in the place said on the arch wiki. But this should not really matter.

And the value of identifier is the one genrated by the fire Xorg -configure experiement.
see Identifier "Card0" below. Whereas the arch wiki suggests something else.

If it generates on my machine it is probably correct no? Or should I use Identifier "Intel Graphics" like in the arch wiki?
answer is found here, it does not matter
https://superuser.com/questions/1014502 ... card-secti

I rebooted, and now it seems active.

Code: Select all

grep -i tear /var/log/Xorg.0.log
[    24.737] (**) intel(0): Option "TearFree" "True"
[    24.739] (**) intel(0): TearFree enabled

Code: Select all

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "AccelMethod"        	# <str>
        #Option     "Backlight"          	# <str>
        #Option     "CustomEDID"         	# <str>
        #Option     "DRI"                	# <str>
        #Option     "Present"            	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "VideoKey"           	# <i>
        #Option     "Tiling"             	# [<bool>]
        #Option     "LinearFramebuffer"  	# [<bool>]
        #Option     "HWRotation"         	# [<bool>]
        #Option     "VSync"              	# [<bool>]
        #Option     "PageFlip"           	# [<bool>]
        #Option     "SwapbuffersWait"    	# [<bool>]
        #Option     "TripleBuffer"       	# [<bool>]
        #Option     "XvPreferOverlay"    	# [<bool>]
        #Option     "HotPlug"            	# [<bool>]
        #Option     "ReprobeOutputs"     	# [<bool>]
        #Option     "XvMC"               	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "VirtualHeads"       	# <i>
        #Option     "TearFree"           	# [<bool>]
        #Option     "PerCrtcPixmaps"     	# [<bool>]
        #Option     "FallbackDebug"      	# [<bool>]
        #Option     "DebugFlushBatches"  	# [<bool>]
        #Option     "DebugFlushCaches"   	# [<bool>]
        #Option     "DebugWait"          	# [<bool>]
        #Option     "BufferCache"        	# [<bool>]
	Option      "TearFree"                  "True"
	Identifier  "Card0"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection
Last edited by MagicPoulp on 2020-12-03 07:42, edited 2 times in total.

MagicPoulp
Posts: 431
Joined: 2018-11-05 21:30

Re: how to fix tearing of videos in browsers?

#12 Post by MagicPoulp »

in the generated config file, the Device Card0 is referred to in other sections.
So can someone clarify how it can how equally well if I only create a 20-intel.conf with the device definition?

  • Option "TearFree" "True"
    Identifier "Card0"
    Driver "intel"
    BusID "PCI:0:2:0"
    EndSection

    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"

MagicPoulp
Posts: 431
Joined: 2018-11-05 21:30

Re: how to fix tearing of videos in browsers?

#13 Post by MagicPoulp »

Now I freeze chrome If i set the video in full screen. Even after a fresh reboot. If I remove the 20-intel.conf, and reboot then I do not freeze when I go full screen.
1. TearFree enabled with debian 10, enlightment desktop, freeze
2. same with XFCE, no freeze.
I have an XFCE with the compositor replaced by Compton. And for a strange reason all the XFCE menu is invisible. But google-chrome works fine.

This now shows that the desktop environment matters. I have to think about it. A few months ago I was fond of enlightenment. Maybe I will switch to gnome for simplicity.

I remember I did not like the sounds in Gnome but I guess this can be customized.

If I install gnome with 359 packages, can I remove it and get all things like before wihtout residues?

apt-get remove --purge gnome
should clean up without residues?

Maybe scripts change all my system everywhere?


I have noticed previously other times of broken UI states with enlightenment that required reboot. Note that I am talking about the debian package enlightenment which is not installable in the debian installer, and quite an old version of EFL. Not the real one.

I have the impression that the development of enlightenment is not very structured. Because they do not use merge commits, and lack of traceability for reviews.

https://git.enlightenment.org/core/enli ... t.git/log/


I have installed gnome since it has wayland by default. It works fine and no tearing or freeze. But I am not used to gnome. I really miss a bar at the bottom. I will have to take some time to customize it.
on the positive sides, gnome as a panel programs and it detected 2 proprietary firmwares to install from DELL One for the hard disc and one for the tower.
Not trustable, but I could isntall wihtout runnign sudo. This is also strange.

How can the mouse in gnome allow to install firmware packages?
Last edited by MagicPoulp on 2020-12-03 07:43, edited 1 time in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: how to fix tearing of videos in browsers?

#14 Post by Head_on_a_Stick »

MagicPoulp wrote:If the debian Xorg -confgure command is deprecated why is the the only wat for me to generate a template file
You don't need a template file at all, not sure why you think you do. The ArchWiki link I provided gave everything you needed.

And for the record the xserver-xorg-video-intel package already supplies an example configuration file:

Code: Select all

# mkdir -p /etc/X11/xorg.conf.d
# cp /usr/share/doc/xserver-xorg-video-intel/xorg.conf /etc/X11/xorg.conf.d/20-intel.conf
# editor /etc/X11/xorg.conf.d/20-intel.conf
Your other questions are all off-topic for this thread. Please remember to use code tags when posting terminal output.
deadbang

MagicPoulp
Posts: 431
Joined: 2018-11-05 21:30

Re: how to fix tearing of videos in browsers?

#15 Post by MagicPoulp »

OK I will use code tags.

I see now that it works correctly. Thanks.

The TearFree is only for X11. So it should not be needed with wayland, if I enable browsers to use wayland on gnome.
MOZ_ENABLE_WAYLAND=1 firefox
and the window protocol in about:support says wayland with firefox-esr from buster.

Do you mean that the source of xserver-xorg-video-intel has an example configuration file, or is it already placed somewhere on my hard disk?

I was just confused that the debian doc is not as good and that when using Xorg -configure the Device section was linked to the Monitor section. But it probably should not be needed, and I do not see any issues.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: how to fix tearing of videos in browsers?

#16 Post by Head_on_a_Stick »

MagicPoulp wrote:Do you mean that the source of xserver-xorg-video-intel has an example configuration file, or is it already placed somewhere on my hard disk?
I thought that was obvious from the code block in my last post. Read that again and see if you can figure it out ;)
deadbang

MagicPoulp
Posts: 431
Joined: 2018-11-05 21:30

Re: how to fix tearing of videos in browsers?

#17 Post by MagicPoulp »

mmmm... hard to guess but from the command below it seems present in the source and not in the package. And you said the package not its source.

Code: Select all

sudo apt-file show xserver-xorg-video-intel | cut -d ":" -f 2 | xargs grep intel | grep 20

Code: Select all

sudo apt-get source xserver-xorg-video-intel
the grep does not find the code that you quoted...
grep -r | grep intel

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: how to fix tearing of videos in browsers?

#18 Post by Head_on_a_Stick »

Try

Code: Select all

find /usr/share/doc -name xorg.conf
Or

Code: Select all

dpkg -L xserver-xorg-video-intel | grep xorg.conf
deadbang

MagicPoulp
Posts: 431
Joined: 2018-11-05 21:30

Re: how to fix tearing of videos in browsers?

#19 Post by MagicPoulp »

The example conf file has nothing about TearFree, but there is a readme and reference to the man intel.
ANyways thanks now it is solved.

Code: Select all

/usr/share/doc/xserver-xorg-video-intel/xorg.conf

Section "Device"
	Identifier "Intel"
	Driver "intel"
#	Option "AccelMethod" "uxa"
EndSection

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: how to fix tearing of videos in browsers?

#20 Post by stevepusser »

It ain't solved until you edit the title of your first post in the thread and add [SOLVED]. Is this the first time you've been asked to do this?
MX Linux packager and developer

Post Reply