bsd:notes:xorg.conf_snippets
Table of Contents
Information
xorg.confsnippets- Xorg X11
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 'DPI'
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
Xfce Resets
rm -fv ~/'.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml'
rm -fv ~/'.config/xfce4/xfconf/xfce-perchannel-xml/pointers.xml'
Monitor
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" "blt"
Option "DRI" "3"
Option "Present" "1"
Option "TearFree" "0"
Option "ReprobeOutputs" "0"
Option "VSync" "0"
Option "PageFlip" "0"
Option "SwapbuffersWait" "0"
Option "TripleBuffer" "0"
Option "LinearFramebuffer" "1"
Option "XvMC" "0"
Option "Throttle" "0"
Option "HotPlug" "0"
Option "Virtualheads" "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
xf86-input-evdevrequireswebcamd
su -
pkg install xf86-input-evdev 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 X3 Mouse (evdev custom)"
MatchUSBID "1d57:fa61"
Driver "evdev"
Option "AccelerationProfile" "-1"
Option "AccelerationScheme" "none"
EndSection
# End
Touchscreen
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-touchscreen-custom.conf'
Section "InputClass"
Identifier "Weida Hi-Tech CoolTouch Touchscreen (evdev custom)"
MatchUSBID "2149:5cfd"
Driver "evdev"
Option "AccelerationProfile" "-1"
Option "AccelerationScheme" "none"
EndSection
# End
Trackball
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-trackball-custom.conf'
Section "InputClass"
Identifier "Nulea M511 Trackball Mouse (evdev custom)"
MatchUSBID "195d:1021"
Driver "evdev"
Option "AccelerationProfile" "5"
Option "AccelerationScheme" "lightweight"
EndSection
# End
Tablet
TODO: There's 3 devices;
FingerandPadcan 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
Wacom TODO
wacomdriver is used withoutxorg.confoverride
pkg install 'xf86-input-wacom'
ee '/usr/local/etc/X11/xorg.conf.d/wacom.conf.sample'
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'
synaptics
Touchpad
Not
evdevlike 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
USB IDs
idVendoridProduct
su -
usbconfig
usbconfig -d ugen0.2 dump_device_desc
usbconfig -d ugen0.2 dump_device_desc | egrep 'idVendor|idProduct'
xorg.conf
idVendor = 0x1d57 idProduct = 0x130f
MatchUSBID "1d57:130f"
IDs
Identifier "CORSAIR HARPOON RGB PRO Gaming Mouse (evdev custom)"
MatchUSBID "1b1c:1b75"
Identifier "WolfLawS KM-5 Mouse (evdev custom)"
MatchUSBID "1d57:130f"
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/srv/www/wiki/data/pages/bsd/notes/xorg.conf_snippets.txt · Last modified: by Sean Rhone