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/22 06:31] – [NVIDIA Proprietary] Sean Rhonenotes:xorg.conf_snippets [2024/05/02 03:12] – [evdev] Sean Rhone
Line 17: Line 17:
  
   * Last updated: 2022/05/18   * Last updated: 2022/05/18
-  * :!: This expects ''modesetting''+  * :!: 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> EndSection</code>
Line 58: 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 ======
  
-  * :!: Only use ''modesetting'' for Xorg DDX+===== amdgpu =====
  
-===== NVIDIA Proprietary =====+==== Tweaked ====
  
-  * ''Coolbits'' at ''28'' unlocks all available overclocking settings+  * https://wiki.archlinux.org/title/AMDGPU#Reduce_output_latency
  
-  sudo cp -'/usr/share/X11/xorg.conf.d/nvidia.conf' '/etc/X11/xorg.conf.d/nvidia.conf' && sudo -e '/etc/X11/xorg.conf.d/nvidia.conf'+  sudo -'/etc/X11/xorg.conf.d/99-graphics.conf' 
 + 
 +<code> 
 +Section "OutputClass" 
 +    Identifier "AMD Graphics" 
 +    MatchDriver "amdgpu" 
 +    Driver "amdgpu" 
 +    Option "EnablePageFlip" "0" 
 +    Option "TearFree" "0" 
 +EndSection</code> 
 + 
 +==== Alternate ==== 
 + 
 +  * 2023/03/28: Last tested on Fedora 37 with a RX 6600 XT 
 + 
 +  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' 
 + 
 +<code> 
 +Section "OutputClass" 
 +    Identifier "AMD Graphics" 
 +    MatchDriver "amdgpu" 
 +    Driver "amdgpu" 
 +    Option "TearFree" "1" 
 +EndSection</code> 
 + 
 +===== intel ===== 
 + 
 +  * 2024/05/02: Last tested on Fedora Workstation 40 with Intel UHD 630 
 + 
 +  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' 
 + 
 +<code> 
 +Section "OutputClass" 
 +    Identifier "Intel Graphics" 
 +    MatchDriver "i915" 
 +    Driver "intel" 
 +    Option "DRI" "iris" 
 +    Option "AccelMethod" "sna" 
 +    Option "TearFree" "0" 
 +EndSection 
 +</code> 
 + 
 +===== NVIDIA ===== 
 + 
 +  * ''Coolbits'' at ''28'' unlocks all available overclocking settings
  
   sudo -e '/etc/X11/xorg.conf.d/nvidia.conf'   sudo -e '/etc/X11/xorg.conf.d/nvidia.conf'
  
 <code> <code>
-        Option "Coolbits" "28" +Section "OutputClass" 
-        Option "AllowUnofficialGLXProtocol" "1"</code>+    Identifier "nvidia" 
 +    MatchDriver "nvidia-drm" 
 +    Option "Coolbits" "28" 
 +    Option "AllowUnofficialGLXProtocol" "1" 
 +EndSection</code> 
 + 
 +====== evdev ====== 
 + 
 +  sudo dnf install 'xorg-x11-drv-evdev' -y && sudo -e '/etc/X11/xorg.conf.d/99-evdev.conf' 
 + 
 +<code> 
 +Section "InputClass" 
 +    Identifier "evdev pointer catchall" 
 +    MatchIsPointer "on" 
 +    MatchDevicePath "/dev/input/event*" 
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none" 
 +EndSection 
 + 
 +Section "InputClass" 
 +    Identifier "evdev keyboard catchall" 
 +    MatchIsKeyboard "on" 
 +    MatchDevicePath "/dev/input/event*" 
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none" 
 +EndSection 
 + 
 +Section "InputClass" 
 +    Identifier "evdev touchpad catchall" 
 +    MatchIsTouchpad "on" 
 +    MatchDevicePath "/dev/input/event*" 
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none" 
 +EndSection 
 + 
 +Section "InputClass" 
 +    Identifier "evdev tablet catchall" 
 +    MatchIsTablet "on" 
 +    MatchDevicePath "/dev/input/event*" 
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none" 
 +EndSection 
 + 
 +Section "InputClass" 
 +    Identifier "evdev touchscreen catchall" 
 +    MatchIsTouchscreen "on" 
 +    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