This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: I lose characters because keycode of Fn is same than DEL
On 23 June 2011 12:34, Jon TURNEY <jon.turney@dronecode.org.uk> 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/