GNOME Bugzilla – Bug 630711
Screensaver not inhibited when playing video
Last modified: 2011-02-21 05:58:28 UTC
If I open a video in Totem (by double-clicking it in Nautilus), the screensaver is not inhibited. However, if I pause and resume the video, the screensaver becomes inhibited.
This has regressed because of the port to GDBus. Because g_dbus_proxy_new_for_bus is asynchronous, then any calls to inhibit the screensaver before running the main loop (which seems to be what is happening) will fall back to X11 inhibit, because the dbus proxy will not be set up yet.
Unfortunately, X11 inhibit doesn't do anything on Ubuntu because of a patch we inherited from Debian to unconditionally disable the xtest code.
I'll attach a patch for this shortly
Created attachment 171188 [details] [review]
This patch fixes it by making sure that attempts to disable the screensaver are postponed until screensaver_dbus_proxy_new_cb has been dispatched
Totem 2.32.0 does not build with this patch applied. The build log is attached to bug 618375.
Oops, that would be bug 618385.
Hmm, I am actually seeing this issue on Fedora 14 with a fresh user account. On an old account, whether the file is played from nautilus or from file → open makes no difference.
I have noticed this on Ubuntu for at least Lucid, and still in Maverick as well. I did some initial researching for myself via this comment on Launchpad:
I'm gathering y'all are more on the money, but I offer this as an end-users attempt to help.
I'm also curious if xscreensaver and gnome-screensaver are both supported by totem? I thought things were working with gnome-screensaver when I initially installed Maverick, but then I swapped out gnome-screensaver for xscreensaver and now I have to manually inhibit it while I watch movies.
I'm also not clear on if I should report this error against Bug 630711 (this bug), or against Bug 567908 ?
Much much simpler version in master and gnome-2-32.
Author: Bastien Nocera <email@example.com>
Date: Mon Feb 21 05:49:53 2011 +0000
scrsaver: Disable even when fullscreen comes quick
As the screensaver might be disabled before we get access
to the D-Bus proxy, try again after we have the proxy.
Spotted by Chris Coulson.