middle mouse button and trackpoint scrolling: combining the two in xorg.conf

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

middle mouse button and trackpoint scrolling: combining the two in xorg.conf

Andrey Kislyuk
"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?

-ak
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: middle mouse button and trackpoint scrolling: combining the two in xorg.conf

Lars Otten
On 12/05/05 03:48, 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?

As far as I recall this is not supported in 6.8, you'll have to move to 7.0
for it. Then the said commands should work just fine.

Cheers,
/Lars
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: middle mouse button and trackpoint scrolling: combining the two in xorg.conf

efthym
On Mon, 05 Dec 2005 13:32:40 +0200, Lars Otten  
<[hidden email]> wrote:

> On 12/05/05 03:48, 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?
>
> As far as I recall this is not supported in 6.8, you'll have to move to  
> 7.0
> for it. Then the said commands should work just fine.
>

I'm still using 6.8 and middle button works. What doesn't work is  
scrolling left-right. I managed to get the movement but it was also  
sending a keypress event for the middle button. Anyway, here's my  
xorg.conf:

Section "ServerLayout"
         Identifier     "Default Layout"
         Screen      0  "Screen0" 0 0
         InputDevice    "Mouse0" "CorePointer"
         InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
         Identifier  "Mouse0"
         Driver      "mouse"
         Option      "Protocol" "IMPS/2"
         Option      "Device" "/dev/input/mice"
         Option      "SendCoreEvents" "on"
         Option      "ZAxisMapping" "4 5"
         Option      "Emulate3Buttons" "yes"
         Option      "EmulateWheel" "yes"
         Option      "EmulateWheelButton" "2"
EndSection


Hope this helps.

Efthym


> Cheers,
> /Lars


--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: middle mouse button and trackpoint scrolling: combining the two in xorg.conf

Richard Neill
In reply to this post by Andrey Kislyuk


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



--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: middle mouse button and trackpoint scrolling: combining the two in xorg.conf

Richard Neill


Richard Neill wrote:

>
>
> 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).


Oops - EmulateWheelTimeout isn't supported in Xorg versions below 6.9.

2 possible options, depending on the physical layout of buttons.
    http://www.richard.neill.hemscott.net/a22p-mdk9-1.html#x


Best wishes,

Richard

--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad