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

2011-07-06 Thread Danilo Turina

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 0x41,
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 0x41,
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 0x41,
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 0x41,
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 0xc1,
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 0xc1,
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 0xc1,
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 0xc1,
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 0xa1,
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 0xa1,
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 0xa1,
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 0xa1,
root 0x5a, subw 0x0, time 696971250, (79,-9), root:(213,144),
state 0x80, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), 

On xkb_* in /tmp

2011-07-06 Thread Angelo Graziosi

After the last upgrade to xorg-server I find in /tmp:

...316 Jul  7 02:06 xkb_H2DcsY
...316 Jul  7 02:06 xkb_PTGhAv

Is this to be expected?

Ciao,
Angelo.

--
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/



Re: On xkb_* in /tmp

2011-07-06 Thread Angelo Graziosi

Il 07/07/2011 2.12, Angelo Graziosi ha scritto:

After the last upgrade to xorg-server I find in /tmp:

... 316 Jul 7 02:06 xkb_H2DcsY
... 316 Jul 7 02:06 xkb_PTGhAv

Is this to be expected?


Now I have seen that /tmp is filling od xkb_* files each time I login 
(i.e. XWin starts)... :(



Ciao,
Angelo.



--
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/