Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 1996 20:29:54 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        jkh@time.cdrom.com, mark@seeware.DIALix.oz.au
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: bad keyboard reset routine?
Message-ID:  <199605251029.UAA13162@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> Unfortunately since this error message started showing up my keyboard
>> also stopped working!  Running -stable a few days old.

>I see!

>Uh, so..  Bruce, you have any plans for this since you didn't like
>my (stupid) suggestion of removing the error message? :-)

First, don't read KB_DATA in the initial loop without checking that it
is valid.  A succession of false negative responses results in sending
5 resets in a row to the keyboard, and who knows what the keyboard would
do then.

Second, increase the arg in DELAY(10) into something that can give a
resonably accurate result on all systems of interest.  DELAY() has a
guaranteed accuracy of -20..+infinity us, except at probe time has a
guaranteed accuracy of -20..+20 us on all systems of interest.  DELAY(1000)
would be OK for the probe, but DELAY(1000) is too wasteful once the
system has started.  (So is DELAY(1) :-).)

Third, increase the number of retries in the second loop until the error
message goes away.

Fourth, figure out why the total timeout retries needs or needed to be
about 50 times larger for some keyboards than for others.  

My keyboards aren't very sensitive to timing, so this is hard for me to
debug.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605251029.UAA13162>