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/10/06 17:44] Sean Rhonelinux:notes:xorg.conf_snippets [2025/05/16 21:39] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Logs ======+====== Debugging ======
  
-  gio open ~/'.local/share/xorg/Xorg.1.log'+  mousepad '/var/log/Xorg.0.log'
  
-  gio open ~/'.local/share/xorg'+  cat '/var/log/Xorg.0.log' | grep 'Using input driver' 
 + 
 +  cat '/var/log/Xorg.0.log' | grep 'modeset(' 
 + 
 +  cat '/var/log/Xorg.0.log' | grep 'intel:' 
 + 
 +  cat '/var/log/Xorg.0.log' | grep 'DRI3' 
 + 
 +  cat '/var/log/Xorg.0.log' | grep 'iris' 
 + 
 +===== GNOME ===== 
 + 
 +  cat ~/'.local/share/xorg/Xorg.'*'.log' | grep 'Using input driver' 
 + 
 +  gnome-text-editor ~/'.local/share/xorg/Xorg.1.log' 
 + 
 +====== Distro ====== 
 + 
 +  * [[linux;distros;debian_12_xfce|Debian 12 (Xfce)]] 
 + 
 +====== Specific Screens ====== 
 + 
 +===== HP 27vx ===== 
 + 
 +  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-monitor-custom.conf' 
 + 
 +<code> 
 +Section "Monitor" 
 +    Identifier "HDMI-1" 
 +    Modeline "1920x1080_74" 165.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 
 + 
 +# End</code> 
 + 
 +====== Graphics ====== 
 + 
 +===== modesetting ===== 
 + 
 +  * 2025/04/14: Preferred over ''intel'' 
 + 
 +  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-graphics-custom.conf' 
 + 
 +<code> 
 +Section "OutputClass" 
 +    Identifier "Intel (modesetting custom)" 
 +    MatchDriver "i915" 
 +    Driver "modesetting" 
 +EndSection 
 + 
 +# End</code> 
 + 
 +===== intel ===== 
 + 
 +  sudo apt install 'xserver-xorg-video-intel' 
 + 
 +  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-graphics-custom.conf' 
 + 
 +<code> 
 +Section "OutputClass" 
 +    Identifier "Intel (intel custom)" 
 +    MatchDriver "i915" 
 +    Driver "intel" 
 +    Option "DRI" "3" 
 +    Option "TearFree" "0" 
 +    Option "VSync" "0" 
 +    Option "PageFlip" "0" 
 +    Option "SwapbuffersWait" "0" 
 +    Option "TripleBuffer" "0" 
 +    Option "LinearFramebuffer" "1" 
 +EndSection 
 + 
 +# End</code>
  
 ====== Input ====== ====== Input ======
  
-===== evdev =====+===== Keyboard ===== 
 + 
 +  sudo apt install 'xserver-xorg-input-evdev' 
 + 
 +  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-keyboard-custom.conf' 
 + 
 +<code> 
 +Section "InputClass" 
 +    Identifier "BY Tech Gaming Keyboard (evdev custom)" 
 +    MatchUSBID "258a:010c" 
 +    MatchDevicePath "/dev/input/event*" 
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "-1" 
 +    Option "AccelerationScheme" "none" 
 +EndSection 
 + 
 +# End</code>
  
-  * [[linux:distros:ubuntu|Ubuntu]]+===== Mouse =====
  
-  sudo apt install xserver-xorg-input-evdev xserver-xorg-input-synaptics+  sudo apt install 'xserver-xorg-input-evdev'
  
-  sudo -e '/etc/X11/xorg.conf.d/99-evdev.conf'+  sudo mkdir -p '/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 25: 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 57: 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.1728251059.txt.gz · Last modified: by Sean Rhone