Screen Tearing on Ubuntu Xorg 20.04 with Intel Graphics
Solution 1:
This didn't work for me, unfortunately. I was able to fix with modifying my /etc/X11/xorg.conf.d/20-intel-graphics.conf
file to include DRI3, which I found here
Section "Module"
Load "dri3"
EndSection
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "DRI" "3"
EndSection
Solution 2:
I resolved this issue by replacing /etc/X11/xorg.conf.d/20-intel.conf
with /usr/share/X11/xorg.conf.d/20-intel.conf
containing the following configuration:
Section "Device"
Identifier "Intel Graphics"
Driver "modesetting"
EndSection
I have no more tearing and I am able to use waylandfree Ubuntu. :)
Hope this helps anyone!
P.S.: I tested the tearing using this YouTube video (epilepsy warning!) and moving windows around as if I had a stroke.
Solution 3:
None of the above worked for me, but I found something simple that did:
xrandr --output HDMI3 --transform 1,0,-1,0,1,-1,0,0,1
This shifts the screen one pixel down and one to the right. I do lose one row and one column of pixels, but it prevents the mouse pointer from hitting the left or top edges, which is what seems to trigger this behavior in my case.