Table of Contents

Ubuntu - GPU - AMD GPU - Troubleshooting - Screen Tearing

Screen tearing is an effect seen in moving pictures where the display suffers from distortion due to incorrect rendering of fast-changing images

Screen tearing can be fixed by enabling VSync, Adaptive VSync, Enhanced Sync, Fast Sync, FreeSync, G-SYNC or Variable Refresh Rate, depending on what the PC system and monitor support.


GPU Config File Update

Edit (or create) the Xorg config file in the /usr/share/X11/xorg.conf.d/ directory.

/usr/share/X11/xorg.conf.d/10-amdgpu.conf
Section "Device"
    Identifier "AMDgpu"
    MatchDriver "amdgpu"
    Driver "amdgpu"
    Option "TearFree" "true"
EndSection
/usr/share/X11/xorg.conf.d/10-radeon.conf
Section "Device"
    Identifier "Radeon"
    MatchDriver "radeon"
    Driver "radeon"
    Option "TearFree" "true"
EndSection

NOTE: The key here is the TearFree option.

  • This configuration is effective for many different systems
  • It mmay work with Xorg-server or Wayland.

Restart the X server

restart gdm

NOTE: Be sure to save any work and close applications first, as this will log out any users utilizing the graphical front-end.


Alternative configuration utilizing DRI

A modified version of the configuration may also improve performance, by utilizing DRI (direct rendering infrastructure) 3.

/usr/share/X11/xorg.conf.d/10-amdgpu.conf
Section "Device"
    Identifier "AMDgpu"
    MatchDriver "amdgpu"
    Driver "amdgpu"
    Option "TearFree" "true"
    Option "DRI" "3"
    Option "AccelMethod" "glamor"
EndSection

or

/usr/share/X11/xorg.conf.d/10-radeon.conf
Section "Device"
    Identifier "Radeon"
    MatchDriver "radeon"
    Driver "radeon"
    Option "TearFree" "true"
    Option "DRI" "3"
    Option "AccelMethod" "glamor"
EndSection

Check the current TearFree status

xrandr --verbose | grep "TearFree"