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/04/22 22:57] – [Mouse] Sean Rhonebsd:notes:xorg.conf_snippets [2026/07/07 08:03] (current) – [Mouse] Sean Rhone
Line 1: Line 1:
 ====== 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'
Line 17: Line 19:
   pciconf -lv | grep -B3 display   pciconf -lv | grep -B3 display
  
-====== Display ======+====== Monitor ======
  
   * https://tomverbeure.github.io/video_timings_calculator   * https://tomverbeure.github.io/video_timings_calculator
-  * [[devices:displays:hp_s2031#xorgconf|HP S2031]] (76Hz)+ 
 +===== HP S2031 ===== 
 + 
 +  * [[devices:displays:hp_s2031|Notes]]
  
   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'
 +
 +<code>
 +Section "Monitor"
 +    Identifier "HDMI-1"
 +    Modeline "1600x900_76" 119.125 1600 1608 1640 1680 900 919 927 933 +HSync -VSync
 +    Modeline "1280x720_76" 77.209 1280 1288 1320 1360 720 733 741 747 +HSync -VSync
 +    Modeline "1024x768_76" 66.787 1024 1032 1064 1104 768 782 790 796 +HSync -VSync
 +    Modeline "800x600_76" 41.599 800 808 840 880 600 608 616 622 +HSync -VSync
 +    Modeline "640x480_76" 27.25 640 648 680 720 480 484 492 498 +HSync -VSync
 +    Option "PreferredMode" "1600x900_76"
 +EndSection
 +
 +# End</code>
  
 ====== Graphics ====== ====== Graphics ======
  
 ===== intel ===== ===== intel =====
 +
 +  * :?: 2026/04/24: ''glxgears'' was faster with HT disabled ((9.6k vs 9.7k))
  
   su -   su -
Line 73: Line 93:
 ===== evdev ===== ===== evdev =====
  
-  su -+  * ''xf86-input-evdev'' requires ''webcamd''
  
-  pkg install 'xf86-input-evdev' +  su -
- +
-==== webcamd ==== +
- +
-  * ''xf86-input-evdev'' requires ''webcamd''+
  
-  pkg install 'webcamd'+  pkg install xf86-input-evdev webcamd
  
   sysrc webcamd_enable="YES"   sysrc webcamd_enable="YES"
Line 108: Line 124:
 <code> <code>
 Section "InputClass" Section "InputClass"
-    Identifier "CORSAIR HARPOON RGB PRO Gaming Mouse (evdev custom)" +    Identifier "ATTACK SHARK X3 Mouse (evdev custom)" 
-    MatchUSBID "1b1c:1b75"+    MatchUSBID "1d57:fa61"
     Driver "evdev"     Driver "evdev"
     Option "AccelerationProfile" "-1"     Option "AccelerationProfile" "-1"
Line 118: Line 134:
  
 <code> <code>
-    Identifier "ATTACK SHARK R6 Mouse (evdev custom)" +    Identifier "CORSAIR HARPOON RGB PRO Gaming Mouse (evdev custom)" 
-    MatchUSBID "373e:0021"+    MatchUSBID "1b1c:1b75"
 </code> </code>
 +
 +<code>
 +    Identifier "WolfLawS KM-5 Mouse (evdev custom)"
 +    MatchUSBID "1d57:130f"
 +</code>
 +
 +==== Trackball ====
 +
 +  mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-trackball-custom.conf'
 +
 +<code>
 +Section "InputClass"
 +    Identifier "Nulea M511 Trackball Mouse (evdev custom)"
 +    MatchUSBID "195d:1021"
 +    Driver "evdev"
 +    Option "AccelerationProfile" "5"
 +    Option "AccelerationScheme" "lightweight"
 +EndSection
 +
 +# End</code>
  
 ==== Tablet ==== ==== Tablet ====
Line 140: Line 176:
  
 # 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 196: Line 246:
  
 # End</code> # End</code>
 +
 +====== USB IDs ======
 +
 +  * ''idVendor''
 +  * ''idProduct''
 +
 +  su -
 +
 +  usbconfig
 +
 +  usbconfig -d ugen0.2 dump_device_desc
 +
 +===== xorg.conf =====
 +
 +<code>
 +idVendor = 0x1d57 
 +idProduct = 0x130f</code>
 +
 +<code>MatchUSBID "1d57:130f"</code>
  
/usr/local/www/wiki/data/attic/bsd/notes/xorg.conf_snippets.1776913067.txt.gz · Last modified: by Sean Rhone