Re: interacting with logind to detect user idle time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Wed, May 22, 2019, 12:13 Germano Massullo <germano.massullo@xxxxxxxxx> wrote:
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?

Those desktop environments just do not set the IdleHint at all.

(Logind on its own cannot determine idleness "from the outside", it relies on the DE to pass this information.)

If your program is already X11-based, you could use the screensaver protocol to get idle status and forward it to logind.
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux