Skip to content

Instantly share code, notes, and snippets.

@duard
Created May 9, 2020 10:56
Show Gist options
  • Save duard/502a1308e18852de942623345bba02af to your computer and use it in GitHub Desktop.
Save duard/502a1308e18852de942623345bba02af to your computer and use it in GitHub Desktop.
Fix ubuntu debian xfce tearing (4k full hd 60 fps) nvidia
mv ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml.bkp;
echo $(xrandr | sed -nr '/(\S+) connected (primary )?([0-9]+x[0-9]+)(\+\S+).*/{ s//\1: \3 \4 { ForceFullCompositionPipeline = On }, /; H}; ${ g; s/\n//g; s/, $//; p }');
# add this to Section "Device"
Option "NoLogo" "1"
Option "RenderAccel" "1"
Option "TripleBuffer" "true"
Option "MigrationHeuristic" "greedy"
Option "AccelMethod" "sna"
Option "TearFree" "true"
# add this to Section "Screen"
Option "metamodes" "HDMI-0:3840x2160_60 +0+0 { ForceFullCompositionPipeline = On }"
# Option "metamodes" "HDMI-0:3840x2160 +0+0 { ForceFullCompositionPipeline = On }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment