User Tools

Site Tools


notes:xorg.conf_snippets

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
notes:xorg.conf_snippets [2022/07/09 07:16] – [amdgpu] Sean Rhonenotes:xorg.conf_snippets [2024/05/02 02:15] – Fix intel; DRI = iris; evdev Sean Rhone
Line 17: Line 17:
  
   * Last updated: 2022/05/18   * Last updated: 2022/05/18
-  * :!: This expects ''modesetting'' ((''amdgpu'' had low FPS))+  * :!: The ''Identifier'' expects ''modesetting'' 
 +  * :!: It's better to [[notes:kernel_parameters#custom_resolution|use a kernel option]] as it applies to both Wayland and Xorg
  
   sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'   sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Line 41: Line 42:
 Section "Screen" Section "Screen"
     Identifier "Screen0"     Identifier "Screen0"
-    Option "ModeValidation" "DP-1: NoMaxPClkCheck,NoEdidMaxPClkCheck,NoHorizSyncCheck,NoVertRefreshCheck,AllowNonEdidModes"+    Option "ModeValidation" "HDMI-0: NoMaxPClkCheck,NoEdidMaxPClkCheck,NoHorizSyncCheck,NoVertRefreshCheck,AllowNonEdidModes"
     Monitor "S271HL-75Hz"     Monitor "S271HL-75Hz"
-EndSection</code> 
- 
-===== TCL 55S405 ===== 
- 
-  * Reduces HDMI bandwidth for 4K@60Hz 
-  * Fixes Polaris HDMI instability and incorrect brightness with certain DisplayPort-to-HDMI cables 
-  * :!: Only for ''amdgpu'', as ''modesetting'' presents a CVT-RB resolution automatically 
- 
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' 
- 
-<code> 
-Section "Monitor" 
-    Identifier "HDMI-A-0" 
-    Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync 
-    Option "PreferredMode" "3840x2160R" 
 EndSection</code> EndSection</code>
  
Line 73: Line 59:
 <code> <code>
 Section "Screen" Section "Screen"
-    Identifier      "Deep Color Screen" +    Identifier "Deep Color Screen" 
-    DefaultDepth    30+    DefaultDepth 30
 EndSection</code> EndSection</code>
  
 ==== Verify ==== ==== Verify ====
  
-  * This may need changed to ''0'' instead for some distros+  * This may need changed to ''1'' instead for some distros
  
-  cat ~/'.local/share/xorg/Xorg.1.log' | grep 'Pixel depth'+  cat ~/'.local/share/xorg/Xorg.0.log' | grep 'Pixel depth'
  
-  cat ~/'.local/share/xorg/Xorg.1.log.old' | grep 'Pixel depth'+  cat ~/'.local/share/xorg/Xorg.0.log.old' | grep 'Pixel depth'
  
 ====== Specific Drivers ====== ====== Specific Drivers ======
  
-===== modesetting =====+===== amdgpu ===== 
 + 
 +==== Tweaked ====
  
-  * :!: TODO, this was figured out in order to use modesetting without uninstalling specific DDX drivers+  * https://wiki.archlinux.org/title/AMDGPU#Reduce_output_latency
  
   sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'   sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Line 95: Line 83:
 <code> <code>
 Section "OutputClass" Section "OutputClass"
-    Identifier  "AMD Graphics"+    Identifier "AMD Graphics"
     MatchDriver "amdgpu"     MatchDriver "amdgpu"
-    Driver      "amdgpu" +    Driver "amdgpu" 
-    Option      "DRI      "3+    Option "EnablePageFlip" "0
-    Option      "TearFree"  "0"+    Option "TearFree" "0"
 EndSection</code> EndSection</code>
  
-===== amdgpu =====+==== Alternate ====
  
-  * 2022/05/27Diablo II: Resurrected has screen-tearing even with Vsync enabled in-game and ''TearFree=1'' when using ''amdgpu'', but is fine with ''modesetting'' +  * 2023/03/28Last tested on Fedora 37 with a RX 6600 XT
-  * No known benefits over ''modesetting''+
  
   sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'   sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Line 111: Line 98:
 <code> <code>
 Section "OutputClass" Section "OutputClass"
-    Identifier  "AMD Graphics"+    Identifier "AMD Graphics"
     MatchDriver "amdgpu"     MatchDriver "amdgpu"
-    Driver      "amdgpu" +    Driver "amdgpu" 
-    Option      "EnablePageFlip" "0" +    Option "TearFree" "1"
-    Option      "TearFree" "0"+
 EndSection</code> EndSection</code>
  
 ===== intel ===== ===== intel =====
  
-  * :!: 2022/03/02: This caused random diagonal tearing on Fedora 35 with GNOME +  * 2024/05/02: Last tested on Fedora Workstation 40 with Intel UHD 630
-  * No known benefits over ''modesetting''+
  
   sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'   sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Line 127: Line 112:
 <code> <code>
 Section "OutputClass" Section "OutputClass"
-    Identifier  "Intel Graphics"+    Identifier "Intel Graphics"
     MatchDriver "i915"     MatchDriver "i915"
-    Driver      "intel" +    Driver "intel" 
-    Option      "DRI"       "3+    Option "DRI" "iris" 
-    Option      "TearFree"  "0" +    Option "AccelMethod" "sna
-EndSection</code>+    Option "TearFree" "0" 
 +EndSection 
 +</code>
  
-===== intel + nouveau =====+===== NVIDIA =====
  
-  * For Optimus laptops+  * ''Coolbits'' at ''28'' unlocks all available overclocking settings
  
-  sudo zypper install -y xf86-video-intel xf86-video-nouveau +  sudo -e '/etc/X11/xorg.conf.d/nvidia.conf'
- +
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+
  
 <code> <code>
 Section "OutputClass" Section "OutputClass"
-    Identifier  "Intel Graphics+    Identifier "nvidia
-    MatchDriver "i915" +    MatchDriver "nvidia-drm
-    Driver "intel+    Option "Coolbits" "28
-    Option "DRI      "3" +    Option "AllowUnofficialGLXProtocol" "1"
-    Option "TearFree"  "0" +
-EndSection +
- +
-Section "OutputClass" +
-    Identifier  "NVIDIA Graphics" +
-    MatchDriver "nouveau" +
-    Driver "nouveau+
-    Option "DRI      "3"+
 EndSection</code> EndSection</code>
  
-===== radeon ===== +====== evdev ======
- +
-  * Expects pre-SI GPUs ((HD6000 series and lower, and non-SI HD7000 series)) +
-  * For SI, CIK, and newer GPUs, use ''amdgpu'', along with enabling ''si_support'' and ''cik_support'' respectively for the ''amdgpu'' kernel module ((see ''modinfo -p amdgpu'')) +
-  * :!: Using the ''radeon'' DDX driver caused StepMania to crash with any fullscreen mode on openSUSE TW +
-  * :!: This caused a blinking black screen and GDM unable to start on Ubuntu 20.04.1 +
-  * :!: Overall, probably shouldn't use the ''radeon'' DDX driver +
- +
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+
  
 <code> <code>
-Section "OutputClass+Section "InputClass
-    Identifier  "AMD Graphics+    Identifier "evdev pointer catchall
-    MatchDriver "radeon+    MatchIsPointer "on
-    Driver      "radeon+    MatchDevicePath "/dev/input/event*
-    Option      "DRI"               "3+    Driver "evdev
-    Option      "SwapbuffersWait  "0+    Option "AccelerationProfile" "-1
-    Option      "TearFree         "0" +    Option "AccelerationScheme" "none
-    Option      "AccelMethod"       "EXA+EndSection
-EndSection</code>+
  
-===== NVIDIA Proprietary =====+Section "InputClass" 
 +    Identifier "evdev keyboard catchall" 
 +    MatchIsKeyboard "on" 
 +    MatchDevicePath "/dev/input/event*" 
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none" 
 +EndSection
  
-==== General ====+Section "InputClass" 
 +    Identifier "evdev touchpad catchall" 
 +    MatchIsTouchpad "on" 
 +    MatchDevicePath "/dev/input/event*" 
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none" 
 +EndSection
  
-  ''Coolbits'' at ''28'' unlocks all available overclocking settings+Section "InputClass" 
 +    Identifier "evdev tablet catchall" 
 +    MatchIsTablet "on" 
 +    MatchDevicePath "/dev/input/event*
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none" 
 +EndSection
  
-  sudo cp -p '/usr/share/X11/xorg.conf.d/nvidia.conf' '/etc/X11/xorg.conf.d/nvidia.conf' && sudo -e '/etc/X11/xorg.conf.d/nvidia.conf' +Section "InputClass" 
- +    Identifier "evdev touchscreen catchall" 
-<code> +    MatchIsTouchscreen "on" 
-        Option "Coolbits" "28"</code>+    MatchDevicePath "/dev/input/event*" 
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none" 
 +EndSection</code>
  
/var/www/wiki/data/pages/notes/xorg.conf_snippets.txt · Last modified: 2024/05/18 02:18 by Sean Rhone