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).
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!