From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28384 invoked by alias); 6 Jul 2011 08:16:22 -0000 Received: (qmail 28374 invoked by uid 22791); 6 Jul 2011 08:16:18 -0000 X-SWARE-Spam-Status: No, hits=0.9 required=5.0 tests=AWL,BAYES_50,TW_KB X-Spam-Check-By: sourceware.org Received: from smail2.alcatel.fr (HELO smail2.alcatel.fr) (64.208.49.57) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Jul 2011 08:16:00 +0000 Received: from FRMRSSXCHHUB02.dc-m.alcatel-lucent.com (FRMRSSXCHHUB02.dc-m.alcatel-lucent.com [135.120.45.62]) by smail2.alcatel.fr (8.14.3/8.14.3/ICT) with ESMTP id p668Ee7S011427 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Wed, 6 Jul 2011 10:15:56 +0200 Received: from [151.98.110.34] (135.120.57.7) by FRMRSSXCHHUB02.dc-m.alcatel-lucent.com (135.120.45.62) with Microsoft SMTP Server (TLS) id 8.3.106.1; Wed, 6 Jul 2011 10:15:51 +0200 Message-ID: <4E1419B6.5070209@alcatel-lucent.com> Date: Wed, 06 Jul 2011 14:02:00 -0000 From: Danilo Turina User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: cygwin-xfree Subject: Cygwin X + HP-UX 11.11 + italian keyboard = AltGr not working Content-Type: multipart/mixed; boundary="------------090207060404000004080802" X-IsSubscribed: yes Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2011-07/txt/msg00012.txt.bz2 --------------090207060404000004080802 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 8bit Content-length: 6126 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 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 --------------090207060404000004080802 Content-Type: text/plain; name="XWin.0.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="XWin.0.log" Content-length: 3997 Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 1.10.2.0 OS: Windows XP Service Pack 3 [Windows NT 5.1 build 2600] (Win32) Package: version 1.10.2-1 built 2011-06-28 XWin was started with the following command line: X :0 -multiwindow ddxProcessArgument - Initializing default screens winInitializeScreenDefaults - primary monitor w 1280 h 1024 winInitializeDefaultScreens - native DPI x 96 y 96 _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6 _XSERVTransOpen: transport open failed for inet6/MYMACHINE:0 _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6 [697886.250] (II) xorg.conf is not supported [697886.250] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information [697886.250] LoadPreferences: Loading /home/dturina/.XWinrc [697886.250] LoadPreferences: Done parsing the configuration file... [697886.250] winDetectSupportedEngines - DirectDraw installed, allowing ShadowDD [697886.250] winDetectSupportedEngines - Windows NT, allowing PrimaryDD [697886.250] winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL [697886.250] winDetectSupportedEngines - Returning, supported engines 0000001f [697886.250] winSetEngine - Multi Window or Rootless => ShadowGDI [697886.250] winScreenInit - Using Windows display depth of 32 bits per pixel [697886.265] winAllocateFBShadowGDI - Creating DIB with width: 1280 height: 1024 depth: 32 [697886.265] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff [697886.265] winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32 [697886.265] winInitMultiWindowWM - Calling pthread_mutex_lock () [697886.265] winMultiWindowXMsgProc - Calling pthread_mutex_lock () [697886.265] Screen 0 added at virtual desktop coordinate (0,0). [697886.281] MIT-SHM extension disabled due to lack of kernel support [697886.296] XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel [697886.593] (II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so [697886.593] (II) GLX: Initialized DRISWRAST GL provider for screen 0 [697887.500] winPointerWarpCursor - Discarding first warp: 640 512 [697887.500] (--) 3 mouse buttons found [697887.500] (--) Setting autorepeat to delay=500, rate=31 [697887.500] (--) Windows keyboard layout: "00000410" (00000410) "Italian", type 4 [697887.500] (--) Found matching XKB configuration "Italian" [697887.500] (--) Model = "pc105" Layout = "it" Variant = "none" Options = "none" [697887.500] Rules = "base" Model = "pc105" Layout = "it" Variant = "none" Options = "none" [697888.234] winBlockHandler - pthread_mutex_unlock() [697888.234] winInitMultiWindowWM - pthread_mutex_lock () returned. [697888.234] winInitMultiWindowWM - pthread_mutex_unlock () returned. [697888.234] winMultiWindowXMsgProc - pthread_mutex_lock () returned. [697888.234] winInitMultiWindowWM - DISPLAY=:0.0 [697888.234] winMultiWindowXMsgProc - pthread_mutex_unlock () returned. [697888.265] winProcEstablishConnection - winInitClipboard returned. [697888.265] winMultiWindowXMsgProc - DISPLAY=:0.0 [697888.265] winClipboardProc - DISPLAY=:0.0 [697888.265] winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display. [697888.281] winClipboardProc - XOpenDisplay () returned and successfully opened the display. [697888.375] winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display. [697917.046] winDeinitMultiWindowWM - Noting shutdown in progress [697917.046] winClipboardProc - winClipboardFlushWindowsMessageQueue trapped WM_QUIT message, exiting main loop. [697917.046] winClipboardProc - XDestroyWindow succeeded. [697917.046] winClipboardProc - Clipboard disabled - Exit from server [697917.046] winClipboardIOErrorHandler! [697917.046] winMultiWindowXMsgProcIOErrorHandler! [697917.046] winInitMultiWindowXMsgProc - Caught IO Error. Exiting. [697917.078] winDeinitMultiWindowWM - Noting shutdown in progress --------------090207060404000004080802 Content-Type: text/plain; charset=us-ascii Content-length: 223 -- 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/ --------------090207060404000004080802--