GNOME Bugzilla – Bug 709069
Add API to reset idletime
Last modified: 2015-05-27 14:16:56 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
This would also require gnome-desktop API obviously.
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.
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
*** This bug has been marked as a duplicate of bug 749076 ***