mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andries Brouwer <aebr@win.tue.nl>
To: Vojtech Pavlik <vojtech@suse.cz>
Cc: A Guy Called Tyketto <tyketto@wizard.com>, linux-kernel@vger.kernel.org
Subject: Re: kbd not functioning in 2.5.25-dj2
Date: Sun, 14 Jul 2002 19:37:29 +0200	[thread overview]
Message-ID: <20020714173729.GA15065@win.tue.nl> (raw)
In-Reply-To: <20020714143702.A26584@ucw.cz>

On Sun, Jul 14, 2002 at 02:37:02PM +0200, Vojtech Pavlik wrote:

>>>> atkbd.c: Sent: f5
>>>> atkbd.c: Received fe

>>> Ok. So this is the cause. The driver gets a '0xfe' response, which means
>>> "error, command not supported, or device not present'.

>> In principle nothing is wrong when one gets a 0xfe.
>> The request is just: please say that again.

> 0xfe
>   Resend. Keyboard will send this if it didn't receive the last command
> correctly.
> 
> Unfortunately, 0xfe also happens when you send a command to a keyboard
> that's not plugged, or when the keyboard doesn't understand the command.
> Resending in those cases (which are the most common) would cause an
> infinite loop ...

Not so pessimistic. The first resend may be needed because the keyboard
does not stabilize so quickly after power on. 
You wait 25 ms and try again. Wait 500 ms and try again. Give up.

But if this is really the first command sent to the keyboard, then
I think 0xf5 is uncommon.

One usually sees a sequence like:
Send 0xaa to port 64. Wait for the 0x55 ack.
Do things to enable A20, IRQ1, set scancode translation.
Send 0xff to port 60. Wait for the 0xfa ack. Wait for the 0xaa good status.

When 0xf5 fails, one might consider trying a more standard sequence.

Andries

  parent reply	other threads:[~2002-07-14 17:34 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-13  7:24 Ed Sweetman
2002-07-13  7:37 ` A Guy Called Tyketto
2002-07-13  8:01   ` Ed Sweetman
2002-07-13  8:45     ` Ed Sweetman
2002-07-13  9:06       ` Vojtech Pavlik
2002-07-13 21:48         ` A Guy Called Tyketto
2002-07-14  8:05           ` Vojtech Pavlik
2002-07-14 10:18             ` A Guy Called Tyketto
2002-07-14 10:32               ` Russell King
2002-07-14 12:01               ` Vojtech Pavlik
2002-07-14 12:17                 ` Andries Brouwer
2002-07-14 12:37                   ` Vojtech Pavlik
2002-07-14 13:36                     ` Rogier Wolff
2002-07-14 17:32                       ` Vojtech Pavlik
2002-07-14 17:49                         ` Russell King
2002-07-14 17:59                           ` Vojtech Pavlik
2002-07-14 18:07                             ` Russell King
2002-07-14 18:11                               ` Vojtech Pavlik
2002-07-14 17:37                     ` Andries Brouwer [this message]
2002-07-14 18:01                       ` Vojtech Pavlik
2002-07-14 18:13                         ` Russell King
2002-07-14 18:17                           ` Vojtech Pavlik
2002-07-15  3:53                         ` Maciej W. Rozycki
2002-07-14 21:30                 ` A Guy Called Tyketto
2002-07-15  3:00                   ` Vojtech Pavlik
2002-07-15  8:30                     ` A Guy Called Tyketto
2002-07-15  7:28         ` Alexander Hoogerhuis
2002-07-15 10:56           ` Arnd Bergmann
2002-07-15 10:06             ` Alexander Hoogerhuis
2002-07-13  9:07       ` A Guy Called Tyketto
2002-07-13  9:32         ` Vojtech Pavlik
2002-07-13  9:04   ` Russell King
2002-07-15 15:45 Rudmer van Dijk

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=20020714173729.GA15065@win.tue.nl \
    --to=aebr@win.tue.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tyketto@wizard.com \
    --cc=vojtech@suse.cz \
    /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

all inboxes | Powered by JetHome®