From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5605 invoked by alias); 17 Mar 2004 11:49:48 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Reply-To: cygwin-xfree@cygwin.com Received: (qmail 5547 invoked from network); 17 Mar 2004 11:49:46 -0000 Received: from unknown (HELO smtpout.juntadeandalucia.es) (194.224.161.14) by sources.redhat.com with SMTP; 17 Mar 2004 11:49:46 -0000 Received: from guadix2.juntadeandalucia.es ([10.240.216.8]) by smtpout.juntadeandalucia.es (8.11.6/8.11.6) with ESMTP id i2HBnV329427 for ; Wed, 17 Mar 2004 12:49:32 +0100 Received: from guadix2 (root@localhost) by guadix2.juntadeandalucia.es (8.11.6/8.11.6) with SMTP id i2HBnVK03617 for ; Wed, 17 Mar 2004 12:49:31 +0100 Received: from juntadeandalucia.es ([10.240.216.44]) by antivirus.juntadeandalucia.es (8.11.6/8.11.6) with ESMTP id i2HBnUD03584 for ; Wed, 17 Mar 2004 12:49:31 +0100 Received: (qmail 23729 invoked from network); 17 Mar 2004 11:44:06 -0000 Received: (QMFILT: 1.0); 17 Mar 2004 11:44:06 -0000 Received: from unknown (HELO juntadeandalucia.es) (hans.dekker.ext@[10.240.0.235]) (envelope-sender ) by smtpin03.juntadeandalucia.es (qmail-ldap-1.03) with SMTP for ; 17 Mar 2004 11:44:04 -0000 Message-ID: <40583B9F.6030906@juntadeandalucia.es> Date: Wed, 17 Mar 2004 11:49:00 -0000 From: Hans Dekker Reply-To: hans.dekker.ext@juntadeandalucia.es Organization: Junta de Andalucia User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.0.1) Gecko/20020823 Netscape/7.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: xserv 4.3.0-29 Alt Gr Problem is gone References: <4F698AE6FB425D4A8879766D19E1F929055E1A@win2000.sup-logistik.de> <3FF18715.2020808@msu.edu> <3FFEA396.5090404@juntadeandalucia.es> <4006993B.4030904@juntadeandalucia.es> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,NOSPAM_INC,REFERENCES,SPAM_PHRASE_03_05,USER_AGENT,USER_AGENT_MOZILLA_UA,X_ACCEPT_LANG version=2.43 X-Spam-Level: X-SW-Source: 2004-03/txt/msg00420.txt.bz2 List-Id: Hello Alexander, Sometime ago I asked you about the solution of AltGr keyboards. For HP-UX I found the solution. I am writing a mail to the user group and would like to mention your name (if you like) for helping to find the solution. The text is below. Tell me if that's OK for you or not. Regards, Hans. Hi all, I posted some questions sometime ago on the problem of using Cygwin in conjunction with HP-UX 11 CDE and other X-apps. Although xterm and hpterm were working well after editing with xmodmap, dtterm and our Sas application -which has an X/Motif/X11R6 interface- weren't. After researching and finding mails from various user groups, I found that setting the environment variable XKB_DISABLE=1 is the solution on a HP-UX 11 platform. Setting this parameter disables Motif XKB translations and puts Motif apps back to good old X-handling of keyboards. My suggestion to the editors of the Cygwin manuals would be to put this at least in the Cygwin documentation, since I saw others in your mailing lists having this problem. To get dtterm or your X/Motif application working well with the AtlGr key on HP-UX 11 use: start X environment # XKB_DISABLE=1 dtterm or # XKB_DISABLE=1 Next, you will need to reassign the AltGr key (thanks to A. Gottwalt and Philippe Eclair): xmodmap -e "clear mod5" xmodmap -e "clear mod3" xmodmap -e "keycode 113 = Mode_switch Multi_key" xmodmap -e "add mod3 = Mode_switch" Then you can modify your keyboard further with xmodmap as desired. For convenience I added a xmodmap.es.hpux file with the definitions for a Spanish keyboard. It is a compilation of the definitions found in the file /etc/X11/xkb/symbols/pc/es. You can use xmodmap both on a terminal on your X-server as in the remote application that is using your X-server. Beware to use xmodmap with other X-servers like the ones of Linux or XWin32, since those will have other keycodes mapped to the keyboard! Following the documentation you can prevent the above xmodmap commands, changing one of the keyboard configurations included with Cygwin as you like using the XF86Config file. In my case I still needed to xmodmap keys with to use their 'third' or AltGr definition, although others said this wouldn't be necessary and the keyboard mapping will be brought over OK the the X-server. I included the file /etc/X11/xkb/symbols/pc/es for a Spanish keyboard and added the option "hpux" which is a copy of the "nodeadkeys" options. Activate it in your XF86Config using: Option "XkbLayout" "es" Option "XkbVariant" "hpux" Option "LeftAlt" "Meta" Option "RightAlt" "ModeShift" or use this command when you don't have a XF86Config file: # setxkbmap -layout es -variant hpux Using Cygwin with HP-UX CDE: When you are using CDE on HP-UX you can use the following procedure, which I found on the Internet. Check the solution at http://aa11.cjb.net/hpux_admin/2000/12/0212.html that came from the community: Create the file /etc/dt/config/Xsession.d/0050.disable_xkb with the following content: #!/usr/bin/ksh ##################################################################### ### File: 0050.disable_xkb ### ### Purpose: disable the XKEYBOARD extension in all R6 ### client software. ##################################################################### export XKB_DISABLE=1 and give it the 755 protection. Then put in the .dtprofile of a user the command to change his/her keyboard layout: xmodmap /etc/xmodmap.es.hpux which contains a copy of the enclosed keyboard mapping. Alexander Gottwald escribió: > Alexander Gottwald wrote: > > >>Hans Dekker wrote: >> >> >>>Still, what's the solution to defining your keyboard correctly *before* >>>you start Xwin?. >>> >>>I guess it must be simple, but probably I oversee some configuration >>>file or anything similar. >> >>The config file. >>http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-non-U.S.-keyboard-layout > > > After I've read your mail again I noticed you're connecting to CDE. CDE uses > an old version of X11 and has problems with the keysymbol for the AltGr key. > > Most likely CDE sets the keyboard layout with an extra modmap which does not > work with the 4.3 Release. But so far no one has examined this further or > reported the results. > > bye > ago