User Tools

Site Tools


bsd:notes:xorg.conf_snippets

This is an old revision of the document!


Debugging

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 'intel('
cat '/var/log/Xorg.0.log' | grep 'modeset('
cat '/var/log/Xorg.0.log' | grep 'DRI3'
cat '/var/log/Xorg.0.log' | grep 'iris'
pciconf -lv | grep -B3 display

Graphics

intel

  • glxgears does over 9000 FPS 1) with intel vs 7000 modesetting
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'
Section "OutputClass"
    Identifier "Intel (intel custom)"
    MatchDriver "i915"
    Driver "intel"
    Option "AccelMethod" "SNA"
    Option "DRI" "3"
    Option "TearFree" "0"
    Option "VSync" "0"
    Option "PageFlip" "0"
    Option "SwapbuffersWait" "0"
    Option "TripleBuffer" "0"
    Option "LinearFramebuffer" "1"
EndSection

# End

modesetting

  • :?: 2025/10/23: Glitches 15.0-BETA2 2)
su -
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-graphics-custom.conf'
Section "OutputClass"
    Identifier "Intel (modesetting custom)"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

# End

Input

evdev

su -
pkg install 'xf86-input-evdev'

webcamd

  • xf86-input-evdev requires webcamd
pkg install 'webcamd'
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'
Section "InputClass"
    Identifier "BY Tech Gaming Keyboard (evdev custom)"
    MatchUSBID "258a:010c"
    Driver "evdev"
    Option "AccelerationProfile" "-1"
    Option "AccelerationScheme" "none"
EndSection

# End

Mouse

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)"
    MatchUSBID "373e:0021"
    Driver "evdev"
    Option "AccelerationProfile" "-1"
    Option "AccelerationScheme" "none"
EndSection

# End

Tablet

  • 2024/12/08: Finger/pad touch doesn't work 3) 4)
  • :?: 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'
Section "InputClass"
    Identifier "Wacom CTH-470 (evdev custom)"
    MatchUSBID "056a:00de"
    Driver "evdev"
    Option "Mode" "Absolute"
    Option "AccelerationProfile" "-1"
    Option "AccelerationScheme" "none"
EndSection

# End

Synaptics

  • :!: The only one not evdev
pkg install 'xf86-input-synaptics'
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-touchpad-custom.conf'
Section "InputClass"
    Identifier "Touchpad (synaptics custom)"
    MatchProduct "DELL0819:00"
    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

# End
2)
GW2 particularly; also rarely happens with intel with Vsync enabled in-game but pronounced in certain areas like that purple shock-floor Fractal with rotating shock-walls
3)
I only use stylus with osu! so not a real issue :p
4)
finger touch can be used in Absolute mode with wacom driver, see older revision
/srv/www/wiki/data/attic/bsd/notes/xorg.conf_snippets.1761458040.txt.gz · Last modified: by Sean Rhone