Cygwin X + HP-UX 11.11 + italian keyboard = AltGr not working

Danilo Turina danilo.turina@alcatel-lucent.com
Wed Jul 6 14:02:00 GMT 2011


Hello,
	having recently replaced my old keyboard (that had a US layout) with an 
italian one, I'm having a problem with Cygwin X when running HP-UX 
clients: AltGr does not work and this prevents me to use characters like 
"[" "{" "}" "]", etc.

I'm up to date with Cygwin and Cygwin X at the moment ("1.7.9(0.237/5/3) 
2011-03-29 10:10 i686 Cygwin" for Cygwin and "1.10.2.0" for XWin).

These are the steps to reproduce the problem:

	1) start Cygwin X
	2) disable access control ("xhost +")
	3) access via telnet/ssh a HP-UX machine
	4) open an xterm from the HP-UX machine in Cygwin X
	5) in the newly opened xterm try to use AltGr (AltGr + "è" (i.e. the 
key at the right of "P"), should produce "{", while AltGr + Shift + "è" 
should produce "{")
	6) fall on the floor crying in desperation

Notice that when using a client from a Linux machine all works properly.

A googled a lot and found a lot of information but only few of it 
applied (=helped) to my specific case. I tried to mess with xmodmap and 
kbd config files and also with other stuff, but nothing seemed to solve 
the problem.

At the moment I'm using Xming 6.9.0.31 that doesn't seem affected by the 
problem IF I set XKB_DISABLE=1 on the client machine (i.e. HP-UX).

Trying to troubleshoot the problem, I used xev on the HP-UX machine to 
see if the keys were properly recognized and, in effect, they are.
This are xev results for Cygwin X, when I press (and release) AltGr+è 
(thus by trying to get "[") with XKB_DISABLED not set:

KeyPress event, serial 19, synthetic NO, window 0x400001,
     root 0x101, subw 0x0, time 697269421, (167,-13), root:(345,181),
     state 0x0, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), 
same_screen YES,
     XLookupString gives 0 bytes:
     XFilterEvent returns: False

KeyPress event, serial 22, synthetic NO, window 0x400001,
     root 0x101, subw 0x0, time 697269703, (167,-13), root:(345,181),
     state 0x80, keycode 34 (keysym 0x5b, bracketleft), same_screen YES,
     XKeysymToKeycode returns keycode: 17
     XLookupString gives 1 bytes: (5b) "["
     XFilterEvent returns: False

KeyRelease event, serial 22, synthetic NO, window 0x400001,
     root 0x101, subw 0x0, time 697269750, (167,-13), root:(345,181),
     state 0x80, keycode 34 (keysym 0x5b, bracketleft), same_screen YES,
     XKeysymToKeycode returns keycode: 17
     XLookupString gives 1 bytes: (5b) "["
     XFilterEvent returns: False

KeyRelease event, serial 22, synthetic NO, window 0x400001,
     root 0x101, subw 0x0, time 697269890, (167,-13), root:(345,181),
     state 0x80, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), 
same_screen YES,
     XLookupString gives 0 bytes:
     XFilterEvent returns: False


If I set XKB_DISABLED=1, I get, instead:


KeyPress event, serial 18, synthetic NO, window 0xc00001,
     root 0x101, subw 0x0, time 697070562, (170,-9), root:(216,53),
     state 0x0, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), 
same_screen YES,
     XLookupString gives 0 bytes:
     XFilterEvent returns: False

KeyPress event, serial 18, synthetic NO, window 0xc00001,
     root 0x101, subw 0x0, time 697071250, (170,-9), root:(216,53),
     state 0x80, keycode 34 (keysym 0xe8, egrave), same_screen YES,
     XLookupString gives 1 bytes: (e8) "è"
     XFilterEvent returns: False

KeyRelease event, serial 18, synthetic NO, window 0xc00001,
     root 0x101, subw 0x0, time 697071312, (170,-9), root:(216,53),
     state 0x80, keycode 34 (keysym 0xe8, egrave), same_screen YES,
     XLookupString gives 1 bytes: (e8) "è"
     XFilterEvent returns: False

KeyRelease event, serial 18, synthetic NO, window 0xc00001,
     root 0x101, subw 0x0, time 697071390, (170,-9), root:(216,53),
     state 0x80, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), 
same_screen YES,
     XLookupString gives 0 bytes:
     XFilterEvent returns: False


If I try xev on Xming with XKB_DISABLED=1 (where I have no problem at 
all), I get:

KeyPress event, serial 16, synthetic NO, window 0xa00001,
     root 0x5a, subw 0x0, time 696970906, (79,-9), root:(213,144),
     state 0x0, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), 
same_screen YES,
     XLookupString gives 0 bytes:
     XFilterEvent returns: False

KeyPress event, serial 18, synthetic NO, window 0xa00001,
     root 0x5a, subw 0x0, time 696971078, (79,-9), root:(213,144),
     state 0x80, keycode 34 (keysym 0x5b, bracketleft), same_screen YES,
     XKeysymToKeycode returns keycode: 17
     XLookupString gives 1 bytes: (5b) "["
     XFilterEvent returns: False

KeyRelease event, serial 18, synthetic NO, window 0xa00001,
     root 0x5a, subw 0x0, time 696971140, (79,-9), root:(213,144),
     state 0x80, keycode 34 (keysym 0x5b, bracketleft), same_screen YES,
     XKeysymToKeycode returns keycode: 17
     XLookupString gives 1 bytes: (5b) "["
     XFilterEvent returns: False

KeyRelease event, serial 18, synthetic NO, window 0xa00001,
     root 0x5a, subw 0x0, time 696971250, (79,-9), root:(213,144),
     state 0x80, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), 
same_screen YES,
     XLookupString gives 0 bytes:
     XFilterEvent returns: False

One strange thing that I noticed is that if I start Cygwin X by using 
"startxwin" from the Cygwin's command line, I get the following warning 
on screen:

(--) 3 mouse buttons found
(--) Setting autorepeat to delay=500, rate=31
(--) Windows keyboard layout: "00000410" (00000410) "Italian", type 4
(--) Found matching XKB configuration "Italian"
(--) Model = "pc105" Layout = "it" Variant = "none" Options = "none"
Rules = "base" Model = "pc105" Layout = "it" Variant = "none" Options = 
"none"
The XKEYBOARD keymap compiler (xkbcomp) reports:
 > Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
 >                   Ignoring extra symbols

But that warning is not present in XWin.0.log (attached).

Any suggestion about this problem or about any procedure to diagnose it 
properly?

Thank you,
	Danilo Turina

-- 
DANILO TURINA
ALCATEL-LUCENT
Software Analyst
NM System Team
Network-Optics
Rieti (Italy)
Phone: +39 0746 600332

10 anni 2 mesi 26 giorni 23 ore 59 minuti 7 secondi
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: XWin.0.log
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20110706/f67cf90a/attachment.log>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


More information about the Cygwin-xfree mailing list