1831340 Members
3623 Online
110024 Solutions
New Discussion

Keyboard mapping

 
Scott Hewes
Advisor

Keyboard mapping

Hello All,

I have a problem with key mapping when users telnet or ssh from RedHat Linux workstations to an HP RP7400. The problem is within Arc/Info AMLs where the Caps_Lock and Num_Lock keys do not work. The indicator lamps light up and turn off when the keys are pressed in succession though. Also the the Caps_Lock and Num_Lock keys do work just fine at the HPUX command prompt, within Arc, and within ArcEdit, but do not work while in/running an AML even though the indicator lights are on.

Another thing to note is that the Lock keys do work fine within Arc/Info AMLs when connected to the RP7400 through an HP Evizex X-station and when telneted or ssh'd from an HP C160. It is only when connect from a Linux workstation that I have this problem.

I have ran "xmodmap -pke" when connected from the Linux box and when connected from the HP C160. The results from the xmodmap command reveal that the key mapping is different. Is there anyway to remap the keys exclusively on the Linux box to be the same as the keys on the C160? For instance, I have tried remapping the keys using xmodmap but have had no luck. The keycode for the Num_Lock key on the C160 is 127 and the keycode for Num_Lock on the Linux box is 77. What I would like to do is have the Linux box send a keycode of 127 when the Num_lock key is pressed instead of keycode 77. Can this be done?
5 REPLIES 5
Billy Ng
Occasional Advisor

Re: Keyboard mapping

Yu may try the following:
-create a file called .Xmodmap under the the user's home directory.
-in .Xmodmap file, put something like: keycode 127 = Num_Lock
(if 127 is the keycode for Num_Lock key in Linux)
Hope this can help!
Wodisch
Honored Contributor

Re: Keyboard mapping

Hi Scott,

how about to simply disable the keyboard mapping changes before starting that application?
Then the *old* (=good) mapping would stay...

FWIW,
Wodisch
Scott Hewes
Advisor

Re: Keyboard mapping

I have tried both what Billy and Wodisch have desribed with no luck. What I would like to do is make the linux keyboard's scancodes (not keycodes) the same as and HP C160 keyboard scancodes. Can this be done by changing the keyboard type within linux? Can the scancodes be modified? Thanks in advance.
Robert-Jan Goossens
Honored Contributor

Re: Keyboard mapping

Hi Scott,

Try kdmconfig to set your keyboard on Linux.

Hope it helps,

Robert-Jan.
Judy Traynor
Valued Contributor

Re: Keyboard mapping

Another alternative is untic - put the mapping into a text file, then tic it-

back to binary - HP supports the tic/untic - I'm not sure if linux does.

Note - top line of the untic'd file contains the new filename, so should be modified, or at least copied out of the terminfo area

Sail With the Wind