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 [2025/08/20 08:13] Sean Rhonebsd:notes:xorg.conf_snippets [2025/09/11 06:43] (current) – external edit 127.0.0.1
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'
Line 14: Line 16:
  
 ====== Graphics ====== ====== Graphics ======
- 
-===== modesetting ===== 
- 
-  * TODO: PCI ID match 
- 
-  su - 
- 
-  mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-graphics-custom.conf' 
- 
-<code> 
-Section "OutputClass" 
-    Identifier "Intel (modesetting custom)" 
-    MatchDriver "i915" 
-    Driver "modesetting" 
-EndSection 
- 
-# End</code> 
  
 ===== intel ===== ===== intel =====
  
-  * ''glxgears'' does over ''9000'' FPS (( 8-) )) with ''intel'' vs ''7000'' modesetting +  * ''glxgears'' does over 9000 FPS (( 8-) )) with ''intel'' vs 7000 ''modesetting'' 
-  * TODO: PCI ID match+  * TODO: https://docs.freebsd.org/en/books/handbook/x11/#x-config-gpu
  
   su -   su -
Line 48: Line 33:
     MatchDriver "i915"     MatchDriver "i915"
     Driver "intel"     Driver "intel"
 +    Option "AccelMethod" "SNA"
     Option "DRI" "3"     Option "DRI" "3"
     Option "TearFree" "0"     Option "TearFree" "0"
Line 55: Line 41:
     Option "TripleBuffer" "0"     Option "TripleBuffer" "0"
     Option "LinearFramebuffer" "1"     Option "LinearFramebuffer" "1"
 +EndSection</code>
 +
 +===== modesetting =====
 +
 +  su -
 +
 +  mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-graphics-custom.conf'
 +
 +<code>
 +Section "OutputClass"
 +    Identifier "Intel (modesetting custom)"
 +    MatchDriver "i915"
 +    Driver "modesetting"
 EndSection EndSection
  
Line 61: Line 60:
 ====== Input ====== ====== Input ======
  
-===== webcamd =====+===== libinput ===== 
 + 
 +==== 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" "-1" 
 +EndSection</code> 
 + 
 +===== evdev ===== 
 + 
 +==== webcamd ====
  
   * ''xf86-input-evdev'' requires ''webcamd''   * ''xf86-input-evdev'' requires ''webcamd''
Line 73: Line 91:
   pw groupmod 'webcamd' -m 'espionage724'   pw groupmod 'webcamd' -m 'espionage724'
  
-===== Keyboard =====+==== Keyboard ====
  
   su -   su -
Line 85: Line 103:
     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 +EndSection</code>
- +
-# End</code>+
  
-===== Mouse =====+==== Mouse ====
  
   su -   su -
Line 105: Line 120:
     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"
     Option "AccelerationScheme" "none"     Option "AccelerationScheme" "none"
-EndSection +EndSection</code>
- +
-# End</code>+
  
-===== Tablet =====+==== Tablet ====
  
   * 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]]))   * 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]]))
Line 128: Line 140:
     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 +EndSection</code>
- +
-# End</code>+
  
-===== Touchpad =====+===== Synaptics =====
  
   su -   su -
Line 149: Line 158:
     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 167: Line 175:
     Option "HorizEdgeScroll" "0"     Option "HorizEdgeScroll" "0"
     Option "VertEdgeScroll" "0"     Option "VertEdgeScroll" "0"
-EndSection +EndSection</code>
- +
-# End</code>+
  
/srv/www/wiki/data/attic/bsd/notes/xorg.conf_snippets.1755692020.txt.gz · Last modified: by Sean Rhone