Trackpoint Config on Thinkpads

OBSD-6.8-beta X11 trackpoint/nipple X201

2020-10-12


Track point scrolling isn't configured out of the box, and accelaration is dead slow.

OBSD misc mailing list

check xinput to find correct device id

$ xinput
	...
  	/dev/wsmouse id=7 [slave  pointer  (2)]

$ xinput list-props 7
	Coordinate Transformation Matrix (166):	1.000000,
	\ 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 
	\ 0.000000, 0.000000, 1.000000
	Device Accel Profile (280):	0
	Device Accel Constant Deceleration (281):	1.000000
	Device Accel Adaptive Deceleration (282):	1.000000
	Device Accel Velocity Scaling (283):	10.000000
	WS Pointer Middle Button Emulation (284):	2
	WS Pointer Middle Button Timeout (285):	50
	WS Pointer Wheel Emulation (286):	0
	WS Pointer Wheel Emulation Axes (287):	0, 0, 4, 5
	WS Pointer Wheel Emulation Inertia (288):	10
	WS Pointer Wheel Emulation Timeout (289):	200
	WS Pointer Wheel Emulation Button (290):	4

Essential pointer configs

# gas gas gas I'm gonna set on the gas
xinput set-prop 7 'Device Accel Constant Deceleration' 0.3
# trakpoint Scrolling
xinput set-prop 7 'WS Pointer Wheel Emulation' 1
# use `xev` to test the button maps
# 2 being middle button on trackpoint
xinput set-prop 7 'WS Pointer Wheel Emulation Button' 2
# horizontal scrol axes
xinput set-prop 7 'WS Pointer Wheel Emulation Axes' 6 7 4 5

Enjoy Rubbing Nipple, kinky ;)

10-14 Update - Making Config Persist

I was lazy, and after reboot due to new snapshot (my shortest uptime 2 days) it backfired.

The easiest way is to make wm start xinput (blinking with fvwm, probably update to fvwm2 in ports) but to avoid furhter confusions I'm clustering all x settings in sessions file. (helpful when I change fvwm hope it's not the case)

Going /etc/X11/xenodm/Xsessions I have created ~/.xsession

/usr/X11R6/bin/xinput set-prop 7 'Device Accel Constant Deceleration' "0.3" & 
/usr/X11R6/bin/xinput set-prop 7 'WS Pointer Wheel Emulation' "1" & 
/usr/X11R6/bin/xinput set-prop 7 'WS Pointer Wheel Emulation Button' "2" & 
/usr/X11R6/bin/xinput set-prop 7 'WS Pointer Wheel Emulation Axes' "6" "7" "4" "5" &
/usr/X11R6/bin/xterm &
/usr/X11R6/bin/fvwm

Rule of thumb, the last process should be foreground so when it ends xenodm(1) promts back to login window. more on faq