xTearFree allows you to enable or disable the TearFree option in X11, improving the viewing experience by eliminating tearing in some graphical environments.
- Download the repository
git clone https://github.com/gabrielcapilla/xtearfree.git
- Run the installation script
cd ~/xtearfree/tools && bash install
- Run the script with
--uninstall
flag
cd ~/xtearfree/tools && bash install --uninstall
- Enables the TearFree of your system.
fs on
- Disables the TearFree of your system.
fs off
- Display the current status of TearFree using KDE kdialog popup.
fs status
- The script is executed silently.
fs on --silent
fs off --silent
Dynamically activate TearFree when running any program. Add the following command to the MPV launcher:
Exec=fs on --silent; mpv --player-operation-mode=pseudo-gui -- %U ; fs off --silent
Avoid tearing without limiting FPS. Add to the launch parameters of your favorite game the following command:
fs on ; %command% ; fs off
TearFree controls tearing prevention using the hardware page flipping mechanism. By default, TearFree will be on for rotated outputs, outputs with RandR transforms applied, and for RandR 1.4 slave outputs, and off for everything else. Or you can configure it to be always on or always off with true or false respectively.
Option "TearFree" "true"
You can also enable TearFree temporarily with xrandr. Check if your device has TearFree and which device is connected.
xrandr --prop
Enter as “output” your device, e.g. DisplayPort-2 and set TearFree as on.
xrandr --output DisplayPort-2 --set TearFree on
Where output should look like DisplayPort-0 or HDMI-A-0 and can be acquired by running xrandr -q.