[Portland-bugs] [Bug 19414] New: "xdg-screensaver suspend" when gnome-screensaver timeout is 1 min. froze the session.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 5 17:33:51 PST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=19414

           Summary: "xdg-screensaver suspend" when gnome-screensaver timeout
                    is 1 min. froze the session.
           Product: Portland
           Version: 1.0
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: xdg-utils
        AssignedTo: portland-bugs at lists.freedesktop.org
        ReportedBy: dyek at real.com


Created an attachment (id=21708)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=21708)
xdg-screensaver patch for the 59-second problem.

"xdg-screensaver suspend" when gnome-screensaver timeout is 1 min. froze the
session.
Fixing xdg-screensaver 59 seconds bug.

Here is the problem description and a simple patch.

This command suspends the Screen Saver operation. 
$ xdg-screensaver suspend <a window id> 

That is, this to prevent the Screen Saver from kicking in (activating).
This "inhibits" the Screen Saver from operating.

xdg-screensaver implements this suspend operation by spawning a 
background process to loop and 
poke gnome-screensaver or SimulateUserActivity.


PROBLEM:
This xdg-screensaver utility failed to work if 
gnome-screensaver timeout is set to 1 min. 
(that is, gnome-screensaver is set to "regard as idle after 1 min".)

As xdg-screensaver sleeps for 59 seconds and then waking up to poke
gnome-screensaver (SimulateUserActivity), 
gnome-screensaver has already started fading.

When the SimulateUserActivity occurs, gnome-screensaver appears to 
fall into inconsistent state, where it neither activate, nor deactivate.
That is, gnome-screensaver fade in and "freeze" the desktop session -- 
from there on, it will not show the password authentication screen 
anymore and the user lost control of the working session. 

SOLUTION:
This is a gnome-screensaver bug, 
but if xdg-screensaver only sleeps for 50 seconds instead of 59 seconds, 
it will be able to wake up in time, this problem doesn't happen.

Files Modified:
scripts/xdg-screensaver


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Portland-bugs mailing list