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
notes:xorg.conf_snippets [2022/10/13 08:18] Sean Rhonenotes:xorg.conf_snippets [2024/05/02 03:12] (current) – [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 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 ==== 
 + 
 +  * https://wiki.archlinux.org/title/AMDGPU#Reduce_output_latency 
 + 
 +  sudo -e '/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   * ''Coolbits'' at ''28'' unlocks all available overclocking settings
Line 86: Line 133:
     Option "Coolbits" "28"     Option "Coolbits" "28"
     Option "AllowUnofficialGLXProtocol" "1"     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> EndSection</code>
  
/var/www/wiki/data/attic/notes/xorg.conf_snippets.1665663489.txt.gz · Last modified: 2022/10/13 08:18 by Sean Rhone