Hello all,

replying to both bugs at the same time, as they are more or less the
same.

Török Edwin [2014-10-21 20:49 +0300]:
> systemd-shim doesn't provide the Version property from 
> org.freedesktop.systemd1.Manager.
> According to the documentation[0] applications shouldn't parse this property, 
> but powerdevil from KDE does
> and hides the Sleep/Hibernate buttons [1].

I'm not avert to adding the Version property to systemd-shim, but
conceptually this doesn't help at all. Merely checking the version
number does not tell you (i. e. powerdevil) in any way whether
suspend/hibernate is possible. What powerdevil should do is to not
query for a particular init system, but rather ask logind:

| $ gdbus call --system -d org.freedesktop.login1 -o /org/freedesktop/login1 -m 
org.freedesktop.login1.Manager.CanSuspend
| ('yes',)
| $ gdbus call --system -d org.freedesktop.login1 -o /org/freedesktop/login1 -m 
org.freedesktop.login1.Manager.CanHibernate
| ('na',)

I. e. on my system suspend works, but hibernate is not available (I
have no swap partition. logind works under any init system, and
hibernation isn't available on some systems regardless of the init
system.

So I suggest we keep #747180 against powerdevil to fix the
implementation of its CanSuspend/Hibernate, and I'll just add the
Version property to -shim (it can't hurt really).

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to