Hi, I am the Fedora's BOINC-client co-maintainer.
I am writing to you about user idle time detection on Linux distributions.
In issue tracker
https://github.com/BOINC/boinc/issues/1187#issuecomment-225699768
I wrote the following message:
User idle time detection based on /dev/input/* does not work, since many
Linux distributions like Debian, Fedora, Ubuntu do not update the
"access time" of /dev/input/* (see stat /dev/input/foo)
Moreover:
* you will have problems in detecting user idle time if the user is
connected from SSH to a machine;
* it triggers many SELinux denials messages[1]
There is a smarter way to do that: I have seen in
client/hostinfo_unix.cpp a section that concerns Apple Mac OS, you could
add another section concerning Linux distributions that use systemd[2]
and implement user idle time detection using logind[3] through the D-Bus
API [4]
```
# gdbus introspect --system --dest org.freedesktop.login1 --object-path
/org/freedesktop/login1 | grep -i idle
readonly b IdleHint = false;
readonly t IdleSinceHint = 0;
readonly t IdleSinceHintMonotonic = 0;
readonly s IdleAction = 'ignore';
readonly t IdleActionUSec = 1800000000;
```
What do you think about?
[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1337607
[2]: https://en.wikipedia.org/wiki/Systemd#Adoption_and_reception
[3]: https://www.freedesktop.org/wiki/Software/systemd/logind/
[4]: https://dbus.freedesktop.org/doc/api/html/index.html
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.