Hi,

I have tested the keyboard with xfree86 4.4.0, and the result is the
0xE2 (226 decimal) scancode is passed as 189 keycode by
xf86PostKbdEvent. Here is output of xev with example multimedia 1
keypress events:

KeyPress event, serial 26, synthetic NO, window 0x1e00001,
    root 0x60, subw 0x0, time 277978, (502,508), root:(506,556),
    state 0x0, keycode 189 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:  ""

KeyRelease event, serial 26, synthetic NO, window 0x1e00001,
    root 0x60, subw 0x0, time 277978, (502,508), root:(506,556),
    state 0x0, keycode 189 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:  ""

KeyPress event, serial 26, synthetic NO, window 0x1e00001,
    root 0x60, subw 0x0, time 277983, (502,508), root:(506,556),
    state 0x0, keycode 234 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:  ""

KeyRelease event, serial 26, synthetic NO, window 0x1e00001,
    root 0x60, subw 0x0, time 278088, (502,508), root:(506,556),
    state 0x0, keycode 234 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:  ""

KeyPress event, serial 26, synthetic NO, window 0x1e00001,
    root 0x60, subw 0x0, time 278091, (502,508), root:(506,556),
    state 0x0, keycode 189 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:  ""

KeyRelease event, serial 26, synthetic NO, window 0x1e00001,
    root 0x60, subw 0x0, time 278091, (502,508), root:(506,556),
    state 0x0, keycode 189 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:  ""

My proposition, for implementing support for this (an maybe other
similiar) keyboard is to add an option to "InputDevice" section of
configuration file XF86Config, that will turn on ignoring of first
scancodes greater than 0xE1. This option could be named for example
like: "StripFirstCodeToE1". The option could than be checked in
xf86PostKbdEvent, and make it to return if first scancode is greater
than E1. This solution should be feasable for XFree86 4.3, 4.4 and
perhaps other versions. There is also a chance it will fix problems
with other keyboards, similiar to mine, that sends additional
scancodes (maybe higher even than E2) while pressing multimedia
keys, that could be safely ignored.

Radek

---- Wiadomość Oryginalna ----
Od: David Dawes <[EMAIL PROTECTED]>
Do: [email protected]
Data: Wed, 12 Jan 2005 16:06:57 -0500
Temat: Re: Tracer TRK 21 MTS mm kbd - patches

...
> 
> >suggestions welcome. I will provide additional information when I
> >test the keyboard with XFree 4.4.0.
> 
> Hopefully that will help in finding a good solution to this.
> 
> David
> _______________________________________________
> Devel mailing list
> [email protected]
> http://XFree86.Org/mailman/listinfo/devel
> 
_______________________________________________
Devel mailing list
[email protected]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to