Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2000 11:00:22 +0200
From:      Graham Wheeler <gram@cequrux.com>
To:        Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
Cc:        "Jordan K. Hubbard" <jkh@zippy.osd.bsdi.com>, stable@freebsd.org
Subject:   Re: psmintr: out of sync (0080 != 0000). ARGH!
Message-ID:  <397D5726.559EE428@cequrux.com>
References:  <25919.964459652@localhost>  <397D415E.64DD5CE0@cequrux.com> <200007250846.RAA25921@zodiac.mech.utsunomiya-u.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Kazutaka YOKOTA wrote:
> 
> >I'm also very willing to help.
> [...]
> >The hacks that I made, which have made my mouse completely usable
> >(that's not to say perfect, but I seem to have reduced the problem to
> >only the transitions between the 3-byte and 4-byte states), perform
> >extra sanity checks on the data and try to detect when these transitions
> >occur. After a transition to the 4-byte state, my code drops the zero
> >bytes that are being inserted; after a transition back to the three byte
> >state, they stop dropping these.

There is another behaviour which I forgot to mention - the zero byte can
occur either before or after the sync byte. So I get three types of
packets:

zero sync X Y
sync zero X Y
sync X Y

The last of these is the correct format; the other two are not. My
hacked driver is capable of handling all three, and detecting
transitions between them. Any particular behaviour can last anything
from a few seconds to a few minutes before it changes to one of the
other states.

I had almost concluded that I just had buggy hardware, but after
Jordan's message it seems that perhaps there is a bug somewhere in the
code after all (although I think its as likely to be in kbd.c or
elsewhere as it is in to be in psm.c - making it, as Jordan said, a real
nasty to find).

-- 
Dr Graham Wheeler                        E-mail: gram@cequrux.com
Director, Research and Development       WWW:    http://www.cequrux.com
CEQURUX Technologies                     Phone:  +27(21)423-6065
Firewalls/VPN Specialists                Fax:    +27(21)424-3656


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?397D5726.559EE428>