On Wed, May 22, 2019, 12:13 Germano Massullo <germano.massu...@gmail.com> 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@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel