2003-07-29 15:01:17

by Matias Alejo Garcia

[permalink] [raw]
Subject: Dell Keyboard patch

Hi,

This is a trival patch por Dell Inpiron Notebooks, in order to have the
play and rew keys mapped to KEY_PLAYPAUSE and KEY_PREVIOUSSONG, and the
stop key mapped to KEY_STOPCD (instead of KEY_PLAYPAUSE).

In detail:

keycode keycode
scancode before after this patch
-----------------------------------------
287 0 KEY_PREVIOUSSONG
309 KEY_PLAYPAUSE KEY_STOPCD
375 0 KEY_PLAYPAUSE

It may help somebody.

mat?as


--- linux-2.6.0-test2/drivers/input/keyboard/atkbd.c 2003-07-29
11:22:50.000000000 -0400
+++ linux-2.6.0-test1-mg/drivers/input/keyboard/atkbd.c 2003-07-29
11:28:13.000000000 -0400
@@ -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,166, 0,156, 0, 0,140,115, 0,165,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,
+ 159,167,115,160,166, 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,164,119, 0,118,109, 0, 99,104,119
};

static unsigned char atkbd_set3_keycode[512] = {