On Tue, Sep 14, 2004 at 01:12:28PM +0300, ik wrote:
> Yedidyah Bar-David wrote:
> >Ido - can you post your complete gpm configuration? The exact details
> >are distro-dependent, but you can simply run it (using the distro's
> >way - probably '/etc/init.d/gpm start') and see with 'ps' what the
> >final command line was.
> This is the output of ps -ax: /usr/sbin/gpm -m /dev/input/mouse0 -t imps2 
> -Rms3
> The /etc/init.d bash script builds it's configuration out of the config 
> file:
> 
> The output of /etc/gpm.conf:
> device=/dev/input/mouse0
> responsiveness=
> repeat_type=ms3

Can you try 'repeat_type=imps2'?
Or at least 'repeat_type=ps2' (which won't allow using the wheel, but
might work better otherwise)?

> type=imps2
> append=""
> sample_rate=
> 
> Please note that gpm and X can manage together... but they need some type 
> of thing that will not make them use the same resource...So I guess that 
> different device can do the job just fine...

As far as I know, this is not accurate. The problem isn't with sharing
"resources" in the most general sense, but with sharing the PS/2 port.
IIRC, with a serial mouse (and port) there is no problem. To overcome
this problem, gpm invented the '-R' thing, which means only gpm reads
the real mouse, and outputs (potentially after a conversion) to a fifo
(/dev/gpmdata) emulated mouse IO that the X server reads.

A few years ago I played with doing something similar, but without a
special program - simply reading the mouse and writing to fifos, in
various combinations. This was only a short game, I did not work with
it hours or days, so I do not know if it was stable. But it worked.
It allowed me, for example, to have two machines, with a mouse connected
to each, and having a feeling of them being a "mirror" - a mouse move
on each moved the cursor on both. Something like this:
tee < /dev/realmouse /dev/m1fifo | rsh machine2 'cat > /dev/m2fifo'
on both machines.
-- 
Didi


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to