[ltp] middle mouse button and trackpoint scrolling: combining
the two in xorg.conf
Richard Neill
linux-thinkpad@linux-thinkpad.org
Mon, 05 Dec 2005 14:28:30 +0000
Andrey Kislyuk wrote:
> "EmulateWheel" in xorg.conf enables scrolling with the trackpoint when
> the middle button is depressed. However, I haven't been able to make the
> middle button down+up event work as a middle button keypress when the
> mouse is not moving. I know there are "EmulateWheelButton" and
> "EmulateWheelButtonTimeout" options, but they don't work for me.
>
> So, any accounts of getting it working in Xorg 6.8, and how does your
> xorg.conf look in that case? Does it work in Xorg 7, and what's the
> syntax there?
>
Dear Andrey,
Here's what I have. I'm using
a)Middle button (tap) = middle click (paste)
b)Middle button (press and hold) + drag pointer = vertical scroll
c)Middle button (press and hold) + drag pointer = horizontal scroll
My mouse section of Xorg.conf looks like this:
(NOTE: The old thinkpads (A22p) use psaux - you may need a different
mouse device).
-----------------------------------------------
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "on" #Button 1+3 => emulated middle
#button
Option "Emulate3Timeout" "50"
Option "EmulateWheel" "on" #Button 2 => emulated scroll wheel.
Option "EmulateWheelButton" "2"
# Option "EmulateWheelTimeout" "200" #If button 2 is pressed for less
#than this time, then the original
#button-2 press will pass through.
#Otherwise, we get emulated
#scroll. The default timeout is
#200, and any other setting seems
#to be ignored!
Option "YAxisMapping" "4 5" #EmulatedWheel
vertical/horizontal #pointer motion causes fake button
#4,5 or 6,7 presses.
Option "XAxisMapping" "6 7" #Map these fake presses to
#vertical and horizontal scroll
#respectively.
Option "ZAxisMapping" "10 11" #Map this out of the way, or the
#default (6,7) will break emulated
#scroll.
------------------------------------------------------------------------
Note: there was a bug in X "EmulateWheelTimeout doesn't do anything"
which I filed here: https://bugs.freedesktop.org/show_bug.cgi?id=4291
Fixed in Xorg CVS as of about October.
Best wishes,
Richard