LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How long was the keyboard idle? (https://www.linuxquestions.org/questions/linux-newbie-8/how-long-was-the-keyboard-idle-842821/)

stf92 11-07-2010 12:28 AM

How long was the keyboard idle?
 
Kernel 2.6.21.5, Slackware 12.0.

Hi:
Suppose I am almost sure that from last Thursday, 3.00pm up to the same day at 10.00pm I was away from the machine, but not absolutely sure. Linux probably knows better than me. Maybe there will be a text file from which I could infer the keyboard was idle from Thu 2.40pm up to 11.10 pm. In this case, I would reach absolute certainty.

But where could such file be in the /. tree or what could its name be (for in the latter case an updatedb followed by locate would do)? Any idea?

Tinkster 11-07-2010 01:28 AM

There is no such file, I'm afraid, unless you install a
keyboard sniffer of sorts.

stf92 11-07-2010 01:43 AM

Hi:

And could you send me a link?

mesiol 11-07-2010 01:55 AM

Hi,

your Xserver knows when the last event from mouse or keyboard was. Possibly this will help you to setup a script.

stf92 11-07-2010 02:22 AM

Ajah. But then I have to have X running all time. Any way very useful to know someone knows in the O.S. Cheers.


All times are GMT -5. The time now is 10:10 AM.