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 693162 - loginManager: Make suspend() a NOP in the ConsoleKit path
loginManager: Make suspend() a NOP in the ConsoleKit path
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-02-04 21:04 UTC by Florian Müllner
Modified: 2013-02-08 16:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
loginManager: Make suspend() a NOP in the ConsoleKit path (1.85 KB, patch)
2013-02-04 21:04 UTC, Florian Müllner
committed Details | Review
loginManager: Fix canSuspend in non-logind path (812 bytes, patch)
2013-02-08 08:24 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2013-02-04 21:04:17 UTC
See patch.
Comment 1 Florian Müllner 2013-02-04 21:04:21 UTC
Created attachment 235166 [details] [review]
loginManager: Make suspend() a NOP in the ConsoleKit path

UPower will remove its suspend support eventually, and g-s-d already
depends on logind for power management.
Comment 2 Giovanni Campagna 2013-02-04 21:40:48 UTC
Review of attachment 235166 [details] [review]:

Uhm... Ok, but Upower has not removed its suspend support yet, and gsd's plugin can be disabled.
Is there a particular reason for this, other than upsetting Gentoo and Debian?
Comment 3 Florian Müllner 2013-02-04 22:51:16 UTC
(In reply to comment #2)
> Review of attachment 235166 [details] [review]:
> 
> Uhm... Ok, but Upower has not removed its suspend support yet

According to Bastien it is going to happen "soon".


> Is there a particular reason for this, other than upsetting Gentoo and Debian?

"support for suspend relies on the use of logind and won't be available otherwise" is easier to communicate than "automatic suspend will only work when using logind; suspend is still available from the user menu, although your screen may not be locked at all or only after coming back from suspend"
Comment 4 Florian Müllner 2013-02-06 00:03:34 UTC
Attachment 235166 [details] pushed as b91d9c2 - loginManager: Make suspend() a NOP in the ConsoleKit path
Comment 5 Jasper St. Pierre (not reading bugmail) 2013-02-06 00:08:09 UTC
For the record, I think this is fine.
Comment 6 Jeremy Bicha 2013-02-08 06:58:15 UTC
I'm still not convinced that "power management = non-basic functionality". Fortunately this commit was easy enough to revert as a distro patch once I got annoyed enough at having to run "sudo pm-suspend".

To be slightly more constructive, shouldn't this commit also have removed the Suspend button completely on non-systemd systems rather than having a dummy button?
Comment 7 Florian Müllner 2013-02-08 08:24:41 UTC
Created attachment 235489 [details] [review]
loginManager: Fix canSuspend in non-logind path

It is supposed to be a NOP, but commit b91d9c28679 got it wrong.


(In reply to comment #6)
> I'm still not convinced that "power management = non-basic functionality".
> Fortunately this commit was easy enough to revert as a distro patch once I got
> annoyed enough at having to run "sudo pm-suspend".

I suspect UPower dropping support for suspend later this cycle (unless I misunderstood the time frame for this), at which point a simple revert won't do anymore.


> To be slightly more constructive, shouldn't this commit also have removed the
> Suspend button completely on non-systemd systems rather than having a dummy
> button?

Yes, that's what the patch was supposed to do. Apparently I messed it up, fix attached.
Comment 8 Giovanni Campagna 2013-02-08 08:27:13 UTC
Still, I don't understand this whole "upower is dropping support for suspend".
Ubuntu is going to systemd any time soon, AFAIUI, so they'll keep using and maintaining suspend code in upower, even if it is their own fork.
Comment 9 Florian Müllner 2013-02-08 08:33:47 UTC
(In reply to comment #8)
> Still, I don't understand this whole "upower is dropping support for suspend".
> Ubuntu is going to systemd any time soon, AFAIUI, so they'll keep using and
> maintaining suspend code in upower, even if it is their own fork.

That's fine, but we won't need to support any issues in the non-logind path upstream (ensuring the screen is locked before suspending being the most prominent one)
Comment 10 Jasper St. Pierre (not reading bugmail) 2013-02-08 16:20:20 UTC
Review of attachment 235489 [details] [review]:

OK.
Comment 11 Florian Müllner 2013-02-08 16:30:41 UTC
Attachment 235489 [details] pushed as 1bf996c - loginManager: Fix canSuspend in non-logind path