Screen tearing in xorg

Has anyone managed to resolve the issue of screen tearing in X? It’s not a problem on Gnome/wayland, but now that I’m running DWM (which uses Xlib) i’m getting seeing the effect when i scroll pages. It’s particularly noticeable on web browsers.

I’ve found advice on line pointing at the “TearFree” xorg.conf option, made available by the Intel graphics driver, but I’m unsure if this will work for my graphics card (the built-in Intel Corporation HD Graphics 620 (rev 02)).

in any case, adding an xorg.conf of any kind to /etc/X11 doesn’t work. There is an example config in /usr/share/doc/xserver-xorg-video-intel/xorg.conf, but even this prevents X from starting. I can’t find any logs to indicate what the issue is.

1 Like

I fixed this issue by adding a file to location/usr/share/X11/xorg.conf.d/20-intel.conf with the following code:

Section "Device"
	Identifier "Intel Graphics"
	Driver "intel"

	Option "TearFree" "true"
EndSection

1 Like