Index: [thread] [date] [subject] [author]
  From: teunis <teunis@computersupportcentre.com>
  To  : ggi-develop@eskimo.com
  Date: Wed, 19 May 1999 03:17:48 -0700 (MST)

Re: Mouse: Error reading mouse: Resource temporarily unavailable

On Wed, 19 May 1999, Marcus Sundberg wrote:

> teunis wrote:
[clip]
> > Doesn't anyone else pipe all their mouse stuff through GPM?  Does anyone
> > else have a mouse-systems mouse that requires this or the mouse crashes if
> > more than one program (ie gpm + -anything- else) is loaded?  X is the
> > usual culprit but GGI does it too - it's a problem with how mouse-systems
> > mice are initialized;
> 
> Yes, i know there are people who does this, but they probably doesn't
> try
> to have two drivers driving the same mouse. ;-)

*giggle*
Last time I saw this problem GGI didn't do this...

> > Ideas?  This is a GGI problem dealing with a gpm FIFO!
> 
> No, it's a problem when you open the same mouse twice.

Well that -does- explain everything.
strange.

[clip]
> I will apply the above diff because it is generally a good thing.
> But please consider to fix your problem in the right way like I
> describe below.

Done.
BTW - EAGAIN could be counted as one of the -very- few errorconditions
that should be recovered from so agreed :)

> > Oh an explanation of my GGI_INPUT and why I -don't- use /dev/mouse:
> > export GGI_INPUT="(linux-mouse:msc,/dev/gpmdata):(linux-mouse:mman,/dev/ttyS0)"
> > 
> > Primary mouse : /dev/gpmdata; protocol mouse-systems
> >         - at the moment this is a Zoltrix PS/2 mouse with a wheel that GPM
> >                 doesn't support going through GPM which turns all mice
> >                 into mouse-systems mice.
> 
> If you have /dev/mouse as a symlink to gpmdata and update your LibGII
> to current CVS you can just remove the first part of GGI_INPUT and 
> you will still have both mice.
> 
> > Incidentally is it possible to tell mice apart using GGI or GII?  Or
> > should I open a seperate GII device for the cyberman?
> 
> You can see where events come from by checking the origin field in
> them.

Never thought of that.  Come to think of it ... I don't remember there
ever being one.  *sigh*.  Makes sense too :)

I'm still getting this errors BTW:
Warning: failed to set serial parameters for mouse device.
         Your mouse may not work as expected.

is it another gpm bit? (goes away if I go directly to /dev/psaux)

... now to figure out how to build a device that can switch between two
protocols: the Logitech CyberMan.  Why? Why not :)  And maybe a "zoom"
display target if I get real bored...  (Cyberman switches between logitech
mouseman and Cyberman/6dof modes.  Primitive but it works :)

G'day, eh? :)
	- Teunis

Index: [thread] [date] [subject] [author]