[Bug 559110] New: gnome-screensaver-command --poke does not inhibit screensaver
http://bugzilla.novell.com/show_bug.cgi?id=559110 http://bugzilla.novell.com/show_bug.cgi?id=559110#c0 Summary: gnome-screensaver-command --poke does not inhibit screensaver Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: s8472@gmx.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Opera/9.80 (X11; Linux x86_64; U; de) Presto/2.2.15 Version/10.10 I have the following ~/.mplayer/config file: # Write your default config options here! heartbeat-cmd="gnome-screensaver-command --poke" according to mplayer Wiki this should suffice to prevent the screensaver to show up. It worked exactly like this in openSuSE 11.1 but not in 11.2. This might be a bug openSuSE has in common with at least debian and ubuntu: https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/428884 I also wrote a small script that executes gnome-screensaver-command --poke: #!/bin/bash while true do echo "en gång till" /usr/bin/gnome-screensaver-command -p sleep 60 done same problem Reproducible: Always Steps to Reproduce: 1. set heartbeat-cmd in mplayer-config or run the script from the details section 2. start watching a video with mplayer and/or don't move the mouse 3. see the screensaver appear Actual Results: the screensaver shows up. Expected Results: the screensaver should stay off. openSuSE 11.2 with standard repositories. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559110 http://bugzilla.novell.com/show_bug.cgi?id=559110#c1 Dinar Valeev <dvaleev@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dvaleev@novell.com --- Comment #1 from Dinar Valeev <dvaleev@novell.com> 2009-12-05 00:55:33 UTC --- Can reproduce this bug with VLC and totem. Upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=579430 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559110 http://bugzilla.novell.com/show_bug.cgi?id=559110#c2 Jiri Slaby <jslaby@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jslaby@novell.com, | |vuntz@novell.com --- Comment #2 from Jiri Slaby <jslaby@novell.com> 2010-02-13 17:37:54 UTC --- Reproducible in Factory as well. gnome-screensaver --no-daemon --debug gives: [gs_manager_request_unlock] gs-manager.c:1782 (18:35:50): Request unlock but manager is not active -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559110 http://bugzilla.novell.com/show_bug.cgi?id=559110#c3 --- Comment #3 from Jiri Slaby <jslaby@novell.com> 2010-02-13 17:51:57 UTC --- (In reply to comment #2)
[gs_manager_request_unlock] gs-manager.c:1782 (18:35:50): Request unlock but manager is not active
Which is OK when GS doesn't run (and when it runs, it disappears, unless locked). I would expect --poke to rather reset timers though. As unlocking the screen by --poke is weird behavior. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c4 --- Comment #4 from Dinar Valeev <dvaleev@novell.com> 2010-08-31 13:36:57 UTC --- It seems yesterday update for xorg-x11-server on oS11.3 fixed my issue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c5 Gábor Varga <vargusz@fazekas.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vargusz@fazekas.hu --- Comment #5 from Gábor Varga <vargusz@fazekas.hu> 2011-12-13 11:01:14 UTC --- Cross-desktop video player applications have since switched over to using xdg-screensaver for the same purpose. However, the xdg-utils-1.0.2 in openSUSE 12.1 does not support Gnome 3. So the xdg-screensaver shipped with openSUSE 12.1 has no effect when trying to inhibit the screensaver, as it still uses the removed --poke option of gnome-screensaver-command. Unfortunately, there has not been an official stable release of xdg-utils at freedesktop.org since version 1.0.2: 1.1.0-rc1 was released in January 2011, but it is still missing this functionality. Rex Dieter of Fedora implemented the D-Bus API for GNOME screensaver in patch [1] on 31 March 2011, Fedora ships with his patches applied. Since both the video players (MPlayer and VLC, namely) and GNOME marked this interoperability issue as "won't fix", the way to go is fixing xdg-screensaver. This patch should be included in openSUSE. [1] http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=666d65cae0f2e66d33ec0dc... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c6 Jean Delvare <jdelvare@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Component|GNOME |GNOME InfoProvider| |vargusz@fazekas.hu Product|openSUSE 11.2 |openSUSE 12.1 OS/Version|openSUSE 11.2 |openSUSE 12.1 --- Comment #6 from Jean Delvare <jdelvare@suse.com> 2012-02-04 13:09:41 UTC --- I have built a xdg-utils package including the fix mentioned in comment #5. It doesn't fix my problem (apparently me-tv doesn't actually call xdg-screensaver) but it should fix the problem for any application calling xdg-screensaver under Gnome 3.2. The package can be found at: https://build.opensuse.org/package/show?package=xdg-utils&project=home%3Ajdelvare%3AFactory I invite every user affected by this problem under openSUSE 12.1 to give it a try and report. I'm also updating the product field as openSUSE 11.2 is no longer maintained and the bug still exists in openSUSE 12.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c7 Gábor Varga <vargusz@fazekas.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|vargusz@fazekas.hu | --- Comment #7 from Gábor Varga <vargusz@fazekas.hu> 2012-02-05 21:35:18 UTC --- I installed the provided RPM on openSUSE 12.1, the results are not 100% perfect. I tested using a screensaver timeout of 60 seconds. The screen starts to fade out just a few seconds before the timeout, so first I thought it was because the fading starts earlier than the 59-second sleep time of the SimulateUserActivity D-BUS action (this race condition is addressed in [1]). However, even after applying [1] (with as low a loop interval as 10 seconds), the following remains: after the configured idle timeout the screen starts to fade out, and when complete, the screen returns to normal (continuing to play the movie with VLC, in my case) without actually starting the screensaver. This fadeout effect does not occur again after another 60 seconds, so it appears only at the first (real, not simulated) idle timeout. So I guess there is another related issue with gnome-shell or gnome-session. This might be because the SimulateUserActivity action is not the proper Inhibit/UnInhibit API, and gnome-screensaver does not propagate anything towards the shell after handling the SimulateUserActivity call. I'll try to look into the details later. [1] http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=7465b22a95e9a28e3f4960e... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c8 --- Comment #8 from Gábor Varga <vargusz@fazekas.hu> 2012-02-06 10:11:51 UTC --- I tried to reproduce the same thing on another machine. The only difference was that this one was set to require a password when returning from the screensaver. The fade-out effect occured as before, but instead of resuming the desktop, the password entry dialog was shown, as if the SimulateUserActivity would indeed simulate some user activity after the screensaver has kicked in, but not before. Looking at the output of `gnome-screensaver --no-daemon --debug`, when xdg-screensaver signals gnome-screensaver via the D-BUS method before the activation of the screensaver, the following output is logged: [gs_manager_request_unlock] gs-manager.c:1346 (<time>): Request unlock but manager is not active My guess is that gnome-screensaver does not reset its idle counter correctly upon receiving the SimulateUserActivity call. Apparently the gs_manager_request_unlock function is called from gs_monitor_simulate_user_activity in gs-monitor.c. This function has the following comment: "FIXME: reset the xsync timer?" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c9 --- Comment #9 from Gábor Varga <vargusz@fazekas.hu> 2012-02-07 15:08:29 UTC --- Leaving write-only mode, I have noticed that comment #2 has already shown the root cause. The transition from the --poke option of gnome-screensaver-command to the SimulateUserActivity D-BUS interface of gnome-screensaver has just been an additional problem, the original one was never solved. Also, comment #1 points to the original upstream Gnome bug: 17 new comments have appeared there since, including a few (broken) attempts to fix the issue. Despite all efforts, the bug remains in the state RESOLVED WONTFIX, as the Gnome people would like the video players to adopt their D-BUS interface, and the video player people (both MPlayer and VLC) say that they are only willing to use standardized interfaces (freedesktop.org). So the patch in comment #5 is not enough. Debian testing has an additional patch at [1], in file xdg-screensaver-new-gnome.diff. It requires perl, perl-Net-DBus and perl-X11-Protocol, however, it failed on my openSUSE system with message "Connection to server failed: No protocol specified" when calling X11::Protocol->new(), so some minor modifications might be necessary. The Debian bug was tracked at [2], and was solved on November 20, 2011. [1] http://ftp.debian.org/debian/pool/main/x/xdg-utils/xdg-utils_1.1.0~rc1+git20... [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610155 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c10 --- Comment #10 from Jean Delvare <jdelvare@suse.com> 2012-02-11 17:55:26 UTC --- I will not spend more time on this, it's way too broken for me to fix as it is outside my area of expertise. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c11 --- Comment #11 from Gábor Varga <vargusz@fazekas.hu> 2012-02-14 12:16:43 UTC --- I submitted a bug report and a patch for the Perl error message mentioned in comment #9 as bug #746894. When it gets fixed, the error blocking the Debian patch will probably go away. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c Gábor Varga <vargusz@fazekas.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |746894 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c Bug 559110 depends on bug 746894, which changed state. Bug 746894 Summary: Perl module X11::Auth not knowing about the openSUSE-specific XAUTHLOCALHOSTNAME environment variable. http://bugzilla.novell.com/show_bug.cgi?id=746894 What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c12 --- Comment #12 from Gábor Varga <vargusz@fazekas.hu> 2012-06-28 21:28:13 UTC --- The patches mentioned in comment #5, comment #7 and comment #9 have been committed to openSUSE:Factory/xdg-utils as OBS Request 126281 [1]. [1] https://build.opensuse.org/request/show/126281 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c13 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dimstar@opensuse.org --- Comment #13 from Dominique Leuenberger <dimstar@opensuse.org> 2012-06-28 21:43:01 UTC --- (In reply to comment #12)
The patches mentioned in comment #5, comment #7 and comment #9 have been committed to openSUSE:Factory/xdg-utils as OBS Request 126281 [1].
And was also copied to openSUSE:12.2 which is branched off already. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c14 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #14 from Dominique Leuenberger <dimstar@opensuse.org> 2012-06-30 13:35:54 UTC --- So we have the fix in 12.2... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c15 --- Comment #15 from Dinar Valeev <dvaleev@suse.com> 2012-06-30 19:30:29 UTC --- can we fix that for 12.1 as well? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c16 --- Comment #16 from Dominique Leuenberger <dimstar@opensuse.org> 2012-07-01 11:57:39 UTC --- Request: #126779 maintenance_incident: home:dimstar/xdg-utils -> openSUSE:Maintenance (release in openSUSE:12.1:Update) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c17 --- Comment #17 from Gábor Varga <vargusz@fazekas.hu> 2012-07-01 16:34:57 UTC --- In reply to comment #16 Please be aware that the second patch in your batch request (previously committed to Factory as OBS Request 126281 and then copied to openSUSE:12.2 as revision 2) requires perl-X11-Protocol to be patched too. The patch for bug #746894 has been committed to Factory as OBS Request 121743 before branching off openSUSE:12.2 (so it is in 12.2 too), but not in openSUSE:12.1:Update, as far as I know, so that patch should be added to your OBS Request 126779 (I cannot add any comments there). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=559110 https://bugzilla.novell.com/show_bug.cgi?id=559110#c18 --- Comment #18 from Swamp Workflow Management <swamp@suse.de> 2012-07-09 09:08:35 UTC --- openSUSE-RU-2012:0850-1: An update that has three recommended fixes can now be installed. Category: recommended (low) Bug References: 559110,746894,749612 CVE References: Sources used: openSUSE 12.1 (src): perl-X11-Protocol-0.56-3.4.1, xdg-utils-1.0.2-98.4.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com