From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5400 invoked by alias); 30 Jun 2011 08:40:54 -0000 Received: (qmail 5390 invoked by uid 22791); 30 Jun 2011 08:40:53 -0000 X-SWARE-Spam-Status: No, hits=1.9 required=5.0 tests=AWL,BAYES_40,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-fx0-f42.google.com (HELO mail-fx0-f42.google.com) (209.85.161.42) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 30 Jun 2011 08:40:32 +0000 Received: by fxe23 with SMTP id 23so1974521fxe.15 for ; Thu, 30 Jun 2011 01:40:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.6.198 with SMTP id a6mr2622358faa.130.1309421681491; Thu, 30 Jun 2011 01:14:41 -0700 (PDT) Received: by 10.223.97.65 with HTTP; Thu, 30 Jun 2011 01:14:41 -0700 (PDT) In-Reply-To: <4E0324BB.5020004@dronecode.org.uk> References: <612FC9F74FD24AD98964B222EA085F89@sulzer.de> <4E0324BB.5020004@dronecode.org.uk> Date: Thu, 30 Jun 2011 08:40:00 -0000 Message-ID: Subject: Re: I lose characters because keycode of Fn is same than DEL From: Phil Betts To: cygwin-xfree Content-Type: text/plain; charset=ISO-8859-1 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-06/txt/msg00026.txt.bz2 On 23 June 2011 12:34, Jon TURNEY wrote: > On 10/06/2011 10:33, Paul Maier wrote: >> >> on a a IBM Lenovo Laptop T60 there is a "Fn" key to adjust the screen >> brightness and such. >> >> That "Fn" key has the same keycode than the DEL key. >> Therefore I can't change the Fn key with xmodmap (because I would change >> the DEL key the same way.) >> > ... > I think this is a bug in the way XWin translates Windows keystrokes into X > keycodes. > > Can you run the X server with the extra option '-logverbose 3' and report > what is written to /var/log/xwin/XWin.0.log when you press the Fn key. Since the OP hasn't responded, I have the same problem on a Lenovo R500 laptop. Running as suggested produces this when the Fn key is pressed: [ 710.350] winTranslateKey: wParam 000000ff lParam 01630001 [ 710.350] winSendKeyEvent: dwKey: 99, fDown: 1, nEvents 3 [ 710.366] winTranslateKey: wParam 000000ff lParam c1630001 [ 710.366] winSendKeyEvent: dwKey: 99, fDown: 0, nEvents 2 and this when the Delete key is pressed: [ 730.240] winTranslateKey: wParam 0000002e lParam 01530001 [ 730.240] winSendKeyEvent: dwKey: 99, fDown: 1, nEvents 2 [ 730.349] winTranslateKey: wParam 0000002e lParam c1530001 [ 730.349] winSendKeyEvent: dwKey: 99, fDown: 0, nEvents 2 Phil -- 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/