Subject: Re: Jornada 728 Keymap Issues
To: None <port-hpcarm@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: port-hpcarm
Date: 09/13/2003 03:32:11
--/WwmFnJnmDyWGHa4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Sep 11, 2003 at 09:20:37 -0700, Bryan Vyhmeister wrote:

> > In sys/arch/hpcarm/dev/j720ssp.c:j720kbd_poll() add a debug printf
> > before passing 'value' to wskbd_input (doing this only for type ==
> > WSCONS_EVENT_KEY_DOWN should be enough).  You probably want to
> > conditionalize that on a volatile int variable that you can frob from
> > ddb.
> > 
> > Press all keys, noting the values and compare that with
> > sys/arch/hpcarm/dev/j720kbdmap.c.
> 
> This sounds great but I have no idea how to do it. I am not sure how
> to add a debug printf. I am not even sure exactly what a volatile
> int variable is. I apologize for my ignorance on these subjects. If
> a patch could be done to add this, I will make a correct keymap but
> I am afraid I do not know how to add what you are referring to.
> 
> > Fix what's wrong ;).
> 
> That is my goal.

Thanks to Bryan for doing the boring numbers thing and testing it.
The patch is attached.

BTW, does this help the X server?  I don't know if the hpcarm X server
bases its keyboard layout on wscons keysyms or raw scancodes.

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen

--/WwmFnJnmDyWGHa4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="j720kbdmap.c-diff"

Index: j720kbdmap.c
===================================================================
RCS file: /cvsroot/src/sys/arch/hpcarm/dev/j720kbdmap.c,v
retrieving revision 1.6
diff -u --unified -r1.6 j720kbdmap.c
--- j720kbdmap.c	2003/07/15 00:25:07	1.6
+++ j720kbdmap.c	2003/09/12 21:48:45
@@ -47,7 +47,7 @@
 #define KC(n) KS_KEYCODE(n)
 
 static const keysym_t j720kbd_keydesc_us[] = {
-/*  pos      command		normal		shifted */
+/*  pos      command		normal		shifted		altgr */
     KC(1),   KS_Cmd_Debugger,	KS_Escape,
     KC(2),   KS_Cmd_Screen0,	KS_f1,
     KC(3),   KS_Cmd_Screen1,	KS_f2,
@@ -57,9 +57,12 @@
     KC(7),   KS_Cmd_Screen5,	KS_f6,
     KC(8),   KS_Cmd_Screen6,	KS_f7,
     KC(9),   KS_Cmd_Screen7,	KS_f8,
-    KC(17),  			KS_1,		KS_exclam,
-    KC(18),  			KS_2,		KS_at,
-    KC(19),  			KS_3,		KS_numbersign,
+    KC(10),			KS_f9,
+    KC(11),			KS_f10,
+    KC(12),			KS_f11,
+    KC(17),  			KS_1,		KS_exclam,	KS_asciitilde,
+    KC(18),  			KS_2,		KS_at,		KS_grave,
+    KC(19),  			KS_3,		KS_numbersign,	KS_sterling,
     KC(20),  			KS_4,		KS_dollar,
     KC(21),  			KS_5,		KS_percent,
     KC(22),  			KS_6,		KS_asciicircum,
@@ -78,8 +81,8 @@
     KC(39), 			KS_u,
     KC(40), 			KS_i,
     KC(41), 			KS_o,
-    KC(42), 			KS_p,
-    KC(43), 			KS_backslash,	KS_bar,
+    KC(42), 			KS_p,           KS_P,		KS_braceleft,
+    KC(43), 			KS_backslash,	KS_bar,		KS_braceright,
     KC(44),			KS_BackSpace,
     KC(49), 			KS_a,
     KC(50), 			KS_s,
@@ -90,6 +93,7 @@
     KC(55), 			KS_j,
     KC(56), 			KS_k,
     KC(57), 			KS_l,
+    KC(58), 			KS_semicolon,	KS_colon,	KS_bracketleft,
     KC(65), 			KS_z,
     KC(66), 			KS_x,
     KC(67), 			KS_c,
@@ -99,22 +103,19 @@
     KC(71), 			KS_m,
     KC(72), 			KS_comma,	KS_less,
     KC(73), 			KS_period,	KS_greater,
+    KC(75), 			KS_apostrophe,	KS_quotedbl,	KS_bracketright,
     KC(76), 			KS_Return,
     KC(81), 			KS_Tab,
     KC(83), 			KS_Shift_L,
     KC(92), 			KS_Shift_R,
-    KC(101), KS_Cmd2,		KS_Alt_L,
+    KC(101),  KS_Cmd2,		KS_Alt_L,
+    KC(102),			KS_Mode_switch,
 
     KC(113),			KS_Meta_L,
     KC(114),  KS_Cmd1,		KS_Control_L,
     KC(116), 			KS_space,
     KC(120), 			KS_slash,	KS_question,
     KC(121),  KS_Cmd_ResetEmul,	KS_Delete,
-
-    /* below are guesses from Japanese model key layout */
-    KC(59),			KS_bracketright, KS_braceright,
-    KC(58), 			KS_semicolon,	KS_colon,
-    KC(75), 			KS_apostrophe,	KS_quotedbl,
 
     KC(90),			KS_Up,
     KC(105),			KS_Left,

--/WwmFnJnmDyWGHa4--