Evdev Wheel Emulation on T431s

mousexorg

I have a Thinkpad T431s with trackpoint (the red stick in the middle of the keyboard) and clickpad (a touchpad that also acts as a button). This is the first model that does not provide any dedicated buttons for the trackpoint. I want to use the trackpoint only. So far I'm able to configure the clickpad such that it acts as buttons for the trackpoint while disabling motion via:

# Devide the clickpad into 3 areas for left/middle/right click
xinput set-prop 10 "Synaptics Soft Button Areas" 3477, 5112, 0, 0, 2659, 3476, 0, 0

# Disable mouse movements
xinput set-prop 10 "Device Accel Constant Deceleration" 9999999

# Disable tap events
xinput set-prop 10 "Synaptics Tap Action" 0, 0, 0, 0, 0, 0, 0

where 10 is the ID of the clickpad.

However, I can't figure out how to configure the trackpoint to use the middle button for scroll emulation. The problem seems to be that the trackpoint device does not have any real buttons. Thus the following does not work:

xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2

Is there any way configure the trackpoint to use the middle button of another device (the clickpad) for scroll emulation? Any other suggestions?

Best Answer

For some linux distributions there is already a patched version of the evdev driver that supports scrolling with the TrackPoint while pressing the region configured as "center button" of the clickpad.

On Arch, this is the AUR package: https://aur.archlinux.org/packages/xf86-input-evdev-trackpoint/ I have tried it on a T440s and works perfectly out-of-the-box.

If you use a different distro you can search for a patched evdev driver, try to patch it and compile it yourself with the diff provided in the tar.gz file on the AUR site (ATM patches the vanilla 2.8.2 evdev driver from freedesktop.org), or switch to Arch and use the AUR package directly ;)

Related Question