Operating System - HP-UX
1833342 Members
3100 Online
110051 Solutions
New Discussion

monitoring X events (remapping of a keyboard)

 
Pit Janssen
New Member

monitoring X events (remapping of a keyboard)

Hi,

I'm new in this forum and I hope, I hit the right group...

Problem: I could not get all keycodes with 'xev' for my keyboard.

History: At the office, I had to 'merge' my HP-UX system with my Win- PC, means two CPUs, connected to one keyboard/mouse/monitor.
For that I'm using a KVM switch 'Master View CS-142'.
Before, the PC had it's own keyboard, a Swiss-German type. On the other hand, the HP-UX system had a PS2 US keyboard.
Now, both CPUs are using the same country specific keyboard, the Swiss- German type.
I changed the keyboard type on the HP-UX system to the sayed type, and allthing is ok WHEN I CONNECT THE KEYBOARD DIRECT TO THE CPU.
But with the CPU- switch, the mapping of the keyboard is wrong.

The hardware of the HP-UX system is: B160L

I got from HP the tool 'xev' (X events) for the remapping. With that, and with the tool 'keymap_ed' I could remap 80 percent of the keys, but not 100 percent.

'xev' does not give me all the keycodes of all keys. Especially not these of 'Num Lock', 'Alt', 'Ctrl-R' and all the keys of the numerical keys block.

Could anybody help me with hints, infos, tools (monitor programs) or such?

I tried all I know and all I can. Actually I'm not have an idea for a solution...


Thanks a lot!


Bye - Pit
3 REPLIES 3
Bill McNAMARA_1
Honored Contributor

Re: monitoring X events (remapping of a keyboard)

Try xmodmap tool.
If you really want to get down to the nitty gritty of Xprotocol to analyse what's going wrong, see http://www.hp-uxconsulting.com/hpux/x11/xscope.html

You can also try another tool found at:

http://hpux.cs.utah.edu/hppd/hpux/X11/Misc/xkeycaps-2.46/

Later,
Bill

It works for me (tm)
Pit Janssen
New Member

Re: monitoring X events (remapping of a keyboard)

Hi Bill,

thanks a lot for your answer! The tool 'xmodmap' I tried already, but I had the same problems as the tool 'keymap_ed'. So I will try now 'xscope' (and 'xmon' I found).
'xkeycaps' now I've on my system, too. I don't have the 'ANSI C Compiler' package, so I can't compile any source. But I found binaries in the internet :-) .
If I've still problems, I will reply again.

Bye - Pit
Pit Janssen
New Member

Re: monitoring X events (remapping of a keyboard)

Hi Bill,

I fear you are my last hope! First I thought I've a problem with 'xev' (monitoring key events), but now I'm sure, the problem is somewhere in the HP-UX OS (PS2 driver, X- server, or something).
I checked a lot and now I'm familiar with the mapping of keys with the tool 'keymap_ed'. The problem is, that some keys cannot be addressed with a keycode, e.g. the key block with the cursor movements keys (up, down, left, right, home, end, ...), the slash key on the num pad and more. These keys are 'connected' with other keys. For example the 'Up' key is connected with the key '8' of the num pad.
I can map the keys of the num pad, but not these of the cursor block. For more information about this have a look at the attachement.
I've a service contract with HP, but the guys can't help me or don't want to help me.
The question is, is there a way to brake the connections between these keys, or to write an emulator program to convert these keycodes to the correct values. An emulator, sitting between the keyboard output and the X server input could be a solution, I think. But I don't have an idea how to solve this...

Hope you can help me!


Bye - Pit