User Tools

Site Tools


bsd: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
bsd:notes:xorg.conf_snippets [2024/12/18 03:48] – [evdev TODO] Sean Rhonebsd:notes:xorg.conf_snippets [2026/05/29 20:32] (current) Sean Rhone
Line 2: Line 2:
  
   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 '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 11: Line 15:
   cat '/var/log/Xorg.0.log' | grep 'iris'   cat '/var/log/Xorg.0.log' | grep 'iris'
  
-====== Specific Screens ======+  pciconf -lv | grep -B3 display 
 + 
 +====== Monitor ======
  
-===== HP 27vx =====+  * https://tomverbeure.github.io/video_timings_calculator
  
-  * [[devices:displays:hp_27vx|Notes]] +===== HP S2031 =====
-  * [[https://tomverbeure.github.io/video_timings_calculator|Video Timings Calculator]] (''CVT-RBv2 Modeline'')+
  
-  * Last tested on [[bsd;freebsd_14.2_xfce|FreeBSD 14.2 (Xfce)]] with Intel UHD 630 (onboard HDMI)+  * [[devices:displays:hp_s2031|Notes]]
  
   su -   su -
Line 27: Line 32:
 Section "Monitor" Section "Monitor"
     Identifier "HDMI-1"     Identifier "HDMI-1"
-    Modeline "1920x1080_74165.612 1920 1928 1960 2000 1080 1105 1113 1119 +HSync -VSync +    Modeline "1600x900_76119.125 1600 1608 1640 1680 900 919 927 933 +HSync -VSync 
-    Modeline "1280x720_7475.077 1280 1288 1320 1360 720 732 740 746 +HSync -VSync +    Modeline "1280x720_7677.209 1280 1288 1320 1360 720 733 741 747 +HSync -VSync 
-    Modeline "1024x768_7465.03 1024 1032 1064 1104 768 782 790 796 +HSync -VSync +    Modeline "1024x768_7666.787 1024 1032 1064 1104 768 782 790 796 +HSync -VSync 
-    Option "PreferredMode" "1920x1080_74+    Modeline "800x600_76" 41.599 800 808 840 880 600 608 616 622 +HSync -VSync 
-EndSection</code>+    Modeline "640x480_76" 27.25 640 648 680 720 480 484 492 498 +HSync -VSync 
 +    Option "PreferredMode" "1600x900_76
 +EndSection 
 + 
 +# End</code>
  
 ====== Graphics ====== ====== Graphics ======
  
-===== modesetting =====+===== intel =====
  
-  * Last tested on [[bsd;freebsd_14.2_xfce|FreeBSD 14.2 (Xfce)]] with Intel UHD 630+  * :?: 2026/04/24: ''glxgears'' was faster with HT disabled ((9.6k vs 9.7k))
  
   su -   su -
 +
 +  pkg install 'xf86-video-intel'
  
   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-graphics-custom.conf'   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-graphics-custom.conf'
Line 45: Line 56:
 <code> <code>
 Section "OutputClass" Section "OutputClass"
-    Identifier "Intel (modesetting custom)"+    Identifier "Intel (intel custom)"
     MatchDriver "i915"     MatchDriver "i915"
-    Driver "modesetting+    Driver "intel" 
-EndSection</code>+    Option "AccelMethod" "SNA" 
 +    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
  
-===== intel =====+# End</code>
  
-  * Last tested on [[bsd;freebsd_14.2_xfce|FreeBSD 14.2 (Xfce)]] with Intel UHD 630 +===== modesetting =====
- +
-  * :!: Xfce compositor exhibits laggy window dragging when specifically using ''intel'' vs ''modesetting'' (input latency is lower with compositor disabled on both drivers) +
-  * 2024/12/12: [[games:bsd:devilutionx|DevilutionX]] has odd artifacting at mouse cursor when left-mouse is held down +
-  * ''glxgears'' does over ''9000'' FPS 8-) with ''intel'' vs ''7000'' modesetting+
  
   su -   su -
- 
-  pkg install 'xf86-video-intel' 
  
   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-graphics-custom.conf'   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-graphics-custom.conf'
Line 66: Line 80:
 <code> <code>
 Section "OutputClass" Section "OutputClass"
-    Identifier "Intel (intel custom)"+    Identifier "Intel (modesetting custom)"
     MatchDriver "i915"     MatchDriver "i915"
-    Driver "intel+    Driver "modesetting
-    Option "DRI" "3" +EndSection 
-EndSection</code>+ 
 +# End</code>
  
 ====== Input ====== ====== Input ======
  
-===== evdev TODO ===== +===== evdev =====
- +
-  * 2024/12/18: Wacom devices and apparently ''evdev'' itself requires ''webcamd''+
  
   su -   su -
  
-  sysrc webcamd_enable="YES"+  pkg install 'xf86-input-evdev'
  
-  pw groupmod 'webcamd' -m 'espionage724'+==== webcamd ====
  
-===== Keyboard =====+  * ''xf86-input-evdev'' requires ''webcamd''
  
-  su -+  pkg install 'webcamd'
  
-  pkg install 'xf86-input-evdev'+  sysrc webcamd_enable="YES" 
 + 
 +  pw groupmod 'webcamd' -m 'espionage724' 
 + 
 +==== Keyboard ====
  
   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-keyboard-custom.conf'   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-keyboard-custom.conf'
Line 96: Line 113:
     Identifier "BY Tech Gaming Keyboard (evdev custom)"     Identifier "BY Tech Gaming Keyboard (evdev custom)"
     MatchUSBID "258a:010c"     MatchUSBID "258a:010c"
-    MatchDevicePath "/dev/input/event*" 
     Driver "evdev"     Driver "evdev"
     Option "AccelerationProfile" "-1"     Option "AccelerationProfile" "-1"
     Option "AccelerationScheme" "none"     Option "AccelerationScheme" "none"
-EndSection</code>+EndSection
  
-===== Mouse =====+# End</code>
  
-  su - +==== Mouse ====
- +
-  pkg install 'xf86-input-evdev'+
  
   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-mouse-custom.conf'   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-mouse-custom.conf'
Line 112: Line 126:
 <code> <code>
 Section "InputClass" Section "InputClass"
-    Identifier "ATTACK SHARK R6 Mouse (evdev custom)" +    Identifier "CORSAIR HARPOON RGB PRO Gaming Mouse (evdev custom)" 
-    MatchUSBID "373e:0021" +    MatchUSBID "1b1c:1b75"
-    MatchDevicePath "/dev/input/event*"+
     Driver "evdev"     Driver "evdev"
     Option "AccelerationProfile" "-1"     Option "AccelerationProfile" "-1"
     Option "AccelerationScheme" "none"     Option "AccelerationScheme" "none"
-EndSection</code>+EndSection
  
-===== Tablet =====+# End</code>
  
-  * 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]]))+<code> 
 +    Identifier "ATTACK SHARK R6 Mouse (evdev custom)" 
 +    MatchUSBID "373e:0021" 
 +</code>
  
-  su -+==== Tablet ====
  
-  pkg install 'xf86-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
  
   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-tablet-custom.conf'   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-tablet-custom.conf'
Line 134: Line 151:
     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"
     Option "AccelerationProfile" "-1"     Option "AccelerationProfile" "-1"
     Option "AccelerationScheme" "none"     Option "AccelerationScheme" "none"
-EndSection</code>+EndSection
  
-===== Touchpad =====+# End</code>
  
-  su -+=== Wacom TODO === 
 + 
 +  * ''wacom'' driver is used without ''xorg.conf'' override 
 + 
 +  pkg install 'xf86-input-wacom' 
 + 
 +  ee '/usr/local/etc/X11/xorg.conf.d/wacom.conf.sample' 
 + 
 +<code> 
 +xsetwacom --set 'Wacom Bamboo 16FG 4x5 Pad pad' 'Button' '1' 'key +up' 
 +xsetwacom --set 'Wacom Bamboo 16FG 4x5 Pad pad' 'Button' '9' 'key +left' 
 +xsetwacom --set 'Wacom Bamboo 16FG 4x5 Pad pad' 'Button' '8' 'key +right' 
 +xsetwacom --set 'Wacom Bamboo 16FG 4x5 Pad pad' 'Button' '3' 'key +down'</code> 
 + 
 +===== synaptics ===== 
 + 
 +==== Touchpad ==== 
 + 
 +  * :!: Not ''evdev'' like above
  
   pkg install 'xf86-input-synaptics'   pkg install 'xf86-input-synaptics'
Line 153: Line 187:
     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 171: Line 204:
     Option "HorizEdgeScroll" "0"     Option "HorizEdgeScroll" "0"
     Option "VertEdgeScroll" "0"     Option "VertEdgeScroll" "0"
-EndSection</code>+EndSection 
 + 
 +# End</code> 
 + 
 +===== libinput ===== 
 + 
 +  * https://man.archlinux.org/man/libinput.4 
 + 
 +==== Mouse ==== 
 + 
 +  su - 
 + 
 +  mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/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>
  
/usr/local/www/wiki/data/attic/bsd/notes/xorg.conf_snippets.1734511717.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