From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 987 invoked by alias); 23 Jun 2011 11:34:36 -0000 Received: (qmail 938 invoked by uid 22791); 23 Jun 2011 11:34:35 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtpout.karoo.kcom.com (HELO smtpout.karoo.kcom.com) (212.50.160.34) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Jun 2011 11:34:19 +0000 Received: from 213-152-38-55.dsl.eclipse.net.uk (HELO [192.168.0.8]) ([213.152.38.55]) by smtpout.karoo.kcom.com with ESMTP; 23 Jun 2011 12:34:17 +0100 Message-ID: <4E0324BB.5020004@dronecode.org.uk> Date: Thu, 23 Jun 2011 11:34:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110528 Thunderbird/5.0b1 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: Paul Maier Subject: Re: I lose characters because keycode of Fn is same than DEL References: <612FC9F74FD24AD98964B222EA085F89@sulzer.de> In-Reply-To: <612FC9F74FD24AD98964B222EA085F89@sulzer.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00014.txt.bz2 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.) > > When I adjust the screen brightness, I lose characters in the editor. > Unfortunately the Fn key REPEATS firing delete while the key is pressed. > And several times I didn't notice the loss before saving and leaving the editor. > > Here is the output of xev when I press the Fn key: (Pressing the DEL key would yield the very same output.) > > > KeyPress event, serial 20, synthetic NO, window 0xa00001, > root 0x101, subw 0xa00002, time 42594031, (35,42), root:(259,282), > state 0x0, keycode 107 (keysym 0xffff, Delete), same_screen YES, > XLookupString gives 1 bytes: (7f) "<7f>" > XFilterEvent returns: False > > > What can we do? Thanks for the bug report. 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. -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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/