public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Piter PUNK <piterpk@terra.com.br>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Problems with ABNT2 USB keyboards
Date: Sat, 13 Aug 2005 22:20:58 -0300	[thread overview]
Message-ID: <42FE9C7A.8000509@terra.com.br> (raw)

[-- Attachment #1: Type: text/plain, Size: 363 bytes --]

Hi,

	I got problems trying to use ABNT2 USB keyboards with the
"." key in numeric keypad. The problem only appears in USB
keyboards (not in PS/2) and in 2.4 series (not in 2.6).

	The solution is very simple, and only need to change one line
and add other in pc_keyb.c. And, in my tests, don't affect any other
keyboards.

						Thanks a lot,

							Piter PUNK

[-- Attachment #2: dot_in_ABNT2_keyboard.patch --]
[-- Type: text/plain, Size: 839 bytes --]

--- linux/drivers/char/pc_keyb.c	2005-07-26 21:16:40.000000000 -0300
+++ linux-my/drivers/char/pc_keyb.c	2005-07-26 21:16:33.000000000 -0300
@@ -231,6 +231,12 @@
 #define E0_MSLW	125
 #define E0_MSRW	126
 #define E0_MSTM	127
+/* piterpk@terra.com.br:
+ * Brazilian ABNT2 had 18 keys in numeric keypad
+ * instead 17 in other keyboards. The 18th key is
+ * a "."
+ */
+#define E0_KPPT 121
 
 static unsigned char e0_keys[128] = {
   0, 0, 0, 0, 0, 0, 0, 0,			      /* 0x00-0x07 */
@@ -247,7 +253,7 @@
   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, 0, 0, 0, 0, E0_MACRO,		      /* 0x68-0x6f */
-  0, 0, 0, 0, 0, 0, 0, 0,			      /* 0x70-0x77 */
+  0, 0, 0, 0, 0, E0_KPPT, 0, 0,			      /* 0x70-0x77 */
   0, 0, 0, 0, 0, 0, 0, 0			      /* 0x78-0x7f */
 };
 

                 reply	other threads:[~2005-08-14  1:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=42FE9C7A.8000509@terra.com.br \
    --to=piterpk@terra.com.br \
    --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