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

Next revision
Previous revision
notes:xorg.conf_snippets [2019/11/30 22:18] – created Sean Rhonenotes:xorg.conf_snippets [2023/05/28 23:33] (current) Sean Rhone
Line 1: Line 1:
-====== Monitor/Display ======+====== Notes ======
  
-===== 4K@60Hz RB =====+  * :!: Anything here expects Xorg and not Wayland 
 +  * ''Identifier'' will need changed for different display connections and drivers
  
-  * 4k@60Hz CVT-RB +====== Config File ======
-  * Fixes unstable HDMI at 4K@60Hz, and overly-bright colors on DisplayPort +
-  * :!: The ''grep'' here confirms the expected Modeline ((if grep reports nothing, use whatever is reported instead)) +
-  * :!: This cannot be used on Wayland currently +
-  * :!: This expects ''amdgpu'' DDX driver to be used ((''modesetting'' has a 4K RB resolution without any settings require on Xorg))+
  
-  cvt --verbose --reduced '3840' '2160' '60' | grep 'Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync'+  ''99-graphics.conf''
  
-  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' 
 + 
 +====== Specific Screens ====== 
 + 
 +===== Acer S271HL ===== 
 + 
 +  * See [[devices:acer_s271hl|Acer S271HL]] 
 + 
 +  * 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 mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
  
 <code> <code>
 Section "Monitor" Section "Monitor"
-    Identifier      "HDMI-A-0+    Identifier "HDMI-1
-    Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync +    Modeline "1920x1080_75"  167.85  1920 1928 1960 2000  1080 1105 1113 1119 +hsync -vsync 
-    Option          "PreferredMode" "3840x2160R"+    Option "PreferredMode" "1920x1080_75"
 EndSection</code> EndSection</code>
 +
 +==== NVIDIA ====
 +
 +  * https://blogshit.baka.fi/2020/07/xorg-custom-resolutions/
 +  * https://download.nvidia.com/XFree86/Linux-x86_64/510.54/README/xconfigoptions.html
 +
 +<code>
 +Section "Monitor"
 +    Identifier "S271HL-75Hz"
 +    Modeline "1920x1080_75"  167.85  1920 1928 1960 2000  1080 1105 1113 1119 +hsync -vsync
 +EndSection
 +
 +Section "Screen"
 +    Identifier "Screen0"
 +    Option "ModeValidation" "HDMI-0: NoMaxPClkCheck,NoEdidMaxPClkCheck,NoHorizSyncCheck,NoVertRefreshCheck,AllowNonEdidModes"
 +    Monitor "S271HL-75Hz"
 +EndSection</code>
 +
 +====== Monitor/Display ======
  
 ===== 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 minor 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 31: Line 59:
 <code> <code>
 Section "Screen" Section "Screen"
-    Identifier      "Deep Color Screen" +    Identifier "Deep Color Screen" 
-    DefaultDepth    30+    DefaultDepth 30
 EndSection</code> EndSection</code>
  
-====== DDX ======+==== Verify ==== 
 + 
 +  * This may need changed to ''1'' instead for some distros 
 + 
 +  cat ~/'.local/share/xorg/Xorg.0.log' | grep 'Pixel depth' 
 + 
 +  cat ~/'.local/share/xorg/Xorg.0.log.old' | grep 'Pixel depth' 
 + 
 +====== Specific Drivers ======
  
 ===== amdgpu ===== ===== amdgpu =====
  
-  sudo dnf install 'xorg-x11-drv-amdgpu' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+==== Tweaked ==== 
 + 
 +  * https://wiki.archlinux.org/title/AMDGPU#Reduce_output_latency 
 + 
 +  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
  
 <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 ====
  
-  sudo dnf install 'xorg-x11-drv-intel' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  * 2023/03/28: Last tested on Fedora 37 with a RX 6600 XT 
 + 
 +  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
  
 <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 dnf install 'xorg-x11-drv-nouveau' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  * 2023/05/28: Last tested on Ubuntu 23.04 with Intel UHD 630 
 + 
 +  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
  
 <code> <code>
 Section "OutputClass" Section "OutputClass"
-    Identifier  "NVIDIA Graphics" +    Identifier "Intel Graphics" 
-    MatchDriver "nouveau+    MatchDriver "i915
-    Driver      "nouveau+    Driver "intel
-    Option      "DRI"       "3" +    Option "DRI" "3
-EndSection</code>+    Option "AccelMethod" "sna" 
 +    Option "TearFree" "1" 
 +    Option "TripleBuffer" "1" 
 +    Option "SwapbuffersWait" "1
 +EndSection 
 +</code>
  
-===== radeon =====+===== NVIDIA =====
  
-  * Expects pre-SI GPUs ((HD6000 series and lower, and non-SI HD7000 series)) +  * ''Coolbits'' at ''28'' unlocks all available overclocking settings
-  * 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''))+
  
-  sudo dnf install 'xorg-x11-drv-ati' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  sudo -e '/etc/X11/xorg.conf.d/nvidia.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>
  
/var/www/wiki/data/attic/notes/xorg.conf_snippets.1575170294.txt.gz · Last modified: 2019/11/30 22:18 by Sean Rhone