Detecting user idleness

Registered by Angus Helm

The uploader should be capable of detecting when the user has stepped away from the computer, and should not upload activity that occurred during that time.

Blueprint information

Status:
Complete
Approver:
Angus Helm
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Angus Helm
Completed by
Angus Helm

Related branches

Sprints

Whiteboard

Basic idle time detection released in version 39, thanks to Lars.

Ideas of code bases to look at:

xscreensaver detects user idleness somehow. Probably very low-level X coding, though.
pidgin is able to detect when the user is idle, and set the user's status to "Idle".

Probably the best way to do it is to apt-get install python-xlib

then follow the code examples given here: http://tperl.blogspot.com/2007/09/x11-idle-time-and-focused-window-in.html

We should run this check before actually increasing the logged time per application, perhaps even before polling the running application.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.