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/03/21 08:39] Sean Rhonenotes:xorg.conf_snippets [2024/05/02 03:12] – [evdev] Sean Rhone
Line 1: Line 1:
 ====== Notes ====== ====== Notes ======
  
-  * Anything here expects Xorg and not Wayland+  * :!: Anything here expects Xorg and not Wayland
   * ''Identifier'' will need changed for different display connections and drivers   * ''Identifier'' will need changed for different display connections and drivers
  
Line 14: Line 14:
 ===== Acer S271HL ===== ===== Acer S271HL =====
  
-  * Overclocks to 75Hz +  * See [[devices:acer_s271hl|Acer S271HL]]
-  * :!: Unsure where this was generated, but CRU has a RB V2 option that also worked from Windows +
-  * :!: TODO: Get the RB V2 values and insert them here+
  
-  * Last updated: 2021/06/14+  * Last updated: 2022/05/18 
 +  * :!: 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 -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'
  
 <code> <code>
 Section "Monitor" Section "Monitor"
-    Identifier "DVI-I-1" +    Identifier "HDMI-1" 
-    Modeline "1920x1080_75"  164.61  1920 1944 1976 2008  1080 1083 1088 1093 +hsync +vsync+    Modeline "1920x1080_75"  167.85  1920 1928 1960 2000  1080 1105 1113 1119 +hsync -vsync
     Option "PreferredMode" "1920x1080_75"     Option "PreferredMode" "1920x1080_75"
 EndSection</code> EndSection</code>
Line 37: Line 37:
 Section "Monitor" Section "Monitor"
     Identifier "S271HL-75Hz"     Identifier "S271HL-75Hz"
-    Modeline "1920x1080_75"  164.61  1920 1944 1976 2008  1080 1083 1088 1093 +hsync +vsync+    Modeline "1920x1080_75"  167.85  1920 1928 1960 2000  1080 1105 1113 1119 +hsync -vsync
 EndSection EndSection
  
 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> 
- 
-===== HP L2245w ===== 
- 
-  * Overclocks to 80Hz 
-  * Generated from CRU Exact Reduced 
- 
-  * Last updated: 2021/08/04 
- 
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' 
- 
-<code> 
-Section "Monitor" 
-    Identifier "DVI-0" 
-    Modeline "1680x1050_80"  158.24  1680 1728 1760 1840  1050 1053 1059 1075 +hsync -vsync 
-    Option "PreferredMode" "1680x1050_80" 
-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 81: Line 50:
 ===== Deep Color ===== ===== Deep Color =====
  
 +  * https://wiki.gentoo.org/wiki/30bpp
 +  * https://wiki.archlinux.org/title/AMDGPU#10-bit_color
   * The lack-of quotes around ''30'' is intentional and required syntax   * The lack-of quotes around ''30'' is intentional and required syntax
-  * :!: This may cause issues with programs not expecting 30-bit color ((GpuTest's fur ring doesn't render right, RS's NXT client's splash screen is gray)) +  * :!: This may cause apps to crash
-  * :!: This can cause games in Wine to not start under some circumstances ((FFXIV crashes on start-up due to a DirectX error)) +
-  * There is no known benefit to enabling this as of 2019/10/22+
  
   sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'   sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Line 90: Line 59:
 <code> <code>
 Section "Screen" Section "Screen"
-    Identifier      "Deep Color Screen" +    Identifier "Deep Color Screen" 
-    DefaultDepth    30+    DefaultDepth 30
 EndSection</code> EndSection</code>
  
-====== Specific Drivers ======+==== Verify ====
  
-===== modesetting =====+  * This may need changed to ''1'' instead for some distros
  
-  * :!: TODO, this was figured out in order to use modesetting without uninstalling specific DDX drivers+  cat ~/'.local/share/xorg/Xorg.0.log' | grep 'Pixel depth'
  
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  cat ~/'.local/share/xorg/Xorg.0.log.old' | grep 'Pixel depth'
  
-<code> +====== Specific Drivers ======
-Section "OutputClass" +
-    Identifier  "AMD Graphics" +
-    MatchDriver "amdgpu" +
-    Driver      "amdgpu" +
-    Option      "DRI"       "3" +
-    Option      "TearFree"  "0" +
-EndSection</code>+
  
 ===== amdgpu ===== ===== amdgpu =====
 +
 +==== Tweaked ====
 +
 +  * 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 117: 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>
  
-===== intel =====+==== Alternate ====
  
-  * :!: 2022/03/02This caused random diagonal tearing on Fedora 35 with GNOME +  * 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 133: Line 98:
 <code> <code>
 Section "OutputClass" Section "OutputClass"
-    Identifier  "Intel Graphics" +    Identifier "AMD Graphics" 
-    MatchDriver "i915+    MatchDriver "amdgpu
-    Driver      "intel+    Driver "amdgpu
-    Option      "DRI"       "3" +    Option "TearFree" "1"
-    Option      "TearFree"  "0"+
 EndSection</code> EndSection</code>
  
-===== nouveau ===== +===== intel =====
- +
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "OutputClass" +
-    Identifier  "NVIDIA Graphics" +
-    MatchDriver "nouveau" +
-    Driver      "nouveau" +
-    Option      "DRI"       "3" +
-EndSection</code> +
- +
-===== intel + nouveau ===== +
- +
-  * For Optimus laptops+
  
-  sudo zypper install -y xf86-video-intel xf86-video-nouveau+  * 2024/05/02: Last tested on Fedora Workstation 40 with Intel UHD 630
  
   sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'   sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Line 162: 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
 +    Option "TearFree" "0"
 EndSection EndSection
 +</code>
  
-Section "OutputClass" +===== NVIDIA =====
-    Identifier  "NVIDIA Graphics" +
-    MatchDriver "nouveau" +
-    Driver "nouveau" +
-    Option "DRI"       "3" +
-EndSection</code>+
  
-===== radeon =====+  * ''Coolbits'' at ''28'' unlocks all available overclocking settings
  
-  * Expects pre-SI GPUs ((HD6000 series and lower, and non-SI HD7000 series)) +  sudo -e '/etc/X11/xorg.conf.d/nvidia.conf'
-  * 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 "OutputClass"
-    Identifier  "AMD Graphics+    Identifier "nvidia
-    MatchDriver "radeon" +    MatchDriver "nvidia-drm
-    Driver      "radeon" +    Option "Coolbits" "28
-    Option      "DRI"               "3" +    Option "AllowUnofficialGLXProtocol" "1"
-    Option      "SwapbuffersWait"   "0+
-    Option      "TearFree         "0+
-    Option      "AccelMethod      "EXA"+
 EndSection</code> EndSection</code>
  
-===== NVIDIA Proprietary =====+====== evdev ======
  
-==== General ==== +  sudo dnf install 'xorg-x11-drv-evdev-y && sudo -e '/etc/X11/xorg.conf.d/99-evdev.conf'
- +
-  * ''Coolbits'' at ''28'' allows full-use of overclocking features, if any +
- +
-  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'+
  
 <code> <code>
-        Option "Coolbits" "28"</code>+Section "InputClass" 
 +    Identifier "evdev pointer catchall" 
 +    MatchIsPointer "on" 
 +    MatchDevicePath "/dev/input/event*" 
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none" 
 +EndSection
  
-==== Environment Variables ====+Section "InputClass" 
 +    Identifier "evdev keyboard catchall" 
 +    MatchIsKeyboard "on" 
 +    MatchDevicePath "/dev/input/event*" 
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none" 
 +EndSection
  
-  Sets pre-rendered frames from the default to +Section "InputClass" 
-  * Apparently reduces CPU usage for desktop environments rendered with the NVIDIA GPU+    Identifier "evdev touchpad catchall" 
 +    MatchIsTouchpad "on" 
 +    MatchDevicePath "/dev/input/event*
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none" 
 +EndSection
  
-  echo 'export __GL_MaxFramesAllowed=1' | sudo tee '/etc/profile.d/nvidia-custom.sh' > '/dev/null' && cat '/etc/profile.d/nvidia-custom.sh'+Section "InputClass" 
 +    Identifier "evdev tablet catchall" 
 +    MatchIsTablet "on" 
 +    MatchDevicePath "/dev/input/event*" 
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none" 
 +EndSection
  
-  sudo -e '/etc/profile.d/nvidia-custom.sh' +Section "InputClass" 
- +    Identifier "evdev touchscreen catchall" 
-==== Disable PRIME Render Offload ==== +    MatchIsTouchscreen "on" 
- +    MatchDevicePath "/dev/input/event*" 
-  * [[http://download.nvidia.com/XFree86/Linux-x86_64/440.64/README/randr14.html|Offloading Graphics Display with RandR 1.4]] +    Driver "evdev" 
-  :!: Required if planning to use external displays +    Option "AccelerationProfile" "-1
-  * :!: ''Coolbits'' is not required here, but may be useful +    Option "AccelerationScheme" "none" 
-  * :!: This expects Fedora and RPM Fusion's NVIDIA driver package for the ''cp'' of ''nvidia.conf'' +EndSection</code>
-  * :!: This has not been checked in 2022 and may not be necessary +
- +
-  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' +
- +
-<code> +
-        Option "PrimaryGPU" "yes+
-        Option "Coolbits" "28"</code>+
  
/var/www/wiki/data/pages/notes/xorg.conf_snippets.txt · Last modified: 2024/05/18 02:18 by Sean Rhone