public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Gunther.Mayer@t-online.de (Gunther Mayer)
To: Andries.Brouwer@cwi.nl
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] make psaux reconnect adjustable
Date: Tue, 14 Aug 2001 21:35:39 +0200	[thread overview]
Message-ID: <3B797D8B.8682A077@t-online.de> (raw)
In-Reply-To: <200108141829.SAA108540@vlet.cwi.nl>

Andries.Brouwer@cwi.nl wrote:
> 
>     From Gunther.Mayer@t-online.de Tue Aug 14 19:10:40 2001
> 
>     >     I can confirm what you suggest:
>     >         My mouse (Logitech wheel USB/PS2) sends indeed AA 00.
>     >     So, I extended my patch:
>     >     psmouse_reconnect = 0: Do nothing (just pass all to userspace)
>     >     psmouse_reconnect = 1: Flush Q & ping mouse on AA 00 (default)
>     >     psmouse_reconnect = 2: Flush Q & ping mouse on AA (old behaviour)
>     >
>     >     With reconnect 1 or 2: After reconnecting, mouse behaves strange
>     >         (jumping around the screen)
> 
>     This is a serious bug in many user-space drivers. PS/2 mouse protocol
>     was designed to easily re-synchronize (think about transmission errors/
>     lost bytes).
> 
> The fragment of text you reply to is not about the 3-byte PS/2
> protocol, but about the 4-byte wheelmouse protocol.

No, it applies even to 4-byte protocol (see 1).

1) Re-synchronize on transmission errors (e.g. lost bytes)
The 4-byte protocol shares bytes 1-3 with the 3-byte protocol.
So it can synchronize just as easy.

2) Re-connecting the mouse
The 4-byte wheelmouse protocol must be re-enabled by sending proper
magic bytes by user-level driver (else it stays in 3-byte mode).

_This_ shows, user-mode must be notified of the re-connect! So letting
the driver choose PS2_TRANSPARENT, it can easily handle this situation.

3) Re-connecting a different animal
The user-level driver should autodetect common mouse protocols
(legacy proprietary protocols will vanish and should not hinder progress).

  reply	other threads:[~2001-08-14 19:34 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-14 18:29 [PATCH] make psaux reconnect adjustable Andries.Brouwer
2001-08-14 19:35 ` Gunther Mayer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-08-14 21:26 Andries.Brouwer
2001-08-14 11:12 Andries.Brouwer
2001-08-14 17:10 ` Gunther Mayer
2001-08-14 21:56   ` Kurt Garloff
2001-08-02 17:27 Andries.Brouwer
2001-08-14  9:57 ` Kurt Garloff
2001-08-14 15:03   ` Kurt Garloff
2001-08-14 16:58     ` Linus Torvalds
2001-08-14 17:35       ` Kurt Garloff
2001-08-14 21:29       ` Kurt Garloff
2001-08-15 15:50         ` Gunther Mayer
2001-08-02 16:02 Andries.Brouwer
2001-08-02 16:18 ` Kurt Garloff
     [not found] <no.id>
2001-08-02 15:03 ` Alan Cox
2001-08-02 17:34 ` Alan Cox
2001-08-02 11:55 Andries.Brouwer
2001-08-02  2:21 Kurt Garloff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B797D8B.8682A077@t-online.de \
    --to=gunther.mayer@t-online.de \
    --cc=Andries.Brouwer@cwi.nl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox