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 655924 - Fade-out animation on lid-open when resuming from suspend
Fade-out animation on lid-open when resuming from suspend
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: power
3.1.x
Other Linux
: Normal normal
: ---
Assigned To: Richard Hughes
gnome-settings-daemon-maint
: 646750 651874 662369 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-08-03 18:29 UTC by Cosimo Cecchi
Modified: 2011-10-21 12:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Cosimo Cecchi 2011-08-03 18:29:52 UTC
[ Filing against the g-s-d power plugin, as this seems a recent 3.1.4 regression ]

- close the lid and suspend the laptop
- reopen the lid to exit out of suspend
- a fade-out animation will be performed, before getting to the password lock. This is also bad for privacy, as it shows the currently opened windows fading out for some seconds.

By contrast, suspending from the shell user menu works as expected (the fade-out animation is performed putting the laptop to sleep).
Comment 1 Cosimo Cecchi 2011-08-21 06:51:08 UTC
Richard, this still happens with g-s-d 3.1.5, so it has not been fixed by the post-3.1.4 commits to the power plugin.
Comment 2 Richard Hughes 2011-08-22 11:34:14 UTC
Okay. So if I do:

gdbus call --system --dest org.freedesktop.UPower --object-path /org/freedesktop/UPower --method org.freedesktop.UPower.Suspend ()

... then I get the fade out and the log before suspend. So basically the problem is because the suspend is done _sync() and the internal AboutToSleep callback is not called until after the Suspend() method returns... which is on resume.

I'll fix this now.
Comment 3 Richard Hughes 2011-08-22 11:49:13 UTC
commit 31fe6c18b9ca1034815e4cbffa6e6ea1336e4aec
Author: Richard Hughes <richard@hughsie.com>
Date:   Mon Aug 22 12:47:21 2011 +0100

    power: Ensure we lock the screen before suspending on lid close
    
    We need to suspend using an async method so that the AboutToSleep() signal
    callback gets run.
    Otherwise, the Suspend() method only returns on resume, and we can see the
    dim-to-black and users desktop for a second before the lock dialog is shown.
    
    Resolves https://bugzilla.gnome.org/show_bug.cgi?id=655924

:100644 100644 261f02e... ed88853... M  plugins/power/gsd-power-manager.c
Comment 4 Matthias Clasen 2011-08-25 20:55:50 UTC
*** Bug 651874 has been marked as a duplicate of this bug. ***
Comment 5 Matthias Clasen 2011-08-25 20:56:12 UTC
*** Bug 646750 has been marked as a duplicate of this bug. ***
Comment 6 Florian Müllner 2011-10-21 12:40:23 UTC
*** Bug 662369 has been marked as a duplicate of this bug. ***