After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 725421 - Use fd.o Idle Inhibit spec
Use fd.o Idle Inhibit spec
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Class: GtkApplication
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2014-02-28 20:55 UTC by Samuel Thibault
Modified: 2018-05-02 15:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Samuel Thibault 2014-02-28 20:55:00 UTC
Hello,

While doing a presentation, it happens that discussions over a given slide can last for several minutes, and then the DPMS screensaver enters into action, dropping the output.  It seems to me that while in presentation mode, we never want to see DPMS activate, so evince should probably just always disable it automatically while in presentation mode.
Comment 1 José Aliste 2014-03-01 00:24:17 UTC
Samuel, under which system are you running evince. The screensaver should be disabled while in presentation mode.
Comment 2 Samuel Thibault 2014-03-01 07:09:29 UTC
Well, as the bug says: Linux. fvwm WM.
Comment 3 Germán Poo-Caamaño 2014-03-01 14:14:40 UTC
I think the question was for a little more details, for example which distribution and which version.
Comment 4 José Aliste 2014-03-01 14:28:21 UTC
the question was to know which WM. :) We inhibit going idle using a session manager, I guess that when you run under fvwm you don't have this session manager, most probably you are not even running dbus.
Comment 5 Samuel Thibault 2014-03-01 15:16:04 UTC
This is debian Jessie, package evince-gtk 3.10.0-2. I'm indeed not running a session manager, I run my X session from startx, with an .xinitrc script. AIUI, in that case evince can just call XScreenSaverSuspend or DPMSDisable directly.
Comment 6 Bastien Nocera 2017-07-19 17:51:55 UTC
evince uses gtk_application_inhibit() to inhibit the screensaver, and I doubt that manually calling XScreenSaverSuspend() or DPMSDisable() would ever be considered, seeing as they regress compared to gnome-session's inhibit functionality.

GTK+ should however use the Idle inhibition spec instead of talking to GNOME session or XFCE session directly:
https://people.freedesktop.org/~hadess/idle-inhibition-spec/index.html

You could then run a daemon in your fvwm session to call those X commands for you. I believe there's a couple kind of projects around already.
Comment 7 GNOME Infrastructure Team 2018-05-02 15:58:31 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/471.