[ltp] Smooth trackpoint acceleration

Guarded Identity linux-thinkpad@linux-thinkpad.org
Mon, 5 Jun 2006 01:02:29 -0500


Hi,

I was originally using an old daemon called "tp-scroll" 
(http://rsim.cs.uiuc.edu/~sachs/tp-scroll/) that did a very naive filtering 
of my trackpoint's device file to emulate middle-button scrolling.  I was 
never happy with this solution because it felt like kind of a hack.  But 
furthermore, when I released the middle button after a scroll, a middle 
button click event would signal, so tp-scroll is kind of buggy.

Although there was this problem, I continued to use tp-scroll because it 
allowed me to have middle-button functionality (no third button emulation 
necessary) and also middle button scrolling simutaneously.  Without 
tp-scroll, I found that X.org only allowed one or the other.  However, now 
that I've upgraded to Debian Testing's 7.0 version of xorg, it appears that a 
EmulateWheelTimeout option in xorg.conf allows for both options together.

So I stopped using tp-scroll and switched completely to configuring the 
trackpoint with the files in /sys/class/input/mouse1/device and "xset mouse".  

I played around a ton with the acceleration options of xset and also with the 
speed and sensitivity files in SysFS.  However, I found that tp-scroll seems 
to have a much smoother algorithm or acceleration.  The way xset just has a 
static acceleration scaling factor and a pixel threshold is just very choppy.

I was wondering if anyone has found a solution for smoother acceleration of 
the trackpoint device.  It seems to me that the best way to fix this problem 
is to develop a kernel patch for the psmouse/trackpoint driver.  Then smooth 
acceleration can be controlled by SysFS.  If this could be done, then 
acceleration could just be turned off in xset.

I'm eager to hear any comments you all might have,
Sukant