notes:xorg.conf_snippets
This is an old revision of the document!
Table of Contents
Monitor/Display
4K@60Hz RB
- 4k@60Hz CVT-RB
- Fixes unstable HDMI at 4K@60Hz, and overly-bright colors on DisplayPort
This cannot be used on Wayland currently
cvt --verbose --reduced '3840' '2160' '60' | grep 'Modeline "3840x2160R" 533.00 3840 3888 3920 4000 2160 2163 2168 2222 +hsync -vsync'
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
Deep Color
- The lack-of quotes around
30is intentional and required syntax This may cause minor issues with programs not expecting 30-bit color 3)
This can cause games in Wine to not start under some circumstances 4)
- 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
DDX
amdgpu
sudo dnf install 'xorg-x11-drv-amdgpu' -y && 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
sudo dnf install 'xorg-x11-drv-intel' -y && 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 dnf install 'xorg-x11-drv-nouveau' -y && 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 dnf install xorg-x11-drv-intel xorg-x11-drv-nouveau -y && 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 5)
- For SI, CIK, and newer GPUs, use
amdgpu, along with enablingsi_supportandcik_supportrespectively for theamdgpukernel module 6)
sudo dnf install 'xorg-x11-drv-ati' -y && 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
Nightwane
The
Modelineexpects an Acer S271HL monitor to be used over DVI
sudo dnf install 'xorg-x11-drv-ati' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Section "Monitor"
Identifier "DVI-1"
Modeline "1920x1080_75" 164.61 1920 1944 1976 2008 1080 1083 1088 1093 +hsync +vsync
Option "PreferredMode" "1920x1080_75"
EndSection
Section "OutputClass"
Identifier "AMD Graphics"
MatchDriver "radeon"
Driver "radeon"
Option "DRI" "3"
Option "SwapbuffersWait" "0"
Option "TearFree" "0"
Option "AccelMethod" "EXA"
EndSection
NVIDIA Proprietary
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
Coolbitsis not required here, but may be useful
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"
1)
if grep reports nothing, use whatever is reported instead
2)
modesetting has a 4K RB resolution without any settings require on Xorg3)
GpuTest's fur ring doesn't render right, RS's NXT client's splash screen is gray
4)
FFXIV crashes on start-up due to a DirectX error
5)
HD6000 series and lower, and non-SI HD7000 series
6)
see
modinfo -p amdgpuC:/www/wiki/data/attic/notes/xorg.conf_snippets.1591089294.txt.gz ยท Last modified: by Sean Rhone
