2003-07-10 23:07:58

by James Cloos

[permalink] [raw]
Subject: [PATCH] [2-LINER] Fix unknown scancode errors for Dell laptops

With stock 2.5, some of the Dell Inspiron laptops give unknown
scancode printk()s from two of their seven multimedia keys.

The patch below fixes that by assigning otherwise unused values to
those two scan codes.

I'm running w/ it now w/o problems.

-JimC

drivers/input/keyboard/atkbd.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff -Nru a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
--- a/drivers/input/keyboard/atkbd.c Tue Jul 8 17:39:32 2003
+++ b/drivers/input/keyboard/atkbd.c Tue Jul 8 17:39:32 2003
@@ -55,13 +55,13 @@
252,253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
254, 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,117,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, 0,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,124,119, 0,118,109, 0, 99,104,119
};

static unsigned char atkbd_set3_keycode[512] = {