This is an old revision of the document!
Table of Contents
Ubuntu - GPU - AMD GPU - Troubleshooting - Screen Tearing
Update: Seems this configuration is effective for many different systems, according to feedback, including Mint, OpenSUSE and Gentoo. I expect it will work with most systems, with the exception of those with hybrid graphics. It’s most likely using Xorg-server 1.19 or Wayland may correct such issues.
In /usr/share/X11/xorg.conf.d/ directory, edit (or create) a file called 20-radeon.conf (look for amdgpu.conf for users with the amdgpu drivers) with the following contents:
- /usr/share/X11/xorg.conf.d/20-radeon.conf
Section "Device" Identifier "Radeon" Driver "radeon" Option "TearFree" "on" EndSection
NOTE: The key here is the TearFree option.
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.
- This has certain improvements for the way the X server handles rendering.
- Also enabling Glamor (if not enabled already by default) can improve 2D rendering tasks, performing them through Mesa’s OpenGL libraries.
- Older AMD cards will not support Glamor.
- The enhanced configuration is as follows:
- /usr/share/X11/xorg.conf.d/20-radeon.conf
Section "Device" Identifier "Radeon" Driver "radeon" Option "TearFree" "on" Option "DRI" "3" Option "AccelMethod" "glamor" EndSection