Operating System - HP-UX
1830935 Members
2241 Online
110017 Solutions
New Discussion

Keyboard / Keymap Problem

 
Matthew Shaylor
New Member

Keyboard / Keymap Problem

I have a B2000 with HP-UX 11 installed as well as the latest version of Gnome using a British keyboard. The problem I have is that the '|' [pipe] key is typed it doesn't work! I see a '|' character but it doesn't perform the pipe action. When I telnet into another machine and type a '|' I see '&' [ampersand] so I'm guessing that this is the character that is getting though to the shell and causing my errors.

Has anyone got any ideas where I've gone wrong and what I can do to fix it?

Thanks,
Matthew.
6 REPLIES 6
melvyn burnard
Honored Contributor

Re: Keyboard / Keymap Problem

what is /etc/kbdlang set to?

It could be set to US keyboard.
If unsure, mv it out of the way as a backup (not copy) an dthen reboot.
The system should see the file is missing, and ask you to select the keyboard type.
HTH
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Josh_13
Super Advisor

Re: Keyboard / Keymap Problem

sounds like the type is set incorrectly.
if not you can always add a stty command to remap it into your profile.
Alex Glennie
Honored Contributor

Re: Keyboard / Keymap Problem

Also worth checking is the output from xmodmap -pke .... I had a discussion on this about a month or so ago but have been unable to find the thread : same problem pipe and gnome : try the search facility you maybe luckier than I ....
Matthew Shaylor
New Member

Re: Keyboard / Keymap Problem

I'm pretty convinced that its not a kbdlang problem for two reasons, firstly it displays a bar which it wouldn't otherwise. Secondly it worked under CDE :)

I found the old thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x35ba28e43106d6118ff40090279cd0f9!0,00.html

That discusses it in length. Basically running:
xmodmap -e "keycode 28 = backslash bar" solves the problem.

Question: Is there a config file I can change to make this change permanent? Failing that would putting it in my .bashrc or .profile file work?
Alex Glennie
Honored Contributor

Re: Keyboard / Keymap Problem

Hi,

If it were me I'd run xmodmap via my .profile or similar.

to do this on a system wide basis I'd try adding the xmodmap entry to either my Xsession file or via an Xsession.d script : see the /usr/dt/config directory .... I think this will still be read or used when X starts even though gdm not CDE is running.

Another alternative would be to use

keymap_ed to edit the /usr/lib/X11/XHPKeymaps file.
Andy McDade
Advisor

Re: Keyboard / Keymap Problem

I have tried the xmodmap -e command and still I get ^ae from the \| key (I'm using my PC to type this mail).
I also do not get a ?? sign out of the 3?? key - I get , well it looks like ^a with a ~ over it.

Any more ideas, as I cannot get my pipe symbol working in gnome, with my UK keyboard.