[libvirt] [libvirt-users] Please remove pm-utils dep from libvirt-clients
Daniel P. Berrange
berrange at redhat.com
Mon Aug 5 13:14:54 UTC 2013
On Mon, Aug 05, 2013 at 03:07:15PM +0200, Michal Privoznik wrote:
> On 05.08.2013 14:46, Richard Hughes wrote:
> > On 5 August 2013 12:15, Daniel P. Berrange <berrange at redhat.com> wrote:
> >> What is the replacement ? We need to be able to query whether
> >> each of suspend, hibernate, or suspend-hybrid are supported on
> >> a host, and then report that upto the mgmt app using libvirt.
> > I think everything ported to the dbus methods like
> > org.freedesktop.login1.Manager.CanSuspend(),
> > org.freedesktop.login1.Manager.CanHibernate() etc. if you need to use
> > shell you can use gdbus -- yell if you need a more concrete example.
> > Thanks.
> > Richard
> I'd rather see libvirt dependent on pm-utils than dbus. Moreover, the
> methods paths are not unified AFAIK. For instance, I'm using KDE and on
> my system it's:
> Paths you've provided don't exist at all on my system.
Seem that the org.freedesktop.login1 APIs are provided by systemd.
Since we need to work on non-systemd distros too,at the very least
we'll have to keep code to fallback to using pm-utils on those
The org.freedesktop.UPower APIs seem to be provided by the UPower
project, which was a fork of DeviceKit-Power, which in turn was
Is there any benefit to using org.freedesktop.login1 for PM
checks, over using org.freedesktop.UPower, or vica-verca ?
Or do we need to support both dbus servics, and pm-utils.
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list