All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch for atkbd.c from Ubuntu
@ 2006-05-24 18:31 Pete Zaitcev
  2006-05-29  4:59 ` Dmitry Torokhov
  0 siblings, 1 reply; 8+ messages in thread
From: Pete Zaitcev @ 2006-05-24 18:31 UTC (permalink / raw)
  To: dtor_core; +Cc: zaitcev, linux-kernel

Hi, Dmitry:

What do you think about the attached? Apparently, this is needed to
support Korean input keys. Please let me know if this can be included.

Here's a bug entry for reference:
 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=192637

Yours,
-- Pete

diff -ruN linux-2.6.16.i686.orig/drivers/input/keyboard/atkbd.c linux-2.6.16.i686/drivers/input/keyboard/atkbd.c
--- linux-2.6.16.i686.orig/drivers/input/keyboard/atkbd.c	2006-05-23 18:16:01.000000000 +0900
+++ linux-2.6.16.i686/drivers/input/keyboard/atkbd.c	2006-05-24 12:46:09.000000000 +0900
@@ -85,7 +85,7 @@
 	  0, 56, 42, 93, 29, 16,  2,  0,  0,  0, 44, 31, 30, 17,  3,  0,
 	  0, 46, 45, 32, 18,  5,  4, 95,  0, 57, 47, 33, 20, 19,  6,183,
 	  0, 49, 48, 35, 34, 21,  7,184,  0,  0, 50, 36, 22,  8,  9,185,
-	  0, 51, 37, 23, 24, 11, 10,  0,  0, 52, 53, 38, 39, 25, 12,  0,
+	  0, 51, 37, 23, 24, 11, 10,122,123, 52, 53, 38, 39, 25, 12,  0,
 	  0, 89, 40,  0, 26, 13,  0,  0, 58, 54, 28, 27,  0, 43,  0, 85,
 	  0, 86, 91, 90, 92,  0, 14, 94,  0, 79,124, 75, 71,121,  0,  0,
 	 82, 83, 80, 76, 77, 72,  1, 69, 87, 78, 81, 74, 55, 73, 70, 99,

-- Pete

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Patch for atkbd.c from Ubuntu
  2006-05-24 18:31 Patch for atkbd.c from Ubuntu Pete Zaitcev
@ 2006-05-29  4:59 ` Dmitry Torokhov
  2006-05-29  6:34   ` Pete Zaitcev
  0 siblings, 1 reply; 8+ messages in thread
From: Dmitry Torokhov @ 2006-05-29  4:59 UTC (permalink / raw)
  To: Pete Zaitcev; +Cc: linux-kernel, Andrew Morton

On Wednesday 24 May 2006 14:31, Pete Zaitcev wrote:
> Hi, Dmitry:
> 
> What do you think about the attached? Apparently, this is needed to
> support Korean input keys. Please let me know if this can be included.
> 
> Here's a bug entry for reference:
>  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=192637
>

Hi Pete,

Please look here:

	http://bugzilla.kernel.org/show_bug.cgi?id=2817#c4

"I will not accept this patch (or any similar patch) to extend the atkbd.c
mapping table - only standard scancodes are allowed there. The table is
easily modified from userspace, and that is the way to go.

In the past I tried to fill the table with all the entries, but found out
that there are two or three keyboards competing for every position in the
scancode table, with a different keycode."

I continue to agree with Vojtech's position here. Because kernel does not
have ability to detect the kind of keyboard connected to a box (nor do we
really want to store all this data in the kernel) all fine tuning of AT
keymap should be done from userspace.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Patch for atkbd.c from Ubuntu
  2006-05-29  4:59 ` Dmitry Torokhov
@ 2006-05-29  6:34   ` Pete Zaitcev
  2006-06-12  4:49     ` Dmitry Torokhov
  0 siblings, 1 reply; 8+ messages in thread
From: Pete Zaitcev @ 2006-05-29  6:34 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-kernel, akpm, zaitcev

On Mon, 29 May 2006 00:59:31 -0400, Dmitry Torokhov <dtor_core@ameritech.net> wrote:

> 	http://bugzilla.kernel.org/show_bug.cgi?id=2817#c4

Thanks for letting me know, especially the reference.

-- Pete

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Patch for atkbd.c from Ubuntu
  2006-05-29  6:34   ` Pete Zaitcev
@ 2006-06-12  4:49     ` Dmitry Torokhov
  2006-06-12  7:26       ` Pete Zaitcev
  0 siblings, 1 reply; 8+ messages in thread
From: Dmitry Torokhov @ 2006-06-12  4:49 UTC (permalink / raw)
  To: Pete Zaitcev; +Cc: linux-kernel, akpm

On Monday 29 May 2006 02:34, Pete Zaitcev wrote:
> On Mon, 29 May 2006 00:59:31 -0400, Dmitry Torokhov <dtor_core@ameritech.net> wrote:
> 
> > 	http://bugzilla.kernel.org/show_bug.cgi?id=2817#c4
> 
> Thanks for letting me know, especially the reference.
>

Pete,

I am backpedaling on that problem. It seems that HANGUEL/HANJA scancodes are
pretty well-defined an we need to make them work properly. Please look here
for the proposed patch:

	http://bugzilla.kernel.org/show_bug.cgi?id=6642

-- 
Dmitry

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Patch for atkbd.c from Ubuntu
  2006-06-12  4:49     ` Dmitry Torokhov
@ 2006-06-12  7:26       ` Pete Zaitcev
  2006-06-12 16:01         ` Jerome Pinot
  0 siblings, 1 reply; 8+ messages in thread
From: Pete Zaitcev @ 2006-06-12  7:26 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-kernel, akpm

On Mon, 12 Jun 2006 00:49:13 -0400, Dmitry Torokhov <dtor_core@ameritech.net> wrote:

> I am backpedaling on that problem. It seems that HANGUEL/HANJA scancodes are
> pretty well-defined an we need to make them work properly. Please look here
> for the proposed patch:
> 
> 	http://bugzilla.kernel.org/show_bug.cgi?id=6642

Sounds good. Hangul is usually spelled without 'E' in the West, but
I am not Korean, I can't know what is right.

-- Pete

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Patch for atkbd.c from Ubuntu
  2006-06-12  7:26       ` Pete Zaitcev
@ 2006-06-12 16:01         ` Jerome Pinot
  2006-06-12 16:16           ` Dmitry Torokhov
  0 siblings, 1 reply; 8+ messages in thread
From: Jerome Pinot @ 2006-06-12 16:01 UTC (permalink / raw)
  To: Pete Zaitcev; +Cc: Dmitry Torokhov, linux-kernel, akpm

On 6/12/06, Pete Zaitcev <zaitcev@redhat.com> wrote:
> On Mon, 12 Jun 2006 00:49:13 -0400, Dmitry Torokhov <dtor_core@ameritech.net> wrote:
[...]
> Sounds good. Hangul is usually spelled without 'E' in the West, but
> I am not Korean, I can't know what is right.
>
> -- Pete

Maybe a good time, at last, to correct this mispelling ?

http://lists.osdl.org/pipermail/kernel-janitors/2005-October/004970.html

Regards,

-- 
Jerome Pinot
http://ngc891.blogdns.net/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Patch for atkbd.c from Ubuntu
  2006-06-12 16:01         ` Jerome Pinot
@ 2006-06-12 16:16           ` Dmitry Torokhov
  2006-06-12 16:51             ` Jerome Pinot
  0 siblings, 1 reply; 8+ messages in thread
From: Dmitry Torokhov @ 2006-06-12 16:16 UTC (permalink / raw)
  To: Jerome Pinot; +Cc: Pete Zaitcev, linux-kernel, akpm

On 6/12/06, Jerome Pinot <ngc891@gmail.com> wrote:
> On 6/12/06, Pete Zaitcev <zaitcev@redhat.com> wrote:
> > On Mon, 12 Jun 2006 00:49:13 -0400, Dmitry Torokhov <dtor_core@ameritech.net> wrote:
> [...]
> > Sounds good. Hangul is usually spelled without 'E' in the West, but
> > I am not Korean, I can't know what is right.
> >
> > -- Pete
>
> Maybe a good time, at last, to correct this mispelling ?
>
> http://lists.osdl.org/pipermail/kernel-janitors/2005-October/004970.html
>

Yep. Could you please resend me the patch?

Thanks!

-- 
Dmitry

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Patch for atkbd.c from Ubuntu
  2006-06-12 16:16           ` Dmitry Torokhov
@ 2006-06-12 16:51             ` Jerome Pinot
  0 siblings, 0 replies; 8+ messages in thread
From: Jerome Pinot @ 2006-06-12 16:51 UTC (permalink / raw)
  To: dtor_core; +Cc: Pete Zaitcev, linux-kernel, akpm, adobriyan

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

On 6/13/06, Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote:
> On 6/12/06, Jerome Pinot <ngc891@gmail.com> wrote:
> > On 6/12/06, Pete Zaitcev <zaitcev@redhat.com> wrote:
> > > On Mon, 12 Jun 2006 00:49:13 -0400, Dmitry Torokhov <dtor_core@ameritech.net> wrote:
> > [...]
> > > Sounds good. Hangul is usually spelled without 'E' in the West, but
> > > I am not Korean, I can't know what is right.
> > >
> > > -- Pete
> >
> > Maybe a good time, at last, to correct this mispelling ?
> >
> > http://lists.osdl.org/pipermail/kernel-janitors/2005-October/004970.html
> >
>
> Yep. Could you please resend me the patch?
>
> Thanks!

Here it is. You may had the signed-off of Alexey Dobriyan.
If you can't read the attached patch (thanks to gmail), you can get it too from:
http://ngc891.blogdns.net/pub/projects/patches/linux-2.6-hangeul.diff

You're welcome,

-- 
Jerome Pinot
http://ngc891.blogdns.net/

[-- Attachment #2: linux-2.6-hangeul.diff --]
[-- Type: application/octet-stream, Size: 3557 bytes --]

Fix a mispell of the korean alphabet name in the atkbd subsystem.
 See http://en.wikipedia.org/wiki/Hangeul#Names for more details.
 Will make some korean people happy.

Patch against linux-2.6 git 0e838b72d54ed189033939258a961f2a0cd59647

 Signed-off-by: Jerome Pinot <ngc891 at gmail.com>
 ---
	wikipedia: Hangeul
	google: 286000 vs 794
	KEY_HANGUEL left to not break people

				--adobriyan


diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c
index 5755b7e..55704d3 100644
--- a/drivers/char/keyboard.c
+++ b/drivers/char/keyboard.c
@@ -1073,7 +1073,7 @@ static int emulate_raw(struct vc_data *v
 			put_queue(vc, 0x1d | up_flag);
 			put_queue(vc, 0x45 | up_flag);
 			return 0;
-		case KEY_HANGUEL:
+		case KEY_HANGEUL:
 			if (!up_flag) put_queue(vc, 0xf1);
 			return 0;
 		case KEY_HANJA:
diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index fad04b6..e48efdb 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -150,7 +150,7 @@ #define ATKBD_RET_BAT		0xaa
 #define ATKBD_RET_EMUL0		0xe0
 #define ATKBD_RET_EMUL1		0xe1
 #define ATKBD_RET_RELEASE	0xf0
-#define ATKBD_RET_HANGUEL	0xf1
+#define ATKBD_RET_HANGEUL	0xf1
 #define ATKBD_RET_HANJA		0xf2
 #define ATKBD_RET_ERR		0xff
 
@@ -304,7 +304,7 @@ #endif
 
 		if (atkbd->emul ||
 		    (code != ATKBD_RET_EMUL0 && code != ATKBD_RET_EMUL1 &&
-		     code != ATKBD_RET_HANGUEL && code != ATKBD_RET_HANJA &&
+		     code != ATKBD_RET_HANGEUL && code != ATKBD_RET_HANJA &&
 		     (code != ATKBD_RET_ERR || atkbd->err_xl) &&
 	             (code != ATKBD_RET_BAT || atkbd->bat_xl))) {
 			atkbd->release = code >> 7;
@@ -333,8 +333,8 @@ #endif
 		case ATKBD_RET_RELEASE:
 			atkbd->release = 1;
 			goto out;
-		case ATKBD_RET_HANGUEL:
-			atkbd_report_key(atkbd->dev, regs, KEY_HANGUEL, 3);
+		case ATKBD_RET_HANGEUL:
+			atkbd_report_key(atkbd->dev, regs, KEY_HANGEUL, 3);
 			goto out;
 		case ATKBD_RET_HANJA:
 			atkbd_report_key(atkbd->dev, regs, KEY_HANJA, 3);
diff --git a/drivers/macintosh/adbhid.c b/drivers/macintosh/adbhid.c
index 394334e..3c9c970 100644
--- a/drivers/macintosh/adbhid.c
+++ b/drivers/macintosh/adbhid.c
@@ -179,7 +179,7 @@ u8 adb_to_linux_keycodes[128] = {
 	/* 0x65 */ KEY_F9,		/*  67 */
 	/* 0x66 */ KEY_HANJA,		/* 123 */
 	/* 0x67 */ KEY_F11,		/*  87 */
-	/* 0x68 */ KEY_HANGUEL,		/* 122 */
+	/* 0x68 */ KEY_HANGEUL,		/* 122 */
 	/* 0x69 */ KEY_SYSRQ,		/*  99 */
 	/* 0x6a */ 0,
 	/* 0x6b */ KEY_SCROLLLOCK,	/*  70 */
diff --git a/drivers/usb/input/hid-debug.h b/drivers/usb/input/hid-debug.h
index 702c48c..f04d6d7 100644
--- a/drivers/usb/input/hid-debug.h
+++ b/drivers/usb/input/hid-debug.h
@@ -563,7 +563,7 @@ static char *keys[KEY_MAX + 1] = {
 	[KEY_VOLUMEUP] = "VolumeUp",		[KEY_POWER] = "Power",
 	[KEY_KPEQUAL] = "KPEqual",		[KEY_KPPLUSMINUS] = "KPPlusMinus",
 	[KEY_PAUSE] = "Pause",			[KEY_KPCOMMA] = "KPComma",
-	[KEY_HANGUEL] = "Hanguel",		[KEY_HANJA] = "Hanja",
+	[KEY_HANGUEL] = "Hangeul",		[KEY_HANJA] = "Hanja",
 	[KEY_YEN] = "Yen",			[KEY_LEFTMETA] = "LeftMeta",
 	[KEY_RIGHTMETA] = "RightMeta",		[KEY_COMPOSE] = "Compose",
 	[KEY_STOP] = "Stop",			[KEY_AGAIN] = "Again",
diff --git a/include/linux/input.h b/include/linux/input.h
index ce1a756..2a53431 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -231,7 +231,8 @@ #define KEY_KPPLUSMINUS		118
 #define KEY_PAUSE		119
 
 #define KEY_KPCOMMA		121
-#define KEY_HANGUEL		122
+#define KEY_HANGEUL		122
+#define KEY_HANGUEL		KEY_HANGEUL
 #define KEY_HANJA		123
 #define KEY_YEN			124
 #define KEY_LEFTMETA		125

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-06-12 16:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-24 18:31 Patch for atkbd.c from Ubuntu Pete Zaitcev
2006-05-29  4:59 ` Dmitry Torokhov
2006-05-29  6:34   ` Pete Zaitcev
2006-06-12  4:49     ` Dmitry Torokhov
2006-06-12  7:26       ` Pete Zaitcev
2006-06-12 16:01         ` Jerome Pinot
2006-06-12 16:16           ` Dmitry Torokhov
2006-06-12 16:51             ` Jerome Pinot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.