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

Display

su -
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-monitor-custom.conf'

Graphics

intel

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"
    Option "Throttle" "0"
EndSection

# End

modesetting

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
  • 2025/10/26: TODO: Re-check if still required
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 1) 2)
  • :?: 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

Touchpad

  • :!: Not evdev like the above
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

libinput

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 (libinput custom)"
    MatchUSBID "373e:0021"
    Driver "libinput"
    Option "AccelProfile" "flat"
    Option "AccelSpeed" "0"
EndSection

# End

Logs

cat '/var/log/Xorg.0.log' | grep 'Using input driver'
[    24.226] (II) Using input driver 'libinput' for 'System keyboard multiplexer'
[    24.259] (II) Using input driver 'libinput' for 'System mouse'
[    24.264] (II) Using input driver 'evdev' for 'BY Tech Gaming Keyboard System Control'
[    24.265] (II) Using input driver 'evdev' for 'BY Tech Gaming Keyboard Consumer Control'
[    24.265] (II) Using input driver 'evdev' for 'BY Tech Gaming Keyboard Mouse'
[    24.265] (II) Using input driver 'evdev' for 'ATTACK SHARK R6 Mouse'
[    24.265] (II) Using input driver 'evdev' for 'ATTACK SHARK R6 Mouse Consumer Control'
[    24.266] (II) Using input driver 'evdev' for 'ATTACK SHARK R6 Mouse System Control'
[    24.266] (II) Using input driver 'synaptics' for 'DELL0819:00 044E:121F Mouse'
[    24.268] (II) Using input driver 'synaptics' for 'DELL0819:00 044E:121F TouchPad'
[    24.269] (II) Using input driver 'libinput' for 'Power Button'
[    24.273] (II) Using input driver 'libinput' for 'Sleep Button'
[    24.276] (II) Using input driver 'libinput' for 'AT keyboard'
[    24.283] (II) Using input driver 'evdev' for 'BY Tech Gaming Keyboard'
[    24.283] (II) Using input driver 'evdev' for 'BY Tech Gaming Keyboard'
[    24.283] (II) Using input driver 'evdev' for 'ATTACK SHARK R6 Mouse Keyboard'
[    24.284] (II) Using input driver 'libinput' for 'ACPI video extension'
  cat '/var/log/Xorg.0.log' | grep 'intel('
...
[    24.003] (II) intel(0): Using spanning desktop for initial modes
[    24.003] (II) intel(0): Output eDP-1 using initial mode 1920x1080 +0+0
[    24.003] (II) intel(0): Output HDMI-1 using initial mode 1600x900 +1920+0
[    24.003] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[    24.003] (==) intel(0): DPI set to (96, 96)
[    24.003] (II) intel(0): Allocated new frame buffer 3520x1080 stride 14080, untiled
[    24.003] (II) intel(0): [DRI2] Setup complete
[    24.003] (II) intel(0): [DRI2]   DRI driver: iris
[    24.003] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[    24.003] (==) intel(0): Backing store enabled
[    24.003] (==) intel(0): Silken mouse enabled
[    24.003] (II) intel(0): Initializing HW Cursor
[    24.004] (==) intel(0): DPMS enabled
[    24.004] (==) intel(0): Intel XvMC decoder enabled
[    24.004] (WW) intel(0): Disabling Xv because no adaptors could be initialized.
[    24.004] (II) intel(0): DRI2: Enabled
[    24.004] (II) intel(0): DRI3: Enabled
[    24.004] (WW) intel(0): Option "Throttle" is not used
[    24.004] (==) intel(0): hotplug detection: "enabled"
[    24.166] (II) intel(0): Setting screen physical size to 931 x 285
[    25.101] (II) intel(0): EDID vendor "HWP", prod id 10499
[    25.101] (II) intel(0): Using EDID range info for horizontal sync
[    25.101] (II) intel(0): Using EDID range info for vertical refresh
[    25.101] (II) intel(0): Printing DDC gathered Modelines:
[    25.101] (II) intel(0): Modeline "1600x900"x0.0  108.00  1600 1624 1704 1800  900 901 904 1000 +hsync +vsync (60.0 kHz eP)
...
1)
I only use stylus with osu! so not a real issue :p
2)
finger touch can be used in Absolute mode with wacom driver, see older revision
/usr/local/www/wiki/data/attic/bsd/notes/xorg.conf_snippets.1772662359.txt.gz · Last modified: by Sean Rhone