x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

J720 Linux Keymaps (how to tweak and german layout included)

1 2 3 4
timob0 Page Icon Posted 2020-12-25 11:13 AM
#
Avatar image of timob0
Factorite (Junior)

Posts:
40
Location:
Germany
Status:
Merry Xmas guys!

Attached is a little Xmas present for Jornada users with german keyboard layout: I spent some time to tweak the layout in both console and X11 so that the keys produce the characters as per their labels, in particular for the characters needed on the commandline - tilde, bar, greater, less etc.
Also pageup, pagedown and the console scollback (alt-shift up/down arrow) feature should work as expected.

Copy the files to your home folder, then do:
- on the console:
loadkeys de-j720-key.map
- in X:
xmodmap de-j720-Xmodmap
Here's the prodedure to tweak the keymaps: Console: dump the current keymap:
dumpkeys > test.map
edit the keymap:
vi test.map
test the keymap:
loadkeys test.map
X11: dump the keymap:
xmodmap -pke > test.Xmodmap
edit the keymap:
vi test.Xmodmap
test the keymap:
xmodmap test.Xmodmap


Once you're happy with the keymap, you can make it permanent by:
- copying the one for the console to /etc and adding "/usr/bin/loadkeys /etc/de-j720-key.map"
- copying the one for X to /etc/X11/xinit/.Xmodmap -- it will get picked up automatically

Below are the keycodes that the J720 keyboard sends for each of the keys. This should be independant of the language, i.e. it's the raw codes from the keymatrix regardless of the keycap. It's somewhat different from the standard PC layout which is why it's not working out of the box

HP Jornada 720 Keycodes under Linux

Format:
Key
Keycode


Console:
--------

ESC F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 PWR
1 59 60 61 62 63 64 65 66 67 68 87 245

1 2 3 4 5 6 7 8 9 0 ß ' <-
2 3 4 5 6 7 8 9 10 11 12 13 14

Q W E R T Z U I O P Ü + ENTER
16 17 18 19 20 21 22 23 24 25 43 26 28

TAB A S D F G H J K L Ö Ä #
15 30 31 32 33 34 35 36 37 38 39 40 27

LSH Y X C V B N M , . - UP RSH
42 44 45 46 47 48 49 50 51 52 74 103 54

STRG WIN ALT ^ SPC ATGR ENTF LEFT DOWN RIGHT
29 55 56 41 57 53 111 105 108 106


Audio Keys
+ - Play
115 114 113


X (codes shifted by 8 for whatever reason):
----------------------------------

ESC F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 PWR
9 67 68 69 70 71 72 73 74 75 76 95

1 2 3 4 5 6 7 8 9 0 ß ' <-
10 11 12 13 14 15 16 17 18 19 20 21 22

Q W E R T Z U I O P Ü + ENT
24 25 26 27 28 29 30 31 32 33 51 34 36

TAB A S D F G H J K L Ö Ä #
23 38 39 40 41 42 43 44 45 46 47 48 35

LSH Y X C V B N M , . - UP RSH
50 52 53 54 55 56 57 58 59 60 82 111 62

STRG WIN ALT ^ SPC ATGR ENTF LEFT DOWN RIGHT
37 63 64 49 65 61 119 113 116 114


Audio Keys
+ - Play
123 122 121

Kind regards
timo



Attachments
----------------
Attachments de-j720-keymaps.tgz (10KB - 2 downloads)
 Top of the page
Mjolnir Page Icon Posted 2020-12-25 11:41 AM
#
Avatar image of Mjolnir
Subscribers
Factorite (Elite)

Posts:
170
Location:
United States
Status:
Thanks, don't know when or if I'll ever need it but good to have. Merry Christmas and Happy Holidays to you and your family.
 Top of the page
_dev-null Page Icon Posted 2020-12-27 10:04 AM
#
Avatar image of _dev-null
Subscribers
Factorite (Elite)

Posts:
139
Location:
Austria
Status:
Thank you! This is awesome.
Is it ok for you if I put this on my wiki page?

Regards
Stefan
 Top of the page
timob0 Page Icon Posted 2020-12-27 10:46 PM
#
Avatar image of timob0
Factorite (Junior)

Posts:
40
Location:
Germany
Status:
Hi Stefan,
sure, please feel free to add it to the Wiki page. I guess this could be a starting point for a keymap collection.

Also I’m thinking of remapping the Audio Player keys to the left/middle/right mouse buttons, however didn‘t get that working yet.

Kind regards
timo
 Top of the page
_dev-null Page Icon Posted 2020-12-28 10:09 AM
#
Avatar image of _dev-null
Subscribers
Factorite (Elite)

Posts:
139
Location:
Austria
Status:
Hi!
Great - i will add it.

Regarding the right click i thought about this: https://github.com/PeterCxy/evdev-right-click-emulation but i havent time to try it yet.

Stefan
 Top of the page
ArchiMark Page Icon Posted 2020-12-29 11:55 PM
#
Avatar image of ArchiMark
Subscribers
H/PC Elite

Posts:
506
Location:
United States
Status:
This looks great, if you have German keyboard....

Would be great if we could have similar for US keyboard and be able use the characters related to using the Fn key.

Best,

Mark
 Top of the page
joval Page Icon Posted 2020-12-30 4:19 PM
#
Avatar image of joval
Subscribers
H/PC Philosopher

Posts:
377
Location:
Northern California
Status:
Quote
timob0 - 2020-12-27 2:46 PM

Also I’m thinking of remapping the Audio Player keys to the left/middle/right mouse buttons, however didn‘t get that working yet.

Kind regards
timo


Another Christmas Gift...Great Job!! Mouse buttons would be a big help...esp right click!
 Top of the page
timob0 Page Icon Posted 2021-01-07 10:15 AM
#
Avatar image of timob0
Factorite (Junior)

Posts:
40
Location:
Germany
Status:
Hi Archimark,

I'll be happy to provide the same for the US keyboard, however since I have a german Jornada could you provide a photograph of the US keyboard layout? I'll then tweak the keymaps accordingly and provide them for you to test.

Cheers
timo
 Top of the page
ArchiMark Page Icon Posted 2021-01-07 3:00 PM
#
Avatar image of ArchiMark
Subscribers
H/PC Elite

Posts:
506
Location:
United States
Status:
Quote
timob0 - 2021-01-07 2:15 AM

Hi Archimark,

I'll be happy to provide the same for the US keyboard, however since I have a german Jornada could you provide a photograph of the US keyboard layout? I'll then tweak the keymaps accordingly and provide them for you to test.

Cheers
timo


Hi Timo,

THANK YOU so much for kind offer!

I am sure that others here will appreciate and use this too.

Let me know if photo is OK or you need better one.

Mark


Edited by ArchiMark 2021-01-07 3:02 PM




(J720 Keyboard-1.jpg)



(J720 Keyboard-2.jpg)



Attachments
----------------
Attachments J720 Keyboard-1.jpg (848KB - 0 downloads)
Attachments J720 Keyboard-2.jpg (778KB - 1 downloads)
 Top of the page
timob0 Page Icon Posted 2021-01-09 8:43 PM
#
Avatar image of timob0
Factorite (Junior)

Posts:
40
Location:
Germany
Status:
Hi Mark,

this is great, I‘ll go ahead to put the keymaps together.
Have a question:
The fn key - would you press that to get the tilde and bracket characters in wince? On the german keyboard, I believe it would be the alt-gr key however to the right of the keyboard.

Also, can you check if you can run „loadkeys“ on the console and „xmodmap“ in x11?

Thanks
timo
 Top of the page
_dev-null Page Icon Posted 2021-01-09 9:41 PM
#
Avatar image of _dev-null
Subscribers
Factorite (Elite)

Posts:
139
Location:
Austria
Status:
Hi!
Yes, on the english keyboard you have to press the "fn" key to get tilde and bracket characters.


Stefan
 Top of the page
ArchiMark Page Icon Posted 2021-01-09 10:26 PM
#
Avatar image of ArchiMark
Subscribers
H/PC Elite

Posts:
506
Location:
United States
Status:
Hi Timo,

Will check about 'loadkeys' and 'xmodmap' on Monday, when I am back in office. Left the 720 there.

Thanks,

Mark
 Top of the page
timob0 Page Icon Posted 2021-01-10 3:29 PM
#
Avatar image of timob0
Factorite (Junior)

Posts:
40
Location:
Germany
Status:
Hi Mark,

please find attached a us keymap for the linux console. Use it by doing:
loadkeys us-j720-key.map 


It should enable the fn key to enter the yellowish symbols and it should correct a few other mappings so that the key labels represents what the key does.

The blue alt key should work with the arrow keys as per the blue labels (page up/down, home, end) and with alt-shift there are secondary function:
- to quickly switch virtuals consoles: shift-alt-left = previous console, shift-alt-right = next console.
- to scroll the console display: shift-alt-up = scroll back, shift-alt-down = scroll forward

These mappings apply to the console only, for X we will need the .Xmodmap file. We'll work on it once the console one is fine.

The Windows key is mapped as left-alt key.

One caveat: The US keyboard appears to have one key less keys on rows 3,4 and 5 than the german one, so I had to make assumptions as to which keycodes to map there.

Let me know if this works.

Cheers
timo



Attachments
----------------
Attachments us-j720-key.map (28KB - 4 downloads)
 Top of the page
ArchiMark Page Icon Posted 2021-01-11 3:41 PM
#
Avatar image of ArchiMark
Subscribers
H/PC Elite

Posts:
506
Location:
United States
Status:
Hi Timo,

Unfortunately, 'loadkeys' is not installed.

 
# loadkeys us-j720-key.map 
 
loadkeys: command not found 



'xmodmap' is installed, version 1.0.9


Thanks,

Mark


 Top of the page
_dev-null Page Icon Posted 2021-01-11 4:17 PM
#
Avatar image of _dev-null
Subscribers
Factorite (Elite)

Posts:
139
Location:
Austria
Status:
Hi Mark!
You need the "kbd" package installed.
Connect your Jornada to the internet and install it (as su) with this command:

apt-get install kbd

Stefan
 Top of the page
hpc:factor« View previous thread · H/PC Linux / Unix · View next thread »
1 2 3 4
Jump to forum:
Seconds to generate: 0.218 - Cached queries : 69 - Executed queries : 14
Server Time now is: Wednesday, 24 February 2021 - 17:27