User Tools

Site Tools


ubuntu:gpu:amd_gpu:troubleshooting:screen_tearing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ubuntu:gpu:amd_gpu:troubleshooting:screen_tearing [2023/06/21 20:17] – created peterubuntu:gpu:amd_gpu:troubleshooting:screen_tearing [2023/06/21 21:02] (current) peter
Line 1: Line 1:
 ====== Ubuntu - GPU - AMD GPU - Troubleshooting - Screen Tearing ====== ====== 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.+Screen tearing is an effect seen in moving pictures where the display suffers from distortion due to incorrect rendering of fast-changing images
  
-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:+  Screen tearing occurs when the monitor’s refresh rate and GPU’s frame rate are not synchronized. 
 +  It is characterized as a horizontal split at one or more places in the image.
  
-<file bash /usr/share/X11/xorg.conf.d/20-radeon.conf> +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. 
-    Section "Device" + 
-        Identifier "Radeon" +---- 
-        Driver "radeon" + 
-        Option "TearFree" "on+===== GPU Config File Update ===== 
-    EndSection+ 
 +Edit (or create) the Xorg config file in the **/usr/share/X11/xorg.conf.d/** directory. 
 + 
 +  * If using a newer AMD GPU, the file is probably the one named **10-amdgpu.conf**. 
 + 
 +<file bash /usr/share/X11/xorg.conf.d/10-amdgpu.conf> 
 +Section "Device" 
 +    Identifier "AMDgpu" 
 +    MatchDriver "amdgpu" 
 +    Driver "amdgpu" 
 +    Option "TearFree" "true" 
 +EndSection 
 +</file> 
 + 
 +  * If using an older AMD GPU, the file is probably the one named **10-radeon.conf**. 
 + 
 +<file bash /usr/share/X11/xorg.conf.d/10-radeon.conf> 
 +Section "Device" 
 +    Identifier "Radeon" 
 +    MatchDriver "radeon" 
 +    Driver "radeon" 
 +    Option "TearFree" "true
 +EndSection
 </file> </file>
  
 <WRAP info> <WRAP info>
 **NOTE:**  The key here is the **TearFree** option. **NOTE:**  The key here is the **TearFree** option.
 +
 +  * This configuration is effective for many different systems
 +  * It mmay work with Xorg-server or Wayland.
  
 </WRAP> </WRAP>
Line 42: Line 68:
   * The enhanced configuration is as follows:   * The enhanced configuration is as follows:
  
-<file bash /usr/share/X11/xorg.conf.d/20-radeon.conf> +<file bash /usr/share/X11/xorg.conf.d/10-amdgpu.conf> 
-    Section "Device" +Section "Device" 
-        Identifier "Radeon" +    Identifier "AMDgpu" 
-        Driver "radeon" +    MatchDriver "amdgpu" 
-        Option "TearFree" "on+    Driver "amdgpu" 
-        Option "DRI" "3" +    Option "TearFree" "true" 
-        Option "AccelMethod" "glamor" +    Option "DRI" "3" 
-    EndSection+    Option "AccelMethod" "glamor" 
 +EndSection 
 +</file> 
 + 
 +or 
 + 
 +<file bash /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
 </file> </file>
  
 ---- ----
 +
 +===== Check the current TearFree status =====
 +
 +<code bash>
 +xrandr --verbose | grep "TearFree"
 +</code>
  
ubuntu/gpu/amd_gpu/troubleshooting/screen_tearing.1687378659.txt.gz · Last modified: 2023/06/21 20:17 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki