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 [2020/06/12 03:14] – [Nightwane] Sean Rhonenotes:xorg.conf_snippets [2022/02/23 11:12] Sean Rhone
Line 1: Line 1:
 +====== Notes ======
 +
 +  * Anything here expects Xorg and not Wayland
 +  * ''Identifier'' will need changed for different display connections and drivers
 +
 +====== Config File ======
 +
 +  * ''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 =====
 +
 +  * Overclocks to 75Hz
 +  * Last updated: 2021/06/14
 +
 +  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
 +
 +<code>
 +Section "Monitor"
 +    Identifier "DVI-I-1"
 +    Modeline "1920x1080_75"  164.61  1920 1944 1976 2008  1080 1083 1088 1093 +hsync +vsync
 +    Option "PreferredMode" "1920x1080_75"
 +EndSection</code>
 +
 ====== Monitor/Display ====== ====== Monitor/Display ======
  
-===== 4K@60Hz RB =====+===== 4K@60Hz Reduced Blank =====
  
   * 4k@60Hz CVT-RB   * 4k@60Hz CVT-RB
   * Fixes unstable HDMI at 4K@60Hz, and overly-bright colors on DisplayPort   * 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))   * :!: 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'+  cvt --verbose --reduced '3840' '2160' '60'
  
   sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'   sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Line 15: Line 40:
 <code> <code>
 Section "Monitor" Section "Monitor"
-    Identifier      "HDMI-A-0"+    Identifier "HDMI-A-0"
     Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync     Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync
-    Option          "PreferredMode" "3840x2160R"+    Option "PreferredMode" "3840x2160R"
 EndSection</code> EndSection</code>
  
Line 23: Line 48:
  
   * 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 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 can cause games in Wine to not start under some circumstances ((FFXIV crashes on start-up due to a DirectX error))   * :!: 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   * There is no known benefit to enabling this as of 2019/10/22
Line 35: Line 60:
 EndSection</code> EndSection</code>
  
-====== DDX ======+====== Specific Drivers ====== 
 + 
 +===== modesetting ===== 
 + 
 +  * :!: TODO, this was figured out in order to use modesetting without uninstalling specific DDX drivers 
 + 
 +  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' 
 + 
 +<code> 
 +Section "OutputClass" 
 +    Identifier  "AMD Graphics" 
 +    MatchDriver "amdgpu" 
 +    Driver      "amdgpu" 
 +    Option      "DRI"       "3" 
 +    Option      "TearFree"  "0" 
 +EndSection</code>
  
 ===== amdgpu ===== ===== amdgpu =====
  
-  sudo dnf install 'xorg-x11-drv-amdgpu' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
  
 <code> <code>
Line 52: Line 92:
 ===== intel ===== ===== intel =====
  
-  sudo dnf install 'xorg-x11-drv-intel' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
  
 <code> <code>
Line 65: Line 105:
 ===== nouveau ===== ===== nouveau =====
  
-  sudo dnf install 'xorg-x11-drv-nouveau' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
  
 <code> <code>
Line 79: Line 119:
   * For Optimus laptops   * For Optimus laptops
  
-  sudo dnf install xorg-x11-drv-intel xorg-x11-drv-nouveau -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  sudo zypper install -y xf86-video-intel xf86-video-nouveau 
 + 
 +  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
  
 <code> <code>
Line 101: Line 143:
   * Expects pre-SI GPUs ((HD6000 series and lower, and non-SI HD7000 series))   * 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''))   * 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 dnf install 'xorg-x11-drv-ati' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
  
 <code> <code>
Line 115: Line 160:
 EndSection</code> EndSection</code>
  
-==== Nightwane ====+===== NVIDIA Proprietary =====
  
-  * :!: The ''Modeline'' expects an Acer S271HL monitor to be used over DVI +==== General ====
-  * This works with ''modesetting''+
  
-  sudo -'/etc/X11/xorg.conf.d/99-graphics.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>
-Section "Monitor" +        Option "Coolbits" "28"</code>
-    Identifier  "DVI-1" +
-    Modeline "1920x1080_75"  164.61  1920 1944 1976 2008  1080 1083 1088 1093 +hsync +vsync +
-    Option      "PreferredMode" "1920x1080_75" +
-EndSection</code> +
- +
-===== NVIDIA Proprietary =====+
  
 ==== Environment Variables ==== ==== Environment Variables ====
Line 145: Line 185:
   * :!: Required if planning to use external displays   * :!: Required if planning to use external displays
   * :!: ''Coolbits'' is not required here, but may be useful   * :!: ''Coolbits'' is not required here, but may be useful
 +  * :!: This expects Fedora and RPM Fusion's NVIDIA driver package for the ''cp'' of ''nvidia.conf''
 +  * :!: 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'   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'
/var/www/wiki/data/pages/notes/xorg.conf_snippets.txt · Last modified: 2024/05/02 03:12 by Sean Rhone