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

Mantas Mikulėnas grawity at gmail.com
Wed May 22 09:41:13 UTC 2019


On Wed, May 22, 2019, 12:37 Germano Massullo <germano.massullo at gmail.com>
wrote:

> Il giorno mer 22 mag 2019 alle ore 11:17 Mantas Mikulėnas
> <grawity at gmail.com> ha scritto:
> > If your program is already X11-based, you could use the screensaver
> protocol to get idle status and forward it to logind.
>
> BOINC client is just a service, and it runs on machines that can run
> X11, Wayland, or no graphical session.
> So if with screensaver protocol you meant XScreensaver API, this
> unfortunately will not fit my needs. Perhaps instead of using a single
> solution for all of them I have to write some code that will adapt at
> least to the main desktop environments, by asking to them the user
> idle time.
>

Better to have a small 'agent' program that runs within the desktop
environment and reports idleness to logind like the DE is supposed to.

That program would be able to use X11 to determine session idleness, and
it'd work for all DEs and wouldn't be limited to BOINC either.

Having BOINC itself dig into the internals of every DE is ... not optimal.


> Second question: perhaps can be useful if I start a topic in GNOME /
> KDE Plasma development mailing lists asking them to make patches that
> will let systemd-logind know about user idle time. By doing this,
> Linux distro world could use systemd-logind as single solution for
> detecting user idle time, making easier the work of third party
> developers
>

Hmm, doesn't GNOME 3 already do this?


_______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20190522/705cf339/attachment.html>


More information about the systemd-devel mailing list