User Tools

Site Tools


linux: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
linux:notes:xorg.conf_snippets [2024/08/25 17:40] – [Acer S271HL] 75hz Sean Rhonelinux:notes:xorg.conf_snippets [2025/05/16 21:39] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Notes ======+====== Debugging ======
  
-  * :!: Anything here expects Xorg and not Wayland +  mousepad '/var/log/Xorg.0.log'
-  * ''Identifier'will need changed for different display connections and drivers+
  
-====== Config File ======+  cat '/var/log/Xorg.0.log' | grep 'Using input driver'
  
-  ''99-graphics.conf''+  cat '/var/log/Xorg.0.log' | grep 'modeset('
  
-  sudo mkdir -p '/etc/X11/xorg.conf.d&& sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  cat '/var/log/Xorg.0.log| grep 'intel:'
  
-====== Specific Screens ======+  cat '/var/log/Xorg.0.log' | grep 'DRI3'
  
-===== Acer S271HL =====+  cat '/var/log/Xorg.0.log' | grep 'iris'
  
-  * [[devices;displays;acer_s271hl|Acer S271HL]]+===== GNOME =====
  
-  * Last updated: 2024/08/25 +  cat ~/'.local/share/xorg/Xorg.'*'.log| grep 'Using input driver'
-  :!: The ''Identifier'' expects ''modesetting'' ((''intel'' is ''HDMI1'' no-dash))+
  
-  sudo mkdir -'/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  gnome-text-editor ~/'.local/share/xorg/Xorg.1.log'
  
-<code> +====== Distro ======
-Section "Monitor" +
-    Identifier "HDMI-1" +
-    Modeline "1920x1080_75.00"  167.85  1920 1928 1960 2000  1080 1105 1113 1119 +hsync -vsync +
-    Modeline "1280x720_75.00"   95.75  1280 1360 1488 1696  720 723 728 755 -hsync +vsync +
-    Modeline "1024x768_75.00"   82.00  1024 1088 1192 1360  768 771 775 805 -hsync +vsync +
-    Option "PreferredMode" "1920x1080_75.00" +
-EndSection</code>+
  
-==== NVIDIA ====+  * [[linux;distros;debian_12_xfce|Debian 12 (Xfce)]]
  
-  * https://blogshit.baka.fi/2020/07/xorg-custom-resolutions/ +====== Specific Screens ====== 
-  * https://download.nvidia.com/XFree86/Linux-x86_64/510.54/README/xconfigoptions.html+ 
 +===== HP 27vx ===== 
 + 
 +  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-monitor-custom.conf'
  
 <code> <code>
 Section "Monitor" Section "Monitor"
-    Identifier "S271HL-75Hz+    Identifier "HDMI-1
-    Modeline "1920x1080_75 167.85  1920 1928 1960 2000  1080 1105 1113 1119 +hsync -vsync+    Modeline "1920x1080_74165.612 1920 1928 1960 2000 1080 1105 1113 1119 +HSync -VSync 
 +    Modeline "1280x720_74" 75.077 1280 1288 1320 1360 720 732 740 746 +HSync -VSync 
 +    Modeline "1024x768_74" 65.03 1024 1032 1064 1104 768 782 790 796 +HSync -VSync 
 +    Option "PreferredMode" "1920x1080_74"
 EndSection EndSection
  
-Section "Screen" +# End</code>
-    Identifier "Screen0" +
-    Option "ModeValidation" "HDMI-0: NoMaxPClkCheck,NoEdidMaxPClkCheck,NoHorizSyncCheck,NoVertRefreshCheck,AllowNonEdidModes" +
-    Monitor "S271HL-75Hz" +
-EndSection</code>+
  
-====== Monitor/Display ======+====== Graphics ======
  
-===== Deep Color =====+===== modesetting =====
  
-  * https://wiki.gentoo.org/wiki/30bpp +  * 2025/04/14Preferred over ''intel''
-  * 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'+  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-graphics-custom.conf'
  
 <code> <code>
-Section "Screen+Section "OutputClass
-    Identifier "Deep Color Screen+    Identifier "Intel (modesetting custom)
-    DefaultDepth 30 +    MatchDriver "i915" 
-EndSection</code>+    Driver "modesetting" 
 +EndSection
  
-==== Verify ==== +End</code>
- +
-  * [[notes:misc_linux#xorg_debug|Xorg Debug]] +
- +
-  Pixel depth +
- +
-====== GPU ====== +
- +
-===== amdgpu ===== +
- +
-  * https://wiki.archlinux.org/title/AMDGPU#Reduce_output_latency +
- +
-  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 ===== ===== intel =====
  
-  * 2024/06/11: Last tested on openSUSE Tumbleweed with Intel UHD 630+  sudo apt install 'xserver-xorg-video-intel'
  
-  sudo zypper install -'xf86-video-intel' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  sudo mkdir -'/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-graphics-custom.conf'
  
 <code> <code>
 Section "OutputClass" Section "OutputClass"
-    Identifier "Intel Graphics"+    Identifier "Intel (intel custom)"
     MatchDriver "i915"     MatchDriver "i915"
     Driver "intel"     Driver "intel"
     Option "DRI" "3"     Option "DRI" "3"
     Option "TearFree" "0"     Option "TearFree" "0"
 +    Option "VSync" "0"
 +    Option "PageFlip" "0"
 +    Option "SwapbuffersWait" "0"
     Option "TripleBuffer" "0"     Option "TripleBuffer" "0"
-EndSection</code>+    Option "LinearFramebuffer" "1" 
 +EndSection
  
-===== NVIDIA ===== +# End</code>
- +
-  * ''Coolbits'' at ''28'' unlocks all available overclocking settings +
- +
-  sudo -e '/etc/X11/xorg.conf.d/nvidia.conf' +
- +
-<code> +
-Section "OutputClass" +
-    Identifier "nvidia" +
-    MatchDriver "nvidia-drm" +
-    Option "Coolbits" "28" +
-    Option "AllowUnofficialGLXProtocol" "1" +
-EndSection</code>+
  
 ====== Input ====== ====== Input ======
  
-===== libinput =====+===== Keyboard =====
  
-  * Last tested: 2024/06/11 on openSUSE Tumbleweed+  sudo apt install 'xserver-xorg-input-evdev'
  
-  sudo -e '/etc/X11/xorg.conf.d/99-libinput.conf'+  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-keyboard-custom.conf'
  
 <code> <code>
 Section "InputClass" Section "InputClass"
-    Identifier "Pointer (libinput custom)" +    Identifier "BY Tech Gaming Keyboard (evdev custom)" 
-    MatchIsPointer "on"+    MatchUSBID "258a:010c"
     MatchDevicePath "/dev/input/event*"     MatchDevicePath "/dev/input/event*"
-    Driver "libinput+    Driver "evdev
-    Option "AccelProfile" "flat"+    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none"
 EndSection EndSection
  
-Section "InputClass" +# End</code>
-    Identifier "Keyboard (libinput custom)" +
-    MatchIsKeyboard "on" +
-    MatchDevicePath "/dev/input/event*" +
-    Driver "libinput" +
-    Option "AccelProfile" "flat" +
-EndSection +
- +
-Section "InputClass" +
-    Identifier "Touchpad (libinput custom)" +
-    MatchIsTouchpad "on" +
-    MatchDevicePath "/dev/input/event*" +
-    Driver "libinput" +
-    Option "AccelProfile" "flat" +
-    Option "ClickMethod" "buttonareas" +
-    Option "DisableWhileTyping" "off" +
-    Option "NaturalScrolling" "off" +
-    Option "SendEventsMode" "disabled-on-external-mouse" +
-    Option "Tapping" "off" +
-EndSection</code> +
- +
-===== evdev ===== +
- +
-  * Last tested: 2024/06/11 on openSUSE Tumbleweed+
  
-  * :!: Touchpad needed ''synaptics'' instead of ''evdev''+===== Mouse =====
  
-  sudo zypper install -y 'xf86-input-evdev' && sudo -e '/etc/X11/xorg.conf.d/99-evdev.conf'+  sudo apt install 'xserver-xorg-input-evdev'
  
-  sudo zypper install -'xf86-input-synaptics'+  sudo mkdir -'/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-mouse-custom.conf'
  
 <code> <code>
 Section "InputClass" Section "InputClass"
-    Identifier "Pointer (evdev custom)" +    Identifier "ATTACK SHARK R6 Mouse (evdev custom)" 
-    MatchIsPointer "on"+    MatchUSBID "373e:0021"
     MatchDevicePath "/dev/input/event*"     MatchDevicePath "/dev/input/event*"
     Driver "evdev"     Driver "evdev"
Line 175: Line 115:
 EndSection EndSection
  
 +# End</code>
 +
 +===== Tablet =====
 +
 +  sudo apt install 'xserver-xorg-input-evdev'
 +
 +  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-tablet-custom.conf'
 +
 +<code>
 Section "InputClass" Section "InputClass"
-    Identifier "Keyboard (evdev custom)" +    Identifier "Wacom CTH-470 (evdev custom)" 
-    MatchIsKeyboard "on"+    MatchUSBID "056a:00de"
     MatchDevicePath "/dev/input/event*"     MatchDevicePath "/dev/input/event*"
     Driver "evdev"     Driver "evdev"
 +    Option "Mode" "Absolute"
     Option "AccelerationProfile" "-1"     Option "AccelerationProfile" "-1"
     Option "AccelerationScheme" "none"     Option "AccelerationScheme" "none"
 EndSection EndSection
  
 +# End</code>
 +
 +===== Touchpad =====
 +
 +  sudo apt install 'xserver-xorg-input-synaptics'
 +
 +  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-touchpad-custom.conf'
 +
 +<code>
 Section "InputClass" Section "InputClass"
     Identifier "Touchpad (synaptics custom)"     Identifier "Touchpad (synaptics custom)"
-    MatchIsTouchpad "on"+    MatchProduct "DELL0819:00"
     MatchDevicePath "/dev/input/event*"     MatchDevicePath "/dev/input/event*"
     Driver "synaptics"     Driver "synaptics"
Line 207: Line 166:
 EndSection EndSection
  
-Section "InputClass" +# End</code>
-    Identifier "Tablet (evdev custom)" +
-    MatchIsTablet "on" +
-    MatchDevicePath "/dev/input/event*" +
-    Driver "evdev" +
-    Option "AccelerationProfile" "-1" +
-    Option "AccelerationScheme" "none" +
-EndSection +
- +
-Section "InputClass" +
-    Identifier "Touchscreen (evdev custom)" +
-    MatchIsTouchscreen "on" +
-    MatchDevicePath "/dev/input/event*" +
-    Driver "evdev" +
-    Option "AccelerationProfile" "-1" +
-    Option "AccelerationScheme" "none" +
-EndSection</code>+
  
/srv/www/wiki/data/attic/linux/notes/xorg.conf_snippets.1724622057.txt.gz · Last modified: (external edit)