[systemd-devel] interacting with logind to detect user idle time

Germano Massullo germano.massullo at gmail.com
Wed May 22 09:13:29 UTC 2019


Good day.
I have noticed that on many Linux distributions with different desktop
environments, the properties
IdleSinceHint
IdleSinceHintMonotonic
are always equal to zero. This happens even if you try to use a sleep
in order to simulate a kind of user inactivity.
What is this happening?
I have written a little piece of code that is able to print on
standard output the IdleSinceHint

Thank you!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: print_user_idle_time.c
Type: text/x-csrc
Size: 1511 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20190522/9c217c01/attachment.c>


More information about the systemd-devel mailing list