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 [2026/05/28 20:47] – [Tablet] Sean Rhonebsd:notes:xorg.conf_snippets [2026/09/29 23:02] (current) – Sean Rhone
Line 1: Line 1:
 +====== Information ======
 +
 +  * ''xorg.conf'' snippets
 +  * Xorg X11
 +
 ====== Debugging ====== ====== Debugging ======
 +
 +  * https://xorg.freedesktop.org/archive/current/doc/man/man5/xorg.conf.5.xhtml
  
   mousepad '/var/log/Xorg.0.log'   mousepad '/var/log/Xorg.0.log'
  
   cp '/var/log/Xorg.0.log' ~ && gio open ~/'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 'Using input driver'
Line 17: Line 26:
   pciconf -lv | grep -B3 display   pciconf -lv | grep -B3 display
  
-====== Monitor ======+====== Xfce Resets ======
  
-  * https://tomverbeure.github.io/video_timings_calculator+  rm -fv ~/'.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml'
  
-===== HP S2031 =====+  rm -fv ~/'.config/xfce4/xfconf/xfce-perchannel-xml/pointers.xml'
  
-  * [[devices:displays:hp_s2031|Notes]]+====== Monitor ====== 
 + 
 +  * https://tomverbeure.github.io/video_timings_calculator
  
   su -   su -
  
   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-monitor-custom.conf'   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-monitor-custom.conf'
 +
 +===== HP S2031 =====
 +
 +  * [[devices:displays:hp_s2031|Notes]]
  
 <code> <code>
Line 45: Line 60:
  
 ===== intel ===== ===== intel =====
- 
-  * :?: 2026/04/24: ''glxgears'' was faster with HT disabled ((9.6k vs 9.7k)) 
  
   su -   su -
Line 61: Line 74:
     Option "AccelMethod" "SNA"     Option "AccelMethod" "SNA"
     Option "DRI" "3"     Option "DRI" "3"
 +    Option "Present" "1"
     Option "TearFree" "0"     Option "TearFree" "0"
 +    Option "ReprobeOutputs" "0"
     Option "VSync" "0"     Option "VSync" "0"
     Option "PageFlip" "0"     Option "PageFlip" "0"
Line 67: Line 82:
     Option "TripleBuffer" "0"     Option "TripleBuffer" "0"
     Option "LinearFramebuffer" "1"     Option "LinearFramebuffer" "1"
 +    Option "XvMC" "0"
     Option "Throttle" "0"     Option "Throttle" "0"
 +    Option "HotPlug" "0"
 +    Option "Virtualheads" "0"
 EndSection EndSection
  
Line 90: Line 108:
  
 ===== evdev ===== ===== evdev =====
 +
 +  * ''xf86-input-evdev'' requires ''webcamd''
  
   su -   su -
  
-  pkg install 'xf86-input-evdev' +  pkg install xf86-input-evdev webcamd
- +
-==== webcamd ==== +
- +
-  * ''xf86-input-evdev'' requires ''webcamd'' +
- +
-  pkg install 'webcamd'+
  
   sysrc webcamd_enable="YES"   sysrc webcamd_enable="YES"
Line 126: Line 140:
 <code> <code>
 Section "InputClass" Section "InputClass"
 +    Identifier "ATTACK SHARK X3 Mouse (evdev custom)"
 +    MatchUSBID "1d57:fa61"
 +    Driver "evdev"
 +    Option "AccelerationProfile" "-1"
 +    Option "AccelerationScheme" "none"
 +EndSection
 +
 +# End</code>
 +
 +<code>
     Identifier "CORSAIR HARPOON RGB PRO Gaming Mouse (evdev custom)"     Identifier "CORSAIR HARPOON RGB PRO Gaming Mouse (evdev custom)"
     MatchUSBID "1b1c:1b75"     MatchUSBID "1b1c:1b75"
 +</code>
 +
 +<code>
 +    Identifier "WolfLawS KM-5 Mouse (evdev custom)"
 +    MatchUSBID "1d57:130f"
 +</code>
 +
 +==== Touchscreen ====
 +
 +  mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-touchscreen-custom.conf'
 +
 +<code>
 +Section "InputClass"
 +    Identifier "WEIDA Hi-tech CoolTouch Touchscreen (evdev custom)"
 +    MatchUSBID "2149:5cfd"
     Driver "evdev"     Driver "evdev"
     Option "AccelerationProfile" "-1"     Option "AccelerationProfile" "-1"
Line 134: Line 173:
  
 # End</code> # End</code>
 +
 +==== Trackball ====
 +
 +  mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-trackball-custom.conf'
  
 <code> <code>
-    Identifier "ATTACK SHARK R6 Mouse (evdev custom)" +Section "InputClass" 
-    MatchUSBID "373e:0021" +    Identifier "Nulea M511 Trackball Mouse (evdev custom)" 
-</code>+    MatchUSBID "195d:1021" 
 +    Driver "evdev" 
 +    Option "AccelerationProfile" "5" 
 +    Option "AccelerationScheme" "lightweight" 
 +EndSection 
 + 
 +# End</code>
  
 ==== Tablet ==== ==== Tablet ====
Line 144: Line 193:
   * 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]]))
   * :?: TODO: There's 3 devices; ''Finger'' and ''Pad'' can likely be disabled   * :?: TODO: There's 3 devices; ''Finger'' and ''Pad'' can likely be disabled
- 
-  /usr/local/etc/X11/xorg.conf.d/wacom.conf.sample 
  
   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-tablet-custom.conf'   mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-tablet-custom.conf'
Line 160: Line 207:
  
 # End</code> # End</code>
 +
 +=== Wacom TODO ===
 +
 +  * ''wacom'' driver is used without ''xorg.conf'' override
 +
 +  pkg install 'xf86-input-wacom'
 +
 +  ee '/usr/local/etc/X11/xorg.conf.d/wacom.conf.sample'
 +
 +<code>
 +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'</code>
  
 ===== synaptics ===== ===== synaptics =====
Line 216: Line 277:
  
 # End</code> # End</code>
 +
 +====== USB IDs ======
 +
 +  * ''idVendor''
 +  * ''idProduct''
 +
 +  su -
 +
 +  usbconfig
 +
 +  usbconfig -d ugen0.2 dump_device_desc
 +
 +  usbconfig -d ugen0.2 dump_device_desc | egrep 'idVendor|idProduct'
 +
 +===== xorg.conf =====
 +
 +<code>
 +idVendor = 0x1d57 
 +idProduct = 0x130f</code>
 +
 +<code>MatchUSBID "1d57:130f"</code>
  
/usr/local/www/wiki/data/attic/bsd/notes/xorg.conf_snippets.1780015641.txt.gz · Last modified: by Sean Rhone