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 685053 - call into logind instead of upower for suspend and poweroff
call into logind instead of upower for suspend and poweroff
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 685317 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-09-28 15:15 UTC by Matthias Clasen
Modified: 2012-10-29 04:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2012-09-28 15:15:49 UTC
Calling into upower works, and upower does pass the calls on to logind, but by the time they reach logind, they come from a root process (upowerd), and thus inhibitors don't quite have the same effect: You may get a polkit dialog if you hit the moon key, but not if you use the suspend menuitem. The easiest way to fix this is to call into logind directly.

At the same time, we should make the shell take a delay inhibitor while the shield is animating. Currently, gsd has to blindly wait for half a second to prevent the animation being cut in half by the suspend.
Comment 1 Matthias Clasen 2012-09-28 15:16:38 UTC
See bug 680689 for the settings-daemon side of this
Comment 2 Cosimo Cecchi 2012-10-02 19:32:25 UTC
*** Bug 685317 has been marked as a duplicate of this bug. ***
Comment 3 Matthias Clasen 2012-10-29 04:31:46 UTC
This was addressed in bug 686482