First run to check which video driver you are using (AMDGPU or RADEON)
sudo lspci -k | grep -EA3 'VGA|3D|Display'
The output should look like this
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Curacao PRO [Radeon R7 370 / R9 270/370 OEM]
Subsystem: Tul Corporation / PowerColor Device 2337
If it says AMDGPU we need to create a custom configuration file:
sudo mkdir -p /etc/X11/xorg.conf.d
sudo touch /etc/X11/xorg.conf.d/20-amdgpu.conf
Open this file in a text editor (with sudo) with sudo nano /etc/X11/xorg.conf.d/20-amdgpu.conf
and add the following text:
Section "Device"
Identifier "AMD Graphics"
Driver "amdgpu"
Option "TearFree" "true"
EndSection
If it says RADEON we need to create a custom configuration file:
sudo mkdir -p /etc/X11/xorg.conf.d
sudo touch /etc/X11/xorg.conf.d/20-radeon.conf
Open this file in a text editor (with sudo) with sudo nano /etc/X11/xorg.conf.d/20-radeon.conf
and add the following text:
Section "Device"
Identifier "Radeon"
Driver "radeon"
Option "TearFree" "true"
EndSection
We need to create a custom configuration file:
sudo mkdir -p /etc/X11/xorg.conf.d
sudo touch /etc/X11/xorg.conf.d/20-intel.conf
Open this file in a text editor (with root access) with sudo nano /etc/X11/xorg.conf.d/20-intel.conf
, and add the following text:
Section "Device"
Identifier "Intel Graphics"
Driver "i915"
Option "TearFree" "true"
EndSection