[ltp] tp 770 trackpoint driver - and middle button scrolling

Richard Neill linux-thinkpad@www.bm-soft.com
Tue, 03 Sep 2002 13:20:00 +0100


Dear Edi,

Here's the relevant bit of my XF86Config-4 file. I'm using XF86 4.2.

You may find some mileage in making tp4d z-axis do something as well, 
although it can only map to buttons 1-3.

Basically this is the order:

=============================================
Thinkpad Trackpoint:

	Left button = button 1
		this is used to left-click

	Middle button = button 2
		this is normally used to middle click
		ie paste, but we want to use it for vertical
		scroll

	Right button = button 3
		this is used to right click

(If we had a conventional mouse, the scroll wheels would appear as 
buttons 4,5)
		
=============================================
Tp4d controls the trackpoint. It adjusts its sensitivity, and can also 
map the z-axis (ie press hard on the trackpoint) to another button or 
combination. Sadly, you only have the choice of 1,2,3 here.

=============================================
XF86 takes the buttons and does this:

Button   |     Filter        |  Result
---------|-------------------|-------------
          |                   |
1(left)  |     Unaltered     |  Left-click
          |                   |
3(right  |     Unaltered     |  Right-click
          |                   |
1+3      |     3-btn emulate |  "middle click"
          |                   |  eg paste
          |                   |
2 +      |     scroll wheel  |  vertical scroll
drag     |     emulate       |
          |                   |

=============================================


Bugs:

1) At least in XF86 4.2, there is no way to get horizontal scroll this 
way (as far as I can see).

2) Annoyingly, there is no way to reverse the behaviour ie
Btn1+Btn3 -> scroll
Btn2 -> paste
This would be rather nice, as the trackpoint's Press-to-select can be 
mapped to both buttons 1 and 3.

-------------------------------------------------
# **********************************************************************
# Pointer section
# **********************************************************************

Section "InputDevice"

     Identifier  "Mouse1"
     Driver      "mouse"
     Option "Protocol"    "PS/2"
     Option "Device"      "/dev/mouse"
     Option "Emulate3Buttons" "on"
     Option "Emulate3Timeout" "50"
     Option "EmulateWheel" "on"
     Option "EmulateWheelButton" "2"

# ChordMiddle is an option for some 3-button Logitech mice

#    Option "ChordMiddle"

EndSection
----------------------------------------------

Best wishes.

Richard






Edi Weitz wrote:
 > Richard Neill <rn214@hermes.cam.ac.uk> writes:
 >
 >
 >>If you use XF86 4.2, you can also get the middle-button scroll:
 >>
 >>use both Chord middle and scrollwheel emulation in X.
 >
 >
 > Really? I didn't know that. Could you please explain how it works? I
 > just tried
 >
 >   Option       "ChordMiddle"
 >   Option       "WheelButtonEmulation" "3"
 >   Option       "ZAxisMapping"  "4 5"
 >
 > but it doesn't work. (This is a T23.)
 >
 > Thanks in advance,
 > Edi.
 >


----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html