Bug 331403 - No suspend/hibernate actions with systemd >= 209
Summary: No suspend/hibernate actions with systemd >= 209
Status: RESOLVED FIXED
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: powermanagement (show other bugs)
Version: 4.12.2
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-22 08:33 UTC by Andrea Scarpino
Modified: 2014-02-26 11:29 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11.7


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Scarpino 2014-02-22 08:33:34 UTC
Hi,
on Arch, we just upgraded to systemd 209.
They have changed something in the API as KDE does not provide suspend/hibernate actions anymore since the update.

Reproducible: Always

Steps to Reproduce:
1. Upgrade systemd to 209
2. Reboot
3. No suspend/hibernate actions
Actual Results:  
No suspend/hibernate actions

Expected Results:  
suspend/hibernate actions

systemd 209
Comment 1 Roman 2014-02-24 05:47:51 UTC
WORKAROUND: Downgrade to latest systemd-208-x and systemd-sysvcompat-208-x
Comment 2 Marcin 2014-02-24 16:31:17 UTC
*** This bug has been confirmed by popular vote. ***
Comment 3 Andrea Scarpino 2014-02-25 17:14:14 UTC
More info:
kded says "No appropriate systemd version or upstart version found".

I see powerdevil uses dbus to fetch systemd version; for some reason this is not working from my session:
$ dbus-send --print-reply --system --dest=org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager.Version
Error org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.93" (uid=1000 pid=2224 comm="dbus-send --print-reply --system --dest=org.freede") interface="org.freedesktop.systemd1.Manager" member="Version" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/sbin/init ")
Comment 4 Jason A. Donenfeld 2014-02-25 22:44:44 UTC
Here's the change that broke things.

zx2c4@thinkpad ~ $ sudo qdbus --system org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager.Version 
systemd 208

zx2c4@thinkpad ~ $ sudo qdbus --system org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager.Version 
210
Comment 7 Lukáš Tinkl 2014-02-26 09:35:09 UTC
The version string check is there mainly for checking whether the "resuming" signal is present and then for Ubuntu which doesn't ship all of systemd....
Comment 8 Lukáš Tinkl 2014-02-26 11:29:02 UTC
Fixed in next version