[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Erratic mouse



On Fri, Jan 11, 2002 at 06:00:18AM +0100, martin f krafft wrote:
| also sprach nori heikkinen <nori@sccs.swarthmore.edu> [2002.01.11.0550 +0100]:
| > except the mouse is really erratic.  if i move it at all it goes
| > psychotic, opening up random rxvt terms, menus, and clicking itself
| > into a full screen of calculator applications and icons.  which is
| > mildly amusing but not sustainably so, and since i prefer to primarily
| > work with X, i'm wondering what i did in the mouse configuration.  
| 
| check that you configured PS/2 on /dev/psaux. if that doesn't work, try
| ImPS/2, same port. if that doesn't work, /etc/init.d/gpm stop
| 
| if that fixed it, you won't need the console, so
| 
|   update-rc.d -f gpm remove
| 
| i would be interested how other people configure their mice. it's always
| a pain i find. gpmdata doesn't always work, PS/2 doesn't always work,
| psaux doesn't always work. it's always a plain $5 PS/2 mouse that i use.
| disabling gpm with PS/2 on psaux usually fixes it...

Here's the deal :


Configure gpm to use your mouse device.  This is /dev/psaux for you.
Tell gpm what protocol your mouse uses.  Does it have a scroll wheel?
If so, "imps2" is what you'll probably want, otherwise choose
"autops2" or "ps2" or "pnp" or "ms", whatever is appropriate (and
works).

    I have 2 mice -- a Logitech MouseMan Wheel (the only good mouse
    :-)) for USB or PS/2 ports and a free ($10-$10rebate) MouseSystems
    (3-button) for RS-232 serial port.  I have gpm using the MouseMan
    only, protocol is "imps2".

Then, this is important, tell gpm to repeat as *raw*.  The only other
option is "ms3".  This is also important -- since gpm is repeating as
raw, tell X to use the the same protocol.

    For my MouseMan this is "IMPS/2".
    For the serial mouse, X uses it as well (but gpm doesn't) with
        protocol "auto"
        device "/dev/tts/1"
            (I use kernel 2.4 with devfs, hence the different device name)

Also tell X to read from /dev/gpmdata.  This is a named pipe (hence
the 'p' type).


The crucial points are
    1)  gpm repeats as raw
    2)  X uses same protocol as gpm, even if the mouse supports others


If you don't have 3 physical buttons on your mouse then set the
Buttons option to 2 and use the Emulate3Buttons option.  Then pressing
both the left and right at the same time is treated as the middle
button.

If the mouse behaves erractically, then you're not using the right
protocol.

-D

-- 

Python is executable pseudocode. Perl is executable line noise.



Reply to: