User Tools

Site Tools


bsd:notes:xorg.conf_snippets

This is an old revision of the document!


Debugging

mousepad '/var/log/Xorg.0.log'
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 'DRI3'
cat '/var/log/Xorg.0.log' | grep 'iris'

Specific Screens

HP 27vx

su -
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/99-graphics.conf'
Section "Monitor"
    Identifier "HDMI-1"
    Modeline "1920x1080_74" 165.612 1920 1928 1960 2000 1080 1105 1113 1119 +HSync -VSync
    Modeline "1360x768_74" 84.821 1360 1368 1400 1440 768 782 790 796 +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

Graphics

modesetting

su -
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/99-graphics.conf'
Section "OutputClass"
    Identifier "Intel (modesetting custom)"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

intel

  • 2024/12/01: Last tested on FreeBSD 14.2 (Xfce) with Intel UHD 630
  • :!: Xfce compositor exhibits laggy window dragging when specifically using intel vs modesetting (input latency is lower with compositor disabled on both drivers)
  • :!: intel DDX likely causes Xfce to crash back to tty if 2009Scape is fullscreen and Xfce screensaver starts
su -
pkg install 'xf86-video-intel' && mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/99-graphics.conf'
Section "OutputClass"
    Identifier "Intel (intel custom)"
    MatchDriver "i915"
    Driver "intel"
    Option "DRI" "3"
EndSection

Input

evdev

su -
pkg install 'xf86-input-evdev'
pkg install 'xf86-input-synaptics'
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/99-evdev.conf'
Section "InputClass"
    Identifier "Pointer (evdev custom)"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    Option "AccelerationProfile" "-1"
    Option "AccelerationScheme" "none"
EndSection

Section "InputClass"
    Identifier "Keyboard (evdev custom)"
    MatchIsKeyboard "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    Option "AccelerationProfile" "-1"
    Option "AccelerationScheme" "none"
EndSection

Section "InputClass"
    Identifier "Touchpad (synaptics custom)"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Driver "synaptics"
    Option "TapAndDragGesture" "0"
    Option "CoastingSpeed" "0"
    Option "PalmDetect" "0"
    Option "CircularScrolling" "0"
    Option "TapButton3" "0"
    Option "TapButton2" "0"
    Option "TapButton1" "0"
    Option "LBCornerButton" "0"
    Option "LTCornerButton" "0"
    Option "RBCornerButton" "0"
    Option "RTCornerButton" "0"
    Option "LockedDrags" "0"
    Option "HorizTwoFingerScroll" "0"
    Option "CornerCoasting" "0"
    Option "HorizEdgeScroll" "0"
    Option "VertEdgeScroll" "0"
EndSection

Section "InputClass"
    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

Test

mousepad '/var/log/Xorg.0.log'
cat '/var/log/Xorg.0.log' | grep 'Using input driver'

Mouse

su -
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-mouse-custom.conf'
Section "InputClass"
    Identifier "ATTACK SHARK R6 Mouse (evdev custom Pointer)"
    MatchUSBID "373e:0021"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    Option "AccelerationProfile" "-1"
    Option "AccelerationScheme" "none"
EndSection

Section "InputClass"
    Identifier "ATTACK SHARK R6 Mouse (evdev custom Keyboard)"
    MatchUSBID "373e:0021"
    MatchIsKeyboard "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    Option "AccelerationProfile" "-1"
    Option "AccelerationScheme" "none"
EndSection

Keyboard

su -
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-keyboard-custom.conf'
Section "InputClass"
    Identifier "BY Tech Gaming Keyboard (evdev custom Keyboard)"
    MatchUSBID "258a:010c"
    MatchIsKeyboard "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    Option "AccelerationProfile" "-1"
    Option "AccelerationScheme" "none"
EndSection

Section "InputClass"
    Identifier "BY Tech Gaming Keyboard (evdev custom Pointer)"
    MatchUSBID "258a:010c"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    Option "AccelerationProfile" "-1"
    Option "AccelerationScheme" "none"
EndSection

Tablet

  • Touch allows Absolute finger/touchpad for osu! but isn't really a benefit or useful outside of that
su -
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-tablet-custom.conf'
Section "InputClass"
    Identifier "Wacom CTH-470 (wacom custom)"
    MatchUSBID "056a:00de"
    MatchDevicePath "/dev/input/event*"
    Driver "wacom"
    Option "Touch" "on"
    Option "Mode" "Absolute"
EndSection

Joystick

su -
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-joystick-custom.conf'
Section "InputClass"
    Identifier "Microsoft SideWinder Precision Pro (USB) (evdev custom)"
    MatchUSBID "045e:0008"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
EndSection
/usr/local/www/wiki/data/attic/bsd/notes/xorg.conf_snippets.1733705200.txt.gz · Last modified: by Sean Rhone