[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Keyboard usage analyzer



Nelson Castillo wrote:
On Wed, Mar 5, 2008 at 10:34 AM, Raj Kiran Grandhi <grajkiran@gmail.com> wrote:
Is there any utility that can report keyboard usage patterns? There is
 no need for an elaborate keylogging mechanism. I would just like to know
 the number of keypresses I am generating everyday and perhaps the number
 of times each key is pressed.

Hi Kiran.

I wrote a small kernel patch that worked with my keyboards. I think
it can be ported to a recent kernel. I can do it if you're interested.

http://svn.arhuaco.org/svn/src/pcgotchi/trunk/proc-keystrokes.patch.linux-2.6.12.2.txt

I wrote about this more than 2 years ago.

http://arhuaco.blogspot.com/2005/10/cat-prockeystrokes-keyboard-fun.html

How shall we do this without going to kernel space?


That type of histogram is exactly what I am looking for. However, I wish there was something in userspace, preferably run as a normal user. A few years back, I remember there was an applet for the gnome-panel (or kde) that would calculate the total distance the mouse pointer travels across the screen. Cool little applet! An equivalent one for the keyboard would be ideal.

* I think I can do something similar using /dev/input/.
* Also with X?

Please give me some advise now that the issue came up. I couldn't
care less about a keylogger but I care about the statistics. I asked
in LKML with no answer.

Regards,
Nelson.-

BTW:

1) http://pcgotchi.blogspot.com/ I made my old machine post in a weblog.
(Well, I didn't automate it but it is easy). If I don't have to go to kernel
space, I might do it again. I don't want to build kernels all the time
I have to upgrade them.

2) It is not hard to make a programmable keyboard. The simple patch I wrote
can be a starting point.



--
Raj Kiran Grandhi
--
At the source of every error which is blamed on the computer, you will find at least two human errors, including the error of blaming it on the computer.


Reply to: