Re: [ILUG] re-syncing mice

From: Martin Feeney (martin at domain tuatha.org)
Date: Mon 15 May 2000 - 12:24:40 IST


On 15 May 00, at 12:02, John N S Gill wrote:

>
> I'm the proud owner of a cheap and nasty video switch which allows me
> to connect one mouse/monitor/keyboard to multiple machines.
>
> Only problem is that being cheap and nasty it tends to throw the
> mouse into fits when I switch.
>
> Re-starting X re-sets the mouse OK, but this is a little drastic.
> Does anyone out there know of a less way of re-setting the mouse?

Use gpm and have it repeat the mouse data as something like ms3
(Intellimouse serial with wheel) or whatever suits. It won't repeat as
ps/2 protocol, but it'll translate ps/2 into serial.

Set X to read /dev/gpmdata (probably already linked to /dev/mouse anyway)
and set it to the same protocol as gpm is repeating. Then as far as X is
concerned, there's always a mouse connected. If the mouse stops
responding, restart gpm and you should be sorted.

This procedure works for me under very similar circumstances (el cheapo
manual switchbox).



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:08 GMT