notes:xorg.conf_snippets
This is an old revision of the document!
Table of Contents
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
- 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
sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
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
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'
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
TCL 55S405
- Reduces HDMI bandwidth for 4K@60Hz
- Fixes Polaris HDMI instability and incorrect brightness with certain DisplayPort-to-HDMI cables
- Only for
amdgpu
, asmodesetting
presents a CVT-RB resolution automatically
sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Section "Monitor" Identifier "HDMI-A-0" Modeline "3840x2160R" 533.00 3840 3888 3920 4000 2160 2163 2168 2222 +hsync -vsync Option "PreferredMode" "3840x2160R" EndSection
Monitor/Display
Deep Color
- The lack-of quotes around
30
is intentional and required syntax - This may cause issues with programs not expecting 30-bit color 1)
- This can cause games in Wine to not start under some circumstances 2)
- There is no known benefit to enabling this as of 2019/10/22
sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Section "Screen" Identifier "Deep Color Screen" DefaultDepth 30 EndSection
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'
Section "OutputClass" Identifier "AMD Graphics" MatchDriver "amdgpu" Driver "amdgpu" Option "DRI" "3" Option "TearFree" "0" EndSection
amdgpu
sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Section "OutputClass" Identifier "AMD Graphics" MatchDriver "amdgpu" Driver "amdgpu" Option "DRI" "3" Option "TearFree" "0" EndSection
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'
Section "OutputClass" Identifier "Intel Graphics" MatchDriver "i915" Driver "intel" Option "DRI" "3" Option "TearFree" "0" EndSection
nouveau
sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Section "OutputClass" Identifier "NVIDIA Graphics" MatchDriver "nouveau" Driver "nouveau" Option "DRI" "3" EndSection
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'
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
radeon
- Expects pre-SI GPUs 3)
- For SI, CIK, and newer GPUs, use
amdgpu
, along with enablingsi_support
andcik_support
respectively for theamdgpu
kernel module 4) - 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'
Section "OutputClass" Identifier "AMD Graphics" MatchDriver "radeon" Driver "radeon" Option "DRI" "3" Option "SwapbuffersWait" "0" Option "TearFree" "0" Option "AccelMethod" "EXA" EndSection
NVIDIA Proprietary
General
Coolbits
at28
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'
Option "Coolbits" "28"
Environment Variables
- Sets pre-rendered frames from the default to 1
- Apparently reduces CPU usage for desktop environments rendered with the NVIDIA GPU
echo 'export __GL_MaxFramesAllowed=1' | sudo tee '/etc/profile.d/nvidia-custom.sh' > '/dev/null' && cat '/etc/profile.d/nvidia-custom.sh'
sudo -e '/etc/profile.d/nvidia-custom.sh'
Disable PRIME Render Offload
- Required if planning to use external displays
Coolbits
is not required here, but may be useful- This expects Fedora and RPM Fusion's NVIDIA driver package for the
cp
ofnvidia.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'
Option "PrimaryGPU" "yes" Option "Coolbits" "28"
/var/www/wiki/data/attic/notes/xorg.conf_snippets.1646269796.txt.gz ยท Last modified: 2022/03/02 22:09 (external edit)