public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: FYI  PS/2 Mouse problems -- userland issue
@ 2001-08-21 22:35 Andries.Brouwer
  2001-08-21 22:41 ` Ben LaHaise
  2001-08-22 18:09 ` Gunther Mayer
  0 siblings, 2 replies; 12+ messages in thread
From: Andries.Brouwer @ 2001-08-21 22:35 UTC (permalink / raw)
  To: Andries.Brouwer, bcrl; +Cc: linux-kernel, satch

> Armed with docs I was able to see just why our code
> is completely wrong for handling things like the ps/2
> mouse being removed at runtime.

Yes, or being added, to be more precise. But it will not be
easy to do it right. So many different ps2-like types of mouse.
There are heuristics, like the AA 00 that I gave last week or so.
(But not every ps2-mouse emits this sequence.)
And one can keep track of the timing. But the fact that the length
of a packet is unknown (3, 4, 5, 8 bytes), and that in some modes
and relative positions arbitrary data is legal, makes it more or less
impossible to write code that is provably correct.
Also state machines have difficulties. Many types of mouse react
to special sequences of ordinary commands, and enter a non-ps2 mode.

As we already remarked in the previous round,
this is no kernel business.

Andries

[departing now - probably away from email for a while]


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: FYI  PS/2 Mouse problems -- userland issue
@ 2001-08-21 19:40 Andries.Brouwer
  2001-08-21 20:22 ` Ben LaHaise
  0 siblings, 1 reply; 12+ messages in thread
From: Andries.Brouwer @ 2001-08-21 19:40 UTC (permalink / raw)
  To: bcrl, satch; +Cc: linux-kernel

    From: Ben LaHaise <bcrl@redhat.com>

    On Tue, 21 Aug 2001, Stephen Satchell wrote:

    > This MAY be a kernel issue depending on where I locate the mouse
    > initialization code.  If it is in the kernel, then there will need
    > to be a patch to allow the mouse to be re-initialized into the mode
    > everyone expects.

[Funny - we just discussed this last week.]

    The kernel has nothing to do with reinitializing the mouse: X has to do
    that.

[Indeed. Or gpm.]

     I plan to submit a
    patch that replaces much of the existing pc keyboard/mouse code with state
    machine driven code that doesn't block interrupts out for long periods of
    time, as well as fixing a few of the lockup issues the current driver has.

Have you written the patch already?
There are interesting difficulties here.

Andries

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <mailman.998417940.18388.linux-kernel2news@redhat.com>]
* FYI  PS/2 Mouse problems -- userland issue
@ 2001-08-21 18:07 Stephen Satchell
  2001-08-21 18:17 ` Ben LaHaise
  2001-08-21 20:29 ` Kurt Garloff
  0 siblings, 2 replies; 12+ messages in thread
From: Stephen Satchell @ 2001-08-21 18:07 UTC (permalink / raw)
  To: linux-kernel

Last week I had asked about mouse problems.  I have discovered the root 
cause.  This affects you if (1) you are using a KVM switch and (2) you have 
a "wheel" mouse.

The problem is that sometime during system initialization the mouse is 
being configured as a generic PS/2 mouse (no wheel).  This works 
fine...until you switch the mouse away from the system.  Depending on the 
KVM switch you are using, the mouse MAY reset itself into its native 
mode.  In the case of the Logitech wheel mice, this means that each mouse 
event sends four codes instead of three.  The X mouse support doesn't like 
that very much.  :)

This MAY be a kernel issue depending on where I locate the mouse 
initialization code.  If it is in the kernel, then there will need to be a 
patch to allow the mouse to be re-initialized into the mode everyone expects.

Satch


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-08-22 18:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-21 22:35 FYI PS/2 Mouse problems -- userland issue Andries.Brouwer
2001-08-21 22:41 ` Ben LaHaise
2001-08-22 18:09 ` Gunther Mayer
  -- strict thread matches above, loose matches on Subject: below --
2001-08-21 19:40 Andries.Brouwer
2001-08-21 20:22 ` Ben LaHaise
     [not found] <mailman.998417940.18388.linux-kernel2news@redhat.com>
2001-08-21 18:59 ` Pete Zaitcev
2001-08-21 18:07 Stephen Satchell
2001-08-21 18:17 ` Ben LaHaise
2001-08-21 18:28   ` James Simmons
2001-08-21 18:35     ` Ben LaHaise
2001-08-21 20:30       ` James Simmons
2001-08-21 20:29 ` Kurt Garloff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox