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 709069 - Add API to reset idletime
Add API to reset idletime
Status: RESOLVED DUPLICATE of bug 749076
Product: mutter
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2013-09-30 08:07 UTC by Bastien Nocera
Modified: 2015-05-27 14:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
idle-monitor: Add programmatic way to reset idle time (8.23 KB, patch)
2014-11-12 14:01 UTC, Bastien Nocera
rejected Details | Review

Description Bastien Nocera 2013-09-30 08:07:43 UTC
Currently, gnome-settings-daemon pokes at the screen using XTest to reset the idle time:
https://git.gnome.org/browse/gnome-settings-daemon/tree/plugins/power/gpm-common.c#n1620

This won't work with Wayland, and is quite fragile under X11.

This is used to get the screen out of idle when:
- opening the lid
- resuming from suspend
Comment 1 Bastien Nocera 2013-09-30 08:08:44 UTC
This would also require gnome-desktop API obviously.
Comment 2 Bastien Nocera 2014-11-12 14:01:51 UTC
Created attachment 290515 [details] [review]
idle-monitor: Add programmatic way to reset idle time

This can be used in gnome-settings-daemon to reset the idle time when
an event occurs that should behave as if the user pressed a key.

XXX Note, this is only compile tested.
Comment 3 Rui Matos 2015-05-27 14:14:47 UTC
Review of attachment 290515 [details] [review]:

Having a dbus API for this doesn't make much sense to me.

For X sessions, g-s-d uses the fake key press thing that while being a hack, does work fine. For native mutter, we can reset idle time when appropriate since we control the display server. I recently added this for lid open events in https://bugzilla.gnome.org/show_bug.cgi?id=749076 but it seems we also need to reset idle time for suspend resume. Will also add that
Comment 4 Rui Matos 2015-05-27 14:16:56 UTC

*** This bug has been marked as a duplicate of bug 749076 ***