Help: 2nd mouse button (3 button mouse) not working right

Help: 2nd mouse button (3 button mouse) not working right

Post by Jonathan Ca » Tue, 17 Oct 1995 04:00:00



I recently installed linux 1.2.1 (slackware) on my 486 and everything
is working well except the second mouse button.

Here is an example what happens: When I hold the 2nd mouse button down
(with the ctrl key) in an xterm the "VT Options" menu but as I drag
the mouse, the menu disappears and reappears as if I've been rapidly
pressing and releasing the middle mouse button!  All applications that
I've tested seem to have behavior consistent with the this (except for
using the middle mouse button to paste text -- this usually works
normally but sometimes multiple copies of the text).

I've also observed this same problem under olwmm and twm.

I can't figure out what is going on does anyone have any ideas?

--Jonathan

P.S. if you reply by email please reply to

      jonat...@cruzio.com

(my return address is screwed up right now -- I guess I need to
configure sendmail...)

-----------  some data about my setup ---------

I have a logitech MouseMan mouse (3 buttons) connected to the com1
serial port.

Here's an excerpt from my /etc/XF86Config

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

Section "Pointer"
    Protocol    "MouseMan"
    Device      "/dev/mouse"

# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.

#    Protocol   "Xqueue"

# Baudrate and SampleRate are only for some Logitech mice

#    BaudRate   9600
#    SampleRate 150

# Emulate3Buttons is an option for 2-button Microsoft mice

#    Emulate3Buttons

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

    ChordMiddle

EndSection

################################################################

and here's some output from xev(1).  The this was generated by
pressing and releasing 'a' <button1> 'a' 'b' <button2> 'b' 'c'
<button3> 'c'

########################################################################
Outer window is 0x3800001, inner window is 0x3800002

PropertyNotify event, serial 6, synthetic NO, window 0x3800001,
    atom 0x27 (WM_NAME), time 2062097644, state PropertyNewValue

KeyPress event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062120214, (25,50), root:(216,174),
    state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 characters:  "a"

KeyRelease event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062120423, (25,50), root:(216,174),
    state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 characters:  "a"

ButtonPress event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062123454, (25,50), root:(216,174),
    state 0x0, button 1, same_screen YES

EnterNotify event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x0, time 2062123454, (25,50), root:(216,174),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 256

KeymapNotify event, serial 17, synthetic NO, window 0x0,
    keys:  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  

ButtonRelease event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062127164, (25,50), root:(216,174),
    state 0x100, button 1, same_screen YES

LeaveNotify event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x0, time 2062127164, (25,50), root:(216,174),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 0

KeyPress event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062128864, (25,50), root:(216,174),
    state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 characters:  "a"

KeyRelease event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062128954, (25,50), root:(216,174),
    state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 characters:  "a"

KeyPress event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062130574, (25,50), root:(216,174),
    state 0x0, keycode 56 (keysym 0x62, b), same_screen YES,
    XLookupString gives 1 characters:  "b"

KeyRelease event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062130675, (25,50), root:(216,174),
    state 0x0, keycode 56 (keysym 0x62, b), same_screen YES,
    XLookupString gives 1 characters:  "b"

ButtonPress event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062132334, (25,50), root:(216,174),
    state 0x0, button 2, same_screen YES

EnterNotify event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x0, time 2062132334, (25,50), root:(216,174),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 512

KeymapNotify event, serial 17, synthetic NO, window 0x0,
    keys:  42  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  

ButtonRelease event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062136984, (25,50), root:(216,174),
    state 0x200, button 2, same_screen YES

LeaveNotify event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x0, time 2062136984, (25,50), root:(216,174),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 0

KeyPress event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062138744, (25,50), root:(216,174),
    state 0x0, keycode 56 (keysym 0x62, b), same_screen YES,
    XLookupString gives 1 characters:  "b"

KeyRelease event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062138834, (25,50), root:(216,174),
    state 0x0, keycode 56 (keysym 0x62, b), same_screen YES,
    XLookupString gives 1 characters:  "b"

KeyPress event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062139894, (25,50), root:(216,174),
    state 0x0, keycode 54 (keysym 0x63, c), same_screen YES,
    XLookupString gives 1 characters:  "c"

KeyRelease event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062140004, (25,50), root:(216,174),
    state 0x0, keycode 54 (keysym 0x63, c), same_screen YES,
    XLookupString gives 1 characters:  "c"

MotionNotify event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062141934, (24,50), root:(215,174),
    state 0x0, is_hint 0, same_screen YES

ButtonPress event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062141934, (24,50), root:(215,174),
    state 0x0, button 3, same_screen YES

EnterNotify event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x0, time 2062141934, (24,50), root:(215,174),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 1024

KeymapNotify event, serial 17, synthetic NO, window 0x0,
    keys:  42  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  

MotionNotify event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062142024, (24,51), root:(215,175),
    state 0x400, is_hint 0, same_screen YES

ButtonRelease event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062145684, (24,51), root:(215,175),
    state 0x400, button 3, same_screen YES

LeaveNotify event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x0, time 2062145684, (24,51), root:(215,175),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 0

MotionNotify event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062145864, (24,50), root:(215,174),
    state 0x0, is_hint 0, same_screen YES

KeyPress event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062146854, (24,50), root:(215,174),
    state 0x0, keycode 54 (keysym 0x63, c), same_screen YES,
    XLookupString gives 1 characters:  "c"

KeyRelease event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062146934, (24,50), root:(215,174),
    state 0x0, keycode 54 (keysym 0x63, c), same_screen YES,
    XLookupString gives 1 characters:  "c"

MotionNotify event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, subw 0x3800002, time 2062154254, (24,48), root:(215,172),
    state 0x0, is_hint 0, same_screen YES

EnterNotify event, serial 17, synthetic NO, window 0x3800001,
    root 0x2a, s
########################################################################

 
 
 

Help: 2nd mouse button (3 button mouse) not working right

Post by Jonathan Ca » Wed, 18 Oct 1995 04:00:00


jfc> I recently installed linux 1.2.1 (slackware) on my 486 and
jfc> everything is working well except the second mouse button.

jfc> Here is an example what happens: When I hold the 2nd mouse button
jfc> down (with the ctrl key) in an xterm the "VT Options" menu but as
jfc> I drag the mouse, the menu disappears and reappears as if I've
jfc> been rapidly pressing and releasing the middle mouse button!  All
jfc> applications that I've tested seem to have behavior consistent
jfc> with the this (except for using the middle mouse button to paste
jfc> text -- this usually works normally but sometimes multiple copies
jfc> of the text).

Figured it out.  The problem was "ChordMiddle" in mt XF86Config.

jfc> ----------- some data about my setup ---------

jfc> I have a logitech MouseMan mouse (3 buttons) connected to the
jfc> com1 serial port.

jfc> Here's an excerpt from my /etc/XF86Config

jfc> #
jfc> **********************************************************************
jfc> # Pointer section #
jfc> **********************************************************************

jfc> Section "Pointer" Protocol "MouseMan" Device "/dev/mouse"

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

jfc>     ChordMiddle

jfc> EndSection

jfc> ################################################################

 
 
 

1. -> 3-button mouse, 2nd button not work

Perhaps, I miss something.  I am running XFree86 3.1 and I have a 3 button
mouse.  However, only 2 buttons work... The middle button doesn't do anything.
I have to press both 1st and 3rd button at the same time to emulate the
2nd button.  Note that I include "Emulate3Buttons" in Section "Pointer" in
my F86Config file.

I used to have a little program which I grabbed from the net and I put it
in /etc/rc.d/rc.local.  This program will make the 2nd button work without
the "Emulate3Buttons" keyword.  After changing the package to slackware..
I forgot to backup the neat stuff...just wiped out the whole thing. ;-(

Thanks,
-Quang

2. mail/vacation

3. Use ctrl+left mouse button as right mouse button

4. OpenGL for LinuxPPC?

5. Can 2-button mouse do 3-button mouse works?

6. last with latest Jumbo Kernel Patch

7. 3-button PS2 mouse on a 390 - middle button not working

8. Help: Slow ppp connection with USR Robitics Courier Dual Standard 28.8

9. xterm : right button instead of middle mouse button for scrolling

10. How do I get at other mouse buttons on one button Mac mouse?

11. Using Logitech 3 button mouse, as a Logitech 3 button mouse.

12. 2 button mouse doesn't emulate 3 button mouse

13. middle mouse button on three button mice