atime on devices
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]
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*andselect()on them?
Requires root privileges, and you can't see how long the device was idle before you did select.
Signature · 2 lines
Sturle ~~~~~