notes:xorg.conf_snippets
This is an old revision of the document!
Table of Contents
Notes
Anything here expects Xorg and not Wayland
Identifierwill 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 Acer S271HL
- Last updated: 2022/05/18
The
IdentifierexpectsmodesettingIt's better to 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'
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
NVIDIA
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
Monitor/Display
Deep Color
- The lack-of quotes around
30is intentional and required syntax This may cause apps to crash
sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Section "Screen"
Identifier "Deep Color Screen"
DefaultDepth 30
EndSection
Verify
- This may need changed to
1instead 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
Tweaked
sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Section "OutputClass"
Identifier "AMD Graphics"
MatchDriver "amdgpu"
Driver "amdgpu"
Option "EnablePageFlip" "0"
Option "TearFree" "0"
EndSection
Alternate
- 2023/03/28: Last tested on Fedora 37 with a RX 6600 XT
sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Section "OutputClass"
Identifier "AMD Graphics"
MatchDriver "amdgpu"
Driver "amdgpu"
Option "TearFree" "1"
EndSection
intel
Tweaked
- 2023/05/17: Last tested on Ubuntu 23.04 with Intel UHD 630
sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Section "OutputClass"
Identifier "Intel Graphics"
MatchDriver "i915"
Driver "intel"
Option "DRI" "iris"
Option "TearFree" "0"
Option "TripleBuffer" "0"
Option "SwapbuffersWait" "0"
EndSection
Alternate
- 2023/03/21: Last tested on Fedora 37 with Intel UHD 630
sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Section "OutputClass"
Identifier "Intel Graphics"
MatchDriver "i915"
Driver "intel"
Option "DRI" "iris"
Option "TearFree" "1"
EndSection
NVIDIA
Coolbitsat28unlocks all available overclocking settings
sudo -e '/etc/X11/xorg.conf.d/nvidia.conf'
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Option "Coolbits" "28"
Option "AllowUnofficialGLXProtocol" "1"
EndSection
/usr/local/www/wiki/data/attic/notes/xorg.conf_snippets.1684320617.txt.gz ยท Last modified: (external edit)
