Summary: | can't suspend/hibernate from KDE application menu | ||
---|---|---|---|
Product: | [Plasma] Powerdevil | Reporter: | Thomas Masper <thomas.masper> |
Component: | general | Assignee: | Plasma Development Mailing List <plasma-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kde, stupor_scurvy343 |
Priority: | NOR | ||
Version: | 5.3.90 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/powerdevil/41d369f7c57b31f13cb120d09b3e9f71119d86f4 | Version Fixed In: | 5.4.0 |
Sentry Crash Report: | |||
Attachments: | Use UPower if CK2 is not available |
Description
Thomas Masper
2015-08-16 15:01:48 UTC
Do you have ConsoleKit2 installed? No, I do not have ConsoleKit2 installed. The only version in gentoo packages of consolekit, is version 0.4.6 (the one I have installed). Ok, so the thing is, we now support ConsoleKit 2 which uses the same DBus service name as ConsoleKit 1. CK2 has an features similar to Login1 so both can be supported easily. However, there's no way for us to tell that we're using CK1 not CK2 so we now use Login1/CK2 suspend as soon as CK interface is there no matter if CK1 and CK2. Given we'll drop support for ConsoleKit 1 starting in 5.5 I'm not sure it makes sens to introduce a hack for this now that'll be removed eventually anyway. But thanks for the headsup, there's a bunch of other CK1 specific code there I forgot to remove :P Created attachment 94058 [details]
Use UPower if CK2 is not available
Can you try this patch?
Hi Kay, I applied the patch and now I can suspend/hibernate also with version 5.3.95. This is my first bug report, so let me know if you need some more action from my side (I don't know what I should do now). thanks Thanks, cool. I posted it on review so other developers can have a look and we ensure not to break other hardware. It should be fixed in time for 5.4 final release. Git commit 41d369f7c57b31f13cb120d09b3e9f71119d86f4 by Kai Uwe Broulik. Committed on 17/08/2015 at 08:54. Pushed by broulik into branch 'Plasma/5.4'. Suspend using UPower in case of ConsoleKit 1 REVIEW: 124778 FIXED-IN: 5.4.0 M +6 -2 daemon/backends/upower/powerdevilupowerbackend.cpp M +1 -0 daemon/backends/upower/powerdevilupowerbackend.h http://commits.kde.org/powerdevil/41d369f7c57b31f13cb120d09b3e9f71119d86f4 |