If pckbc_xt_translation() fails, do not try to force the keyboard in table
authormiod <miod@openbsd.org>
Wed, 16 Jul 2008 20:00:45 +0000 (20:00 +0000)
committermiod <miod@openbsd.org>
Wed, 16 Jul 2008 20:00:45 +0000 (20:00 +0000)
commit317210ec029fd94e29b7f420389172a4903d0ae1
treee3034131c2f0be180d030a03b95a4983161b863a
parente621dc49777ecc645257daea1e925573aa9cbaa9
If pckbc_xt_translation() fails, do not try to force the keyboard in table
1; instead, try table 2 first, then 1: some older keyboards, connected to
a castrated 8042, do not know how to talk in table 1 (or worse, will report
they do while they don't).

If automatic translation is not possible, remember which table the keyboard
ended configured in, and convert the scancodes from table 2 to table 1 if
necessary.

ok kettenis@
sys/dev/pckbc/pckbd.c