GNOME Bugzilla – Bug 685053
call into logind instead of upower for suspend and poweroff
Last modified: 2012-10-29 04:31:59 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.
See bug 680689 for the settings-daemon side of this
*** Bug 685317 has been marked as a duplicate of this bug. ***
This was addressed in bug 686482