Skip to content

gabrielcapilla/xtearfree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TearFree Toggle Script for X11

xTearFree allows you to enable or disable the TearFree option in X11, improving the viewing experience by eliminating tearing in some graphical environments.


Install

  • Download the repository
git clone https://github.com/gabrielcapilla/xtearfree.git
  • Run the installation script
cd ~/xtearfree/tools && bash install

Uninstall

  • Run the script with --uninstall flag
cd ~/xtearfree/tools && bash install --uninstall

How to use

  • 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

Use it with MPV

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

Use it with Steam

Avoid tearing without limiting FPS. Add to the launch parameters of your favorite game the following command:

fs on ; %command% ; fs off

About

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.

Source: wiki.archlinux.org

About

TearFree toggle script for X11

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages