I have been using Linux on my laptop with an Intel iGPU for a while, and screen tearing is something that is always present when it comes to testing out new Linux distributions. Whether it be watching a YouTube video, or using your computer normally, screen-tearing gets into everyone's nerves to some degree. So in this article, I will show you how to eliminate the screen tearing on Linux running with Intel GPU hardware.
While there are software solutions that offer OpenGL acceleration and Vsync with compositing software such as Compiz, or Compton, these require additional software. In the method I am using, there will be no such thing, and thus only require copy and pastes on your terminal.
So open up your terminal and get ready to read and type/copy-n-paste (I recommend the latter)!
I am in no way responsible for you accidentally destroying your device, loss of data, or any harm (mental, physical, whatever) or danger to you. By reading the following instructions, you agree to this statement and accept any consequences that you may endure from this guide.
Have fun! c:
sudo mkdir /etc/X11/xorg.conf.d/
" to create this folder.ls /etc/X11/xorg.conf.d/
". The folder should not have contents in it.Contents of the new file "/etc/X11/xorg.conf.d/20-intel.conf".
sudo -s
echo -e 'Section "Device"\n Identifier "Intel Graphics"\n Driver "intel"\n Option "TearFree" "true"\nEndSection' > /etc/X11/xorg.conf.d/20-intel.conf
exit
Finally, logout/login or reboot your linux operating system to see the changes.
Personally, to check if the TearFree option has been activated, I just drag around any open windows I have and see If the tearing persists. But if you are adamant about seeing it if it's actually running, reading the Xorg.0.log file is the way to go:
cat /var/log/Xorg.0.log | grep TearFree
Output of previous command, with "TearFree" option enabled.
In my case, most of the screen tearing is fixed with the exception of browsing the internet with Mozilla FireFox (Linux Mint's cinnamon's fault) which creates disturbing diagonal screen tearing. Minor screen tearing is still present if you look really close to your monitor, but this only occurs if you don't have a compositor working in the background.