Skip to contentSkip to conversation

Timeout: AT keyboard not present?

DISCUSSION [email protected] 4 participants 4 messages Jan 3, 2001

lore
Share & tools
lore
#0 lore raw
	Jan  2 21:20:33 asterix kernel: keyboard: unknown scancode e0 12
	Jan  2 21:20:33 asterix kernel: keyboard: unknown scancode e0 71
	Jan  2 21:20:33 asterix kernel: keyboard: unknown scancode e0 70
	Jan  2 21:20:33 asterix kernel: keyboard: unrecognized scancode (71) - ignored
	Jan  2 21:20:33 asterix kernel: keyboard: unknown scancode e0 70
	Jan  2 21:20:34 asterix kernel: keyboard: unrecognized scancode (70) - ignored
	Jan  2 21:20:47 asterix last message repeated 13 times

This sounds very much as if you got your keyboard into scancode mode 1.

(Ordinarily a key-up event gets scancode of key-down but with high-order bit set. In scancode set 1, a key-up event get the scancode of key-down prefixed by 0xf0. Since the high-order bit is masked here, this 0xf0 would show up as 0x70. Moreover, the key-up for a sequence like e0 71 is e0 f0 71, again what you see here.)

How you got into scancode mode 1 I don't know (maybe by sending the command f0 01 to the keyboard). Do things improve if you rip this strange messy AUX_RECONNECT stuff out of drivers/char/pc_keyb.c?

Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw
Quoted 2 lines · On Wed, Jan 03, 2001 at 03:32:38PM +0100, [email protected] wrote:

How you got into scancode mode 1 I don't know (maybe by sending the command f0 01 to the keyboard).

Kind of f00f bug?

SCNR, JBG

Signature · 4 lines
Fehler eingestehen, Größe zeigen: Nehmt die Rechtschreibreform zurück!!!
/* Jan-Benedict Glaw <[email protected]> -- +49-177-5601720 */
keyID=0x8399E1BB fingerprint=250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB
     "insmod vi.o and there we go..." (Alexander Viro on linux-kernel)
#2 lore raw
In reply to [email protected]
Quoted 4 lines

How you got into scancode mode 1 I don't know (maybe by sending the command f0 01 to the keyboard). Do things improve if you rip this strange messy AUX_RECONNECT stuff out of drivers/char/pc_keyb.c?

2.2.18 the aux reconnect handling is off by default
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw
In reply to [email protected]
Quoted 9 lines · On Wed, 3 Jan 2001 [email protected] wrote:

(Ordinarily a key-up event gets scancode of key-down but with high-order bit set. In scancode set 1, a key-up event get the scancode of key-down prefixed by 0xf0. Since the high-order bit is masked here, this 0xf0 would show up as 0x70. Moreover, the key-up for a sequence like e0 71 is e0 f0 71, again what you see here.)

How you got into scancode mode 1 I don't know (maybe by sending the command f0 01 to the keyboard).

It looks like untranslated mode 2 (i.e. the AT keyboard's mode). You
switch translation on or off by toggling a bit in the onboard 8042's command byte.

PS/2-style keyboards start in mode 2 usually. An XT compatibility (bit 7
meaning release) is provided by the onboard 8042 translating codes. Some systems (I think DEC OSF/1, for example) program keyboards to work in mode 3 (the PS/2 native mode) or possibly mode 1 (XT compatibility mode); for these modes the 8042's translation has to disabled or the keyboard will be next to useless. It's also meaningful to disable the translation in mode 2 -- you are presented with the AT interface then.

Signature · 8 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/