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 [2025/10/20 01:32] – [modesetting] Sean Rhonelinux:notes:xorg.conf_snippets [2026/04/08 09:17] (current) Sean Rhone
Line 1: Line 1:
 ====== Debugging ====== ====== Debugging ======
- 
-  * :!: TODO: [[bsd:notes:xorg.conf_snippets]] and [[bsd:freebsd_14.3_xfce#spinesnap4]] 
  
   mousepad '/var/log/Xorg.0.log'   mousepad '/var/log/Xorg.0.log'
 +
 +  cp '/var/log/Xorg.0.log' ~ && gio open ~/'Xorg.0.log'
  
   cat '/var/log/Xorg.0.log' | grep 'Using input driver'   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 'intel('
 +
 +  cat '/var/log/Xorg.0.log' | grep 'modeset('
  
   cat '/var/log/Xorg.0.log' | grep 'DRI3'   cat '/var/log/Xorg.0.log' | grep 'DRI3'
Line 15: Line 15:
   cat '/var/log/Xorg.0.log' | grep 'iris'   cat '/var/log/Xorg.0.log' | grep 'iris'
  
-===== GNOME =====+====== Xfce Resets ======
  
-  cat ~/'.local/share/xorg/Xorg.'*'.log' | grep 'Using input driver'+  rm -fv ~/'.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml'
  
-  gnome-text-editor ~/'.local/share/xorg/Xorg.1.log'+  rm -fv ~/'.config/xfce4/xfconf/xfce-perchannel-xml/pointers.xml'
  
-====== Distro ======+====== Graphics ======
  
-  * [[linux;distros;debian_12_xfce|Debian 12 (Xfce)]]+===== intel =====
  
-====== Specific Screens ======+  sudo zypper install 'xf86-video-intel'
  
-===== HP 27vx ===== +  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-graphics-custom.conf'
- +
-  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-monitor-custom.conf'+
  
 <code> <code>
-Section "Monitor+Section "OutputClass
-    Identifier "HDMI-1+    Identifier "Intel (intel custom)
-    Modeline "1920x1080_74165.612 1920 1928 1960 2000 1080 1105 1113 1119 +HSync -VSync +    MatchDriver "i915
-    Modeline "1280x720_7475.077 1280 1288 1320 1360 720 732 740 746 +HSync -VSync +    Driver "intel
-    Modeline "1024x768_7465.03 1024 1032 1064 1104 768 782 790 796 +HSync -VSync +    Option "AccelMethod" "SNA" 
-    Option "PreferredMode" "1920x1080_74"+    Option "DRI" "3" 
 +    Option "TearFree" "0" 
 +    Option "VSync" "0" 
 +    Option "PageFlip" "0" 
 +    Option "SwapbuffersWait" "0" 
 +    Option "TripleBuffer" "0" 
 +    Option "LinearFramebuffer" "1" 
 +    Option "Throttle" "0"
 EndSection EndSection
  
 # End</code> # End</code>
- 
-====== Graphics ====== 
  
 ===== modesetting ===== ===== modesetting =====
- 
-  * 2025/04/14: Preferred over ''intel'' 
-  * 2025/10/20: Tear-free from ''modesetting'' looks better in GW2 and WoW (likely Dota 2 too) ((forcing everything to ''1'' on ''intel'' still had tearing)) 
  
   sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-graphics-custom.conf'   sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-graphics-custom.conf'
Line 60: Line 60:
 # End</code> # End</code>
  
-===== intel =====+====== Monitor ======
  
-  sudo apt install 'xserver-xorg-video-intel'+  * https://tomverbeure.github.io/video_timings_calculator 
 +  * [[devices:displays:hp_s2031|HP S2031]] (76Hz) 
 +  * ''HDMI1'' (no-dash) = [[#intel|Intel DDX]]
  
-  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-graphics-custom.conf'+  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-monitor-custom.conf'
  
 <code> <code>
-Section "OutputClass+Section "Monitor
-    Identifier "Intel (intel custom)+    Identifier "HDMI1
-    MatchDriver "i915+    Modeline "1600x900_76119.125 1600 1608 1640 1680 900 919 927 933 +HSync -VSync 
-    Driver "intel+    Modeline "1280x720_7677.209 1280 1288 1320 1360 720 733 741 747 +HSync -VSync 
-    Option "DRI" "3+    Modeline "1024x768_7666.787 1024 1032 1064 1104 768 782 790 796 +HSync -VSync 
-    Option "TearFree" "0" +    Modeline "800x600_7641.599 800 808 840 880 600 608 616 622 +HSync -VSync 
-    Option "VSync" "0" +    Modeline "640x480_7627.25 640 648 680 720 480 484 492 498 +HSync -VSync 
-    Option "PageFlip" "0" +    Option "PreferredMode" "1600x900_76"
-    Option "SwapbuffersWait" "0" +
-    Option "TripleBuffer" "0+
-    Option "LinearFramebuffer" "1"+
 EndSection EndSection
  
Line 84: Line 83:
 ====== Input ====== ====== Input ======
  
-===== Keyboard =====+===== evdev =====
  
-  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'+  sudo zypper install 'xf86-input-evdev'
  
-<code> +==== Mouse ====
-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> +
- +
-===== Mouse =====+
  
-  sudo apt install 'xserver-xorg-input-evdev'+  ''MatchUSBID'' changes between wired USB-C and wireless receiver ((USB-C = ''373e:0021'', wireless = ''373e:0022''))
  
   sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-mouse-custom.conf'   sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-mouse-custom.conf'
Line 112: Line 99:
     Identifier "ATTACK SHARK R6 Mouse (evdev custom)"     Identifier "ATTACK SHARK R6 Mouse (evdev custom)"
     MatchUSBID "373e:0021"     MatchUSBID "373e:0021"
-    MatchDevicePath "/dev/input/event*" 
     Driver "evdev"     Driver "evdev"
     Option "AccelerationProfile" "-1"     Option "AccelerationProfile" "-1"
Line 120: Line 106:
 # End</code> # End</code>
  
-===== Tablet =====+==== Tablet ====
  
-  sudo apt install 'xserver-xorg-input-evdev'+  * 2024/12/08: Finger/pad touch doesn't work ((I only use stylus with [[games:bsd:wine:osu|osu!]] so not a //real// issue :p)) ((finger touch can be used in Absolute mode with ''wacom'' driver, see [[bsd:notes:xorg.conf_snippets?rev=1733705200#tablet|older revision]])) 
 +  * :?: TODO: There's 3 devices; ''Finger'' and ''Pad'can likely be disabled
  
   sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-tablet-custom.conf'   sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-tablet-custom.conf'
Line 130: Line 117:
     Identifier "Wacom CTH-470 (evdev custom)"     Identifier "Wacom CTH-470 (evdev custom)"
     MatchUSBID "056a:00de"     MatchUSBID "056a:00de"
-    MatchDevicePath "/dev/input/event*" 
     Driver "evdev"     Driver "evdev"
     Option "Mode" "Absolute"     Option "Mode" "Absolute"
Line 139: Line 125:
 # End</code> # End</code>
  
-===== Touchpad =====+===== synaptics =====
  
-  sudo apt install 'xserver-xorg-input-synaptics'+==== Touchpad ==== 
 + 
 +  * :!: Not ''evdev'' like the above 
 + 
 +  sudo zypper install 'xf86-input-synaptics'
  
   sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-touchpad-custom.conf'   sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-touchpad-custom.conf'
Line 149: Line 139:
     Identifier "Touchpad (synaptics custom)"     Identifier "Touchpad (synaptics custom)"
     MatchProduct "DELL0819:00"     MatchProduct "DELL0819:00"
-    MatchDevicePath "/dev/input/event*" 
     Driver "synaptics"     Driver "synaptics"
     Option "TapAndDragGesture" "0"     Option "TapAndDragGesture" "0"
Line 170: Line 159:
  
 # End</code> # End</code>
 +
 +===== libinput =====
 +
 +  * https://man.archlinux.org/man/libinput.4
 +
 +==== Mouse ====
 +
 +  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/10-mouse-custom.conf'
 +
 +<code>
 +Section "InputClass"
 +    Identifier "ATTACK SHARK R6 Mouse (libinput custom)"
 +    MatchUSBID "373e:0021"
 +    Driver "libinput"
 +    Option "AccelProfile" "flat"
 +    Option "AccelSpeed" "0"
 +EndSection
 +
 +# End</code>
 +
 +====== Xfce HDMI TODO ======
 +
 +<code>
 +#!/bin/bash
 +
 +'/usr/bin/xrandr' --output 'HDMI1' --set 'Broadcast RGB' 'Full'
 +'/usr/bin/xrandr' --output 'HDMI1' --set 'content type' 'Game'
 +'/usr/bin/xrandr' --output 'HDMI1' --set 'Colorspace' 'opRGB'
 +'/usr/bin/xrandr' --output 'HDMI1' --set 'audio' 'force-dvi'
 +
 +# End
 +
 +
 +'/usr/bin/bash' -c "'/usr/bin/xrandr' --output 'HDMI1' --set 'Broadcast RGB' 'Full' && '/usr/bin/xrandr' --output 'HDMI1' --set 'content type' 'Game' && '/usr/bin/xrandr' --output 'HDMI1' --set 'Colorspace' 'opRGB'"
 +
 +'/usr/bin/bash' -c "~/'.local/scripts/xrandr-HDMI.sh'"
 +
 +'/usr/bin/bash' -c "'/usr/bin/xfce4-terminal' -T 'openSUSE Updater' -I '/usr/share/icons/hicolor/scalable/apps/distributor.svg' -e ~/'.local/scripts/opensuse-updater.sh'"</code>
  
/var/www/wiki/data/attic/linux/notes/xorg.conf_snippets.1760938356.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki