Re: Capturing the raw keyboard presses.

From: Bernhard Kaindl (bk@suse.de)
Date: Wed Feb 16 2000 - 05:18:32 EST


On Thu, 27 Jan 2000, Mike A. Harris wrote:
>
> I'm doing something that requires that I capture ALL raw keyboard
> presses. I need to make sure that ALL keys are captured, and
> that means both at the console, and in X, or any other app that
> may or may not take over the keyboard (RAW mode).
>
> I assume that this is possible, and fairly easy. I want to log
> these keystrokes for debugging, etc purposes at the RAW level. I
> think I've found where I should do it (pc_keyb.c), but I wanted
> to know what someone would suggest for this.

Yes, it is fairly easy. Put a printk into the handle_scancode() in keyboard.c
Bernd

> My plan is to have keystrokes logged via syslog for now... I
> don't care if it is a crummy hack as long as it works, and
> captures all keys well. Doing so either in pc_keyb.c or
> keyboard.c (in drivers/char) would be fine.
>
> Ideas?
>
> --
> Mike A. Harris Linux advocate
> Computer Consultant GNU advocate
> Capslock Consulting Open Source advocate
>
> Join the FreeMWare project - the goal to produce a FREE program in
> which you can run Windows 95/98/NT, and other operating systems.
>
> http://www.freemware.org

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



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:14 EST