metrics: Clean up user-active code.
Stop listening for the soon-to-deleted PowerStateChanged
D-Bus signal from powerd; the code that was listening for
it had some issues (there was no guarantee that it'd run
before the system suspended, and resumes weren't handled at
Also remove the session-state- and screen-lock-handling
code; it provided an inaccurate view of user activity (what
if the user is listening to music with the screen locked or
if they don't have screen-locking enabled?).
Track uptime instead via a timer that fires every five
TEST=manual: ran metrics_daemon --nodaemon and watched the
Reviewed-by: Daniel Erat <email@example.com>
Commit-Queue: Daniel Erat <firstname.lastname@example.org>
Tested-by: Daniel Erat <email@example.com>
5 files changed