Skip to contentSkip to conversation

atime on devices

PATCH Sturle Sunde 1 participant 1 message Jun 16, 2004 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 8 lines · Jan-Benedict Glaw

On Wed, 2004-06-09 16:20:17 +0200, Sturle Sunde <[email protected]> wrote in message <[email protected]>:

Quoted 5 lines

Some software use access times on device files to check if there is mouse or keyboard activity on the console. This used to work in old kernels, or perhaps it was old hardware, but not any more. Google didn't find any other portable ways of checking for mouse or keyboard activity without accessing the X11 display.

open() /dev/input/evdev* and select() on them?

Requires root privileges, and you can't see how long the device was idle before you did select.

Signature · 2 lines
Sturle
~~~~~