* Some strange patch to drivers/input/keybdev.c
@ 2001-03-23 2:42 Pete Zaitcev
2001-03-23 10:04 ` Kurt Garloff
0 siblings, 1 reply; 2+ messages in thread
From: Pete Zaitcev @ 2001-03-23 2:42 UTC (permalink / raw)
To: linux-kernel; +Cc: zaitcev
Some guy sent me the attached patch. He says it allows
him to use 2 additional keys on the 106 key USB keyboard.
I never saw a 106 key keyboard before, USB or not.
Does anyone understand what is going on? Vojtech?
-- Pete
--- drivers/input/keybdev.c.orig Sat Sep 2 19:01:55 2000
+++ drivers/input/keybdev.c Sat Sep 2 20:21:07 2000
@@ -49,11 +49,11 @@
64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
80, 81, 82, 83, 43, 85, 86, 87, 88,115,119,120,121,375,123, 90,
284,285,309,298,312, 91,327,328,329,331,333,335,336,337,338,339,
- 367,294,293,286,350, 92,334,512,116,377,109,111,373,347,348,349,
+ 367,294,293,286,350, 92,334,512,116,377,109,111,115,347,348,349,
360, 93, 94, 95, 98,376,100,101,357,316,354,304,289,102,351,355,
103,104,105,275,281,272,306,106,274,107,288,364,358,363,362,361,
291,108,381,290,287,292,279,305,280, 99,112,257,258,113,270,114,
- 118,117,125,374,379,259,260,261,262,263,264,265,266,267,268,269,
+ 118,117,125,374,125,259,260,261,262,263,264,265,266,267,268,269,
271,273,276,277,278,282,283,295,296,297,299,300,301,302,303,307,
308,310,313,314,315,317,318,319,320,321,322,323,324,325,326,330,
332,340,341,342,343,344,345,346,356,359,365,368,369,370,371,372 };
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Some strange patch to drivers/input/keybdev.c
2001-03-23 2:42 Some strange patch to drivers/input/keybdev.c Pete Zaitcev
@ 2001-03-23 10:04 ` Kurt Garloff
0 siblings, 0 replies; 2+ messages in thread
From: Kurt Garloff @ 2001-03-23 10:04 UTC (permalink / raw)
To: Pete Zaitcev; +Cc: linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 827 bytes --]
Hi,
On Thu, Mar 22, 2001 at 09:42:55PM -0500, Pete Zaitcev wrote:
> Some guy sent me the attached patch. He says it allows
> him to use 2 additional keys on the 106 key USB keyboard.
> I never saw a 106 key keyboard before, USB or not.
> Does anyone understand what is going on? Vojtech?
don't know if it's related, but new keyboards tend to have those annoying
APM keys. On my keyboard, they generate the scan sequences e0 5e (Power
OFF), e0 5f (Sleep) and e0 63 (Wake Up). I guess the USB kbd also has those
toy keys.
Patch to support those keys on a normal PS/2 kbd attached.
Regards,
--
Kurt Garloff <garloff@suse.de> Eindhoven, NL
GPG key: See mail header, key servers Linux kernel development
SuSE GmbH, Nuernberg, FRG SCSI, Security
[-- Attachment #1.2: linux2216-apm-keys.diff --]
[-- Type: text/plain, Size: 1312 bytes --]
--- linux.compile.old/drivers/char/pc_keyb.c Tue Jul 11 15:00:25 2000
+++ linux.compile/drivers/char/pc_keyb.c Wed Jan 31 18:51:41 2001
@@ -153,6 +153,10 @@
#define E1_PAUSE 119
+#define E0_PWOFF 115
+#define E0_SLEEP 116
+#define E0_ALARM 117
+
/*
* The keycodes below are randomly located in 89-95,112-118,120-127.
* They could be thrown away (and all occurrences below replaced by 0),
@@ -230,10 +234,10 @@
0, 0, 0, 0, 0, E0_KPSLASH, 0, E0_PRSCR, /* 0x30-0x37 */
E0_RALT, 0, 0, 0, 0, E0_F13, E0_F14, E0_HELP, /* 0x38-0x3f */
E0_DO, E0_F17, 0, 0, 0, 0, E0_BREAK, E0_HOME, /* 0x40-0x47 */
- E0_UP, E0_PGUP, 0, E0_LEFT, E0_OK, E0_RIGHT, E0_KPMINPLUS, E0_END,/* 0x48-0x4f */
+ E0_UP, E0_PGUP, 0, E0_LEFT, E0_OK, E0_RIGHT, E0_KPMINPLUS, E0_END, /* 0x48-0x4f */
E0_DOWN, E0_PGDN, E0_INS, E0_DEL, 0, 0, 0, 0, /* 0x50-0x57 */
- 0, 0, 0, E0_MSLW, E0_MSRW, E0_MSTM, 0, 0, /* 0x58-0x5f */
- 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60-0x67 */
+ 0, 0, 0, E0_MSLW, E0_MSRW, E0_MSTM, E0_PWOFF, E0_SLEEP, /* 0x58-0x5f */
+ 0, 0, 0, E0_ALARM, 0, 0, 0, 0, /* 0x60-0x67 */
0, 0, 0, 0, 0, 0, 0, E0_MACRO, /* 0x68-0x6f */
0, 0, 0, 0, 0, 0, 0, 0, /* 0x70-0x77 */
0, 0, 0, 0, 0, 0, 0, 0 /* 0x78-0x7f */
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-03-23 10:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-23 2:42 Some strange patch to drivers/input/keybdev.c Pete Zaitcev
2001-03-23 10:04 ` Kurt Garloff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®