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/07/09 07:16] – [amdgpu] Sean Rhonenotes:xorg.conf_snippets [2024/08/13 18:59] (current) – removed 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 ===== 
- 
-  * See [[devices:acer_s271hl|Acer S271HL]] 
- 
-  * Last updated: 2022/05/18 
-  * :!: This expects ''modesetting'' ((''amdgpu'' had low FPS)) 
- 
-  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' 
- 
-<code> 
-Section "Monitor" 
-    Identifier "HDMI-1" 
-    Modeline "1920x1080_75"  167.85  1920 1928 1960 2000  1080 1105 1113 1119 +hsync -vsync 
-    Option "PreferredMode" "1920x1080_75" 
-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" "DP-1: NoMaxPClkCheck,NoEdidMaxPClkCheck,NoHorizSyncCheck,NoVertRefreshCheck,AllowNonEdidModes" 
-    Monitor "S271HL-75Hz" 
-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> 
- 
-====== Monitor/Display ====== 
- 
-===== 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 
-  * :!: This may cause apps to crash 
- 
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' 
- 
-<code> 
-Section "Screen" 
-    Identifier      "Deep Color Screen" 
-    DefaultDepth    30 
-EndSection</code> 
- 
-==== Verify ==== 
- 
-  * This may need changed to ''0'' instead for some distros 
- 
-  cat ~/'.local/share/xorg/Xorg.1.log' | grep 'Pixel depth' 
- 
-  cat ~/'.local/share/xorg/Xorg.1.log.old' | grep 'Pixel depth' 
- 
-====== 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 ===== 
- 
-  * 2022/05/27: Diablo II: Resurrected has screen-tearing even with Vsync enabled in-game and ''TearFree=1'' when using ''amdgpu'', but is fine with ''modesetting'' 
-  * No known benefits over ''modesetting'' 
- 
-  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> 
- 
-===== intel ===== 
- 
-  * :!: 2022/03/02: This caused random diagonal tearing on Fedora 35 with GNOME 
-  * No known benefits over ''modesetting'' 
- 
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' 
- 
-<code> 
-Section "OutputClass" 
-    Identifier  "Intel Graphics" 
-    MatchDriver "i915" 
-    Driver      "intel" 
-    Option      "DRI"       "3" 
-    Option      "TearFree"  "0" 
-EndSection</code> 
- 
-===== intel + nouveau ===== 
- 
-  * For Optimus laptops 
- 
-  sudo zypper install -y xf86-video-intel xf86-video-nouveau 
- 
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' 
- 
-<code> 
-Section "OutputClass" 
-    Identifier  "Intel Graphics" 
-    MatchDriver "i915" 
-    Driver "intel" 
-    Option "DRI"       "3" 
-    Option "TearFree"  "0" 
-EndSection 
- 
-Section "OutputClass" 
-    Identifier  "NVIDIA Graphics" 
-    MatchDriver "nouveau" 
-    Driver "nouveau" 
-    Option "DRI"       "3" 
-EndSection</code> 
- 
-===== radeon ===== 
- 
-  * 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'')) 
-  * :!: 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> 
-Section "OutputClass" 
-    Identifier  "AMD Graphics" 
-    MatchDriver "radeon" 
-    Driver      "radeon" 
-    Option      "DRI"               "3" 
-    Option      "SwapbuffersWait"   "0" 
-    Option      "TearFree"          "0" 
-    Option      "AccelMethod"       "EXA" 
-EndSection</code> 
- 
-===== NVIDIA Proprietary ===== 
- 
-==== General ==== 
- 
-  * ''Coolbits'' at ''28'' unlocks all available overclocking settings 
- 
-  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 "Coolbits" "28"</code> 
  
C:/www/wiki/data/attic/notes/xorg.conf_snippets.1657365400.txt.gz · Last modified: by Sean Rhone