Re: 2.6.0_test6: CONFIG_I8K produces wrong/no keycodes for specialbuttons

From: Georg Nikodym
Date: Mon Oct 06 2003 - 15:03:07 EST


On Mon, 06 Oct 2003 19:56:05 +0200
Jan Schubert <Jan.Schubert@xxxxxx> wrote:

> >-g (who's been too lazy to attempt the atkbd.c patchery needed to fix
> >this)
> >
> So, i assume you will fix this?

Wrong. I know basically nothing about the input/keyboard code. But...

Andries Brouwer posted, in another thread, that one should be able to
take the code from the message, and edit the table atkbd_set2_keycode...

Were it that simple (my patch is attached). For the two buttons that
yielded the error message, I changed the 0 to the keycode that 2.4 used
to provide...

So this makes the messages go away, that's only half the battle. If you
run with this patch, you'll notice that the Prev button generates the
same X keycode as the End key (which is busted).

I have no earthly idea how the keycodes in atkdb.c map to X keycodes.
Maybe somebody can explain it in a simple way...

-g


===== /ws/georgn/bk/keller-kernels/keller-2.6/drivers/input/keyboard/atkbd.c 1.37 vs edited =====
--- 1.37/drivers/input/keyboard/atkbd.c Fri Sep 26 02:56:26 2003
+++ edited//ws/georgn/bk/keller-kernels/keller-2.6/drivers/input/keyboard/atkbd.c Mon Oct 6 14:30:39 2003
@@ -65,13 +65,13 @@
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,255,
0, 0, 92, 90, 85, 0,137, 0, 0, 0, 0, 91, 89,144,115, 0,
- 217,100,255, 0, 97,165,164, 0,156, 0, 0,140,115, 0, 0,125,
+ 217,100,255, 0, 97,165,164, 0,156, 0, 0,140,115, 0, 131,125,
173,114, 0,113,152,163,151,126,128,166, 0,140, 0,147, 0,127,
159,167,115,160,164, 0, 0,116,158, 0,150,166, 0, 0, 0,142,
157, 0,114,166,168, 0, 0,213,155, 0, 98,113, 0,163, 0,138,
226, 0, 0, 0, 0, 0,153,140, 0,255, 96, 0, 0, 0,143, 0,
133, 0,116, 0,143, 0,174,133, 0,107, 0,105,102, 0, 0,112,
- 110,111,108,112,106,103, 0,119, 0,118,109, 0, 99,104,119
+ 110,111,108,112,106,103, 129,119, 0,118,109, 0, 99,104,119
};

static unsigned char atkbd_set3_keycode[512] = {

Attachment: pgp00001.pgp
Description: PGP signature