AltGr not functioning when logged in on HP-UX

Daniel Bratell daniel.bratell@idainfront.se
Wed May 21 11:50:00 GMT 2003


I have a swedish keyboard which requires the use of the AltGr key for 
many characters (for instance @ { ] and € ) but I can not get the AltGr 
to work when I display windows from a HPUX machine on my local 
cygwin-xfree (the latest available). Pressing AltGr+2 which should 
produce a @ just displays a 2. I have no problems when I write locally, 
nor when I'm logged in to Linux or Solaris machines.

I've tried debugging the problem without success. As far as I understand 
the AltGr should create a ModeShift and it seems to do that. I've 
downloaded a xev program for HPUX (it has none in the official 
distribution) and when I just press and release AltGr it says:

KeyPress event, serial 18, synthetic NO, window 0x1a00001,
root 0x36, subw 0x1a00002, time 425831393, (56,46), root:(319,267),
state 0x10, keycode 113 (keysym 0xff7e, Mode_switch), same_screen YES,
modifier: mod2
XLookupString gives 0 characters: ""

KeyRelease event, serial 21, synthetic NO, window 0x1a00001,
root 0x36, subw 0x1a00002, time 425831543, (56,46), root:(319,267),
state 0x2010, keycode 113 (keysym 0xff7e, Mode_switch), same_screen YES,
modifier: mod2 Button6
XLookupString gives 0 characters: ""


If I try to write a @ by pressing AltGr+2 I get:

KeyPress event, serial 21, synthetic NO, window 0x1a00001,
root 0x36, subw 0x0, time 425923575, (586,319), root:(849,540),
state 0x10, keycode 113 (keysym 0xff7e, Mode_switch), same_screen YES,
modifier: mod2
XLookupString gives 0 characters: ""

KeyPress event, serial 21, synthetic NO, window 0x1a00001,
root 0x36, subw 0x0, time 425923735, (586,319), root:(849,540),
state 0x2010, keycode 11 (keysym 0x40, at), same_screen YES,
modifier: mod2 Button6
XLookupString gives 1 characters: "@"

KeyRelease event, serial 21, synthetic NO, window 0x1a00001,
root 0x36, subw 0x0, time 425923846, (586,319), root:(849,540),
state 0x2010, keycode 11 (keysym 0x40, at), same_screen YES,
modifier: mod2 Button6
XLookupString gives 1 characters: "@"

KeyRelease event, serial 21, synthetic NO, window 0x1a00001,
root 0x36, subw 0x0, time 425924056, (586,319), root:(849,540),
state 0x2010, keycode 113 (keysym 0xff7e, Mode_switch), same_screen YES,
modifier: mod2 Button6
XLookupString gives 0 characters: ""

All this looks correct to me, but no applications I've tried (different 
versions of emacs and and xterm) produces anything else than a "2".

If I try to write a @ in emacs and look at the character input with C-h 
l it only displays the character 2. Other systems display the character @.

If I (or colleagues) connect to a HP-UX machine using eXceed or WinaXe 
as the local X server there's no problem with the AltGr. The only 
"unknown" in this equation is cygwin-xfree which is why I write to this 
mailinglist. Does anyone have an idea on how to proceed with debugging?

/Daniel




More information about the Cygwin-xfree mailing list