Re: ps2 keyboard filter hook

Dan Streetman (ddstreet@us.ibm.com)
Fri, 15 Jun 2001 17:30:03 -0400 (EDT)


>X11 likes to talk direct to the PS/2 port. I actually think you should
>instead
>talk to Vojtech for the mainstream kernel about the input device work. It
>sounds much cleaner and more close to what you need

Ah, I didn't realize the input layer was handling PS/2 stuff...? Although I am
not sure it would work; the special needs of these keyboards requires the driver
to do some bizarre things, such as:

- change scancodes. I was and still am shocked by this. I will say that it is
a 'legacy feature' that I'm told is due having to deal with Windoze...
- consume scancodes. The keyboard uses normal scancodes for the extra hardware
as well as normal keys, so if the driver can't filter them out large amounts
of strange characters will appear when (e.g.) a credit card is swiped.
- send large amounts of bytes (multi-KB) to the PS/2 port (I think this
may be possible).

The filtering needs to be done fairly early (I think), or the keyboard state may
get corrupted by seemingly random 'normal' scancodes coming in (for non-raw
modes)...

Vojtech, could you comment on if the above is possible using the input layer?

-- 
Dan Streetman
ddstreet@us.ibm.com
--------------------------------------------------
186,282 miles per second:
It isn't just a good idea, it's the law!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/