[PATCH] Fix scancode->keycode->scancode conversion for 2.6.5

From: Giuseppe Bilotta
Date: Tue Apr 20 2004 - 07:42:42 EST


This patch fixes a problem with the RAW mode emulation in
2.6.5 kernels for AT keyboards in Translated Set 2 mode.

It allows correct behavior for scancodes 0x81 to 0x84 which,
if mapped by e.g. setkeycodes to their correct value (129 to 132)
behave as if they were 0x85, 0x86, 0x87, 0x8c

The patch should present no problems since only 0 values get changed.

--- atkbd.c.265 Tue Apr 20 13:32:32 2004
+++ atkbd.c Tue Apr 20 13:32:32 2004
@@ -81,13 +81,13 @@
82, 83, 80, 76, 77, 72, 1, 69, 87, 78, 81, 74, 55, 73, 70, 99,

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 217,100,255, 0, 97,165, 0, 0,156, 0, 0, 0, 0, 0, 0,125,
- 173,114, 0,113, 0, 0, 0,126,128, 0, 0,140, 0, 0, 0,127,
+ 217,100,255, 0, 97,165,172, 0,156, 0, 0, 0, 0, 0,187,125,
+ 173,114, 0,113, 0, 0,189,126,128, 0, 0,140, 0, 0, 0,127,
159, 0,115, 0,164, 0, 0,116,158, 0,150,166, 0, 0, 0,142,
157, 0, 0, 0, 0, 0, 0, 0,155, 0, 98, 0, 0,163, 0, 0,
226, 0, 0, 0, 0, 0, 0, 0, 0,255, 96, 0, 0, 0,143, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,107, 0,105,102, 0, 0,112,
- 110,111,108,112,106,103, 0,119, 0,118,109, 0, 99,104,119, 0,
+ 110,111,108,112,106,103,171,119, 0,118,109, 0, 99,104,119, 0,

0, 0, 0, 65, 99,
};




--
Giuseppe "Oblomov" Bilotta

Can't you see
It all makes perfect sense
Expressed in dollar and cents
Pounds shillings and pence
(Roger Waters)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/