Bryan Vyhmeister | 11 Sep 2003 07:19

Jornada 728 Keymap Issues

I have been looking around for a keymap that enable keys like [ ] { }
and others using the fn key. I am using a Jornada 728 booted using the
Jornada 720 (Japanese) option in hpcboot. I would love to be able to do
some C programming and such but the lack of { } makes it very difficult.
Any suggestions? I have been searching the archives but I have not come
up with very much.

Bryan

Valeriy E. Ushakov | 11 Sep 2003 13:25
Picon

Re: Jornada 728 Keymap Issues

Bryan Vyhmeister <bsd <at> hub3.net> wrote:

> I have been looking around for a keymap that enable keys like [ ] { }
> and others using the fn key. I am using a Jornada 728 booted using the
> Jornada 720 (Japanese) option in hpcboot. I would love to be able to do
> some C programming and such but the lack of { } makes it very difficult.
> Any suggestions? I have been searching the archives but I have not come
> up with very much.

I don't have 7x0, however I did some keymap work for (hpcsh) 680
(US/UK, EU, DE, FR maps).

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.

Fix what's wrong ;).

You want to bind KS_Mode_switch as the primary keysym of the "Fn" or
"AltGr" key and put the symbols accessible via Fn/AltGr to the 3rd
column of symbols in the keydesc.

E.g. for US/UK Jornada 680 the keydesc looks like this
(sys/dev/hpc/hpckbdkeymap.h):

(Continue reading)

Bryan Vyhmeister | 11 Sep 2003 18:20

Re: Jornada 728 Keymap Issues

> 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.

> You want to bind KS_Mode_switch as the primary keysym of the "Fn" or
> "AltGr" key and put the symbols accessible via Fn/AltGr to the 3rd
> column of symbols in the keydesc.
> 
> E.g. for US/UK Jornada 680 the keydesc looks like this
> (sys/dev/hpc/hpckbdkeymap.h):
> 
> /* US (ABA), UK (ABU) */
> static const keysym_t jornada6x0_us_keydesc[] = {
> /*  pos      normal          shifted        altgr */
>     KC(2),   KS_1,           KS_exclam,     KS_asciitilde,
(Continue reading)

Valeriy E. Ushakov | 13 Sep 2003 01:32
Picon

Re: Jornada 728 Keymap Issues

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 <at> ptc.spbu.ru                         |       Zu Grunde kommen
(Continue reading)

Brad Spencer | 15 Sep 2003 17:20

Re: Jornada 728 Keymap Issues


   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
   -- 
(Continue reading)

Bryan Vyhmeister | 13 Sep 2003 03:11

Re: Jornada 728 Keymap Issues

> 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.

Thus far I have not been able to get X to run on the Jornada 728. I have built
my own X release from xsrc and installed snapshots from releng.netbsd.org but
none of them include an X server. I always get errors about no server "X" in
PATH.

Bryan

Miles Nordin | 15 Sep 2003 17:47

Re: Jornada 728 Keymap Issues

>>>>> "bv" == Bryan Vyhmeister <bsd <at> hub3.net> writes:

    bv> no server "X" in PATH.

is there a /usr/X11R6/bin/Xhpc?

--

-- 
The Grand Turk: But we're winning.
Horatio Jackson: Well, we surrendered last time.
The Grand Turk: Ah.  What about the virgins?
Horatio Jackson: Oh, please.  Forget about the virgins.  We're _out_
  of virgins.

Bryan Vyhmeister | 15 Sep 2003 18:52

Re: Jornada 728 Keymap Issues

> >>>>> "bv" == Bryan Vyhmeister <bsd <at> hub3.net> writes:
> 
>     bv> no server "X" in PATH.
> 
> is there a /usr/X11R6/bin/Xhpc?

No. There is no such thing in /usr/X11R6/bin.

Bryan

Brad Spencer | 15 Sep 2003 17:21

Re: Jornada 728 Keymap Issues


   > 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.

   Thus far I have not been able to get X to run on the Jornada 728. I have built
   my own X release from xsrc and installed snapshots from releng.netbsd.org but
   none of them include an X server. I always get errors about no server "X" in
   PATH.

   Bryan

Is there a symbolic link in the X11R6 directory that points at the X
server??

--

-- 
Brad Spencer - brad <at> anduin.eldar.org -- KC8VKS
http://anduin.eldar.org  - & -  http://anduin.ipv6.eldar.org [IPv6 only]
[finger brad <at> anduin.eldar.org for PGP public key]

Bryan Vyhmeister | 15 Sep 2003 18:52

Re: Jornada 728 Keymap Issues

>    > 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.
> 
>    Thus far I have not been able to get X to run on the Jornada 728. I have 
> built
>    my own X release from xsrc and installed snapshots from releng.netbsd.org
but
>    none of them include an X server. I always get errors about no server "X"
in
>    PATH.
> 
> Is there a symbolic link in the X11R6 directory that points at the X
> server??

No because there is no X server. The /usr/X11R6/bin directory does not contain
any sort of X server.

Bryan

David Laight | 11 Sep 2003 09:35
Picon

Re: Jornada 728 Keymap Issues

On Wed, Sep 10, 2003 at 10:19:04PM -0700, Bryan Vyhmeister wrote:
> I have been looking around for a keymap that enable keys like [ ] { }
> and others using the fn key. I am using a Jornada 728 booted using the
> Jornada 720 (Japanese) option in hpcboot. I would love to be able to do
> some C programming and such but the lack of { } makes it very difficult.
> Any suggestions? I have been searching the archives but I have not come
> up with very much.

Trigraphs?

	David

--

-- 
David Laight: david <at> l8s.co.uk

Bryan Vyhmeister | 11 Sep 2003 18:16

Re: Jornada 728 Keymap Issues

> Trigraphs?

Yes, I am referring to trigraphs (at least as I understand them).

Bryan


Gmane