public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel@Janik.cz (Pavel Janík)
To: linux-kernel@vger.kernel.org
Subject: PATCH: Four function buttons on DELL Latitude X200
Date: Mon, 09 Dec 2002 00:35:42 +0100	[thread overview]
Message-ID: <m3d6ocjd81.fsf@Janik.cz> (raw)

Hi,

this patch add support for four functions key on DELL Latitude X200.

--- pc_keyb.c.orig	2002-12-07 18:03:00.000000000 +0100
+++ pc_keyb.c	2002-12-07 18:37:04.000000000 +0100
@@ -214,6 +214,23 @@
 #define E0_DO      116
 #define E0_F17     117
 #define E0_KPMINPLUS 118
+
+/*
+ * DELL Latitude X200
+ *
+ * The keyboard of DELL Latitude has one special key - `i' button and
+ * three Function keys: End, Page Up and Page Down.
+ *
+ */
+
+/* The `i' button in the top-right corner */
+#define E0_I      120
+
+/* Function key + {End, Page Up, Page Down} */
+#define E0_FN_END    121
+#define E0_FN_PGUP   122
+#define E0_FN_PGDOWN 123
+
 /*
  * My OmniKey generates e0 4c for  the "OMNI" key and the
  * right alt key does nada. [kkoller@nyx10.cs.du.edu]
@@ -230,13 +247,13 @@
 #define E0_MSTM	127
 
 static unsigned char e0_keys[128] = {
-  0, 0, 0, 0, 0, 0, 0, 0,			      /* 0x00-0x07 */
+  0, E0_I, 0, 0, 0, 0, 0, 0,			      /* 0x00-0x07 */
   0, 0, 0, 0, 0, 0, 0, 0,			      /* 0x08-0x0f */
   0, 0, 0, 0, 0, 0, 0, 0,			      /* 0x10-0x17 */
   0, 0, 0, 0, E0_KPENTER, E0_RCTRL, 0, 0,	      /* 0x18-0x1f */
-  0, 0, 0, 0, 0, 0, 0, 0,			      /* 0x20-0x27 */
-  0, 0, 0, 0, 0, 0, 0, 0,			      /* 0x28-0x2f */
-  0, 0, 0, 0, 0, E0_KPSLASH, 0, E0_PRSCR,	      /* 0x30-0x37 */
+  E0_FN_END, 0, 0, 0, 0, 0, 0, 0,			      /* 0x20-0x27 */
+  0, 0, 0, 0, 0, 0, E0_FN_PGDOWN, 0,			      /* 0x28-0x2f */
+  E0_FN_PGUP, 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 */


If you want to use it, loadkeys something like this:


#
# This is the supplemental keymap for DELL Latitude X200 keyboard.
#

# (c) 2002, Pavel Janík <Pavel@Janik.cz>

#
# Dell Latitude X200 has four additional keys with the following scancodes:
#
# - e0 01: `i' button in the top-right corner
# - e0 20: Fn + End
# - e0 30: Fn + Page Up
# - e0 2e: Fn + Page Down
#

keycode 120 = F120
keycode 121 = F121
keycode 122 = F122
keycode 123 = F123

string F120 = "#Dell `i' button pressed - please edit dell_latitude_X200.map\n"
string F121 = "#Dell Fn+End pressed - please edit dell_latitude_X200.map\n"
string F122 = "#Dell Fn+Page Up pressed - please edit dell_latitude_X200.map\n"
string F123 = "#Dell Fn+Page Down pressed - please edit dell_latitude_X200.map\n"

-- 
Pavel Janík

Document your data layouts.
                  --  The Elements of Programming Style (Kernighan & Plaugher)

             reply	other threads:[~2002-12-08 23:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-08 23:35 Pavel Janík [this message]
2002-12-09  0:19 ` PATCH: Four function buttons on DELL Latitude X200 Bernd Eckenfels
2002-12-09 19:33   ` H. Peter Anvin
2002-12-10 21:34     ` Pavel Machek
2002-12-11 22:41       ` H. Peter Anvin
2002-12-13 16:22         ` Jan-Benedict Glaw
2002-12-12  1:01       ` Andries Brouwer
2002-12-12  8:43       ` Vojtech Pavlik
2002-12-12 11:48         ` James H. Cloos Jr.
2002-12-12 11:51           ` Vojtech Pavlik
2002-12-12 12:17             ` James H. Cloos Jr.
2002-12-12 12:20               ` Vojtech Pavlik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3d6ocjd81.fsf@Janik.cz \
    --to=pavel@janik.cz \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox