[Bug 1196752] Re: Suspend only works once when using upower with logind

Joseph Yasi joe.yasi at gmail.com
Tue Jul 23 03:54:13 UTC 2013


So Powerdevil in KDE is supposed to call systemd-logind now instead of UPower if it finds it.  However, it is checking for the systemd version with a call to org.freedesktop.systemd1.Manager.VErsion and not geting a valid response. For some reason, that method doesn't exist on my system.
gdbus introspect --system --dest org.freedesktop.systemd1 --object-path /org/freedesktop/systemd1
node /org/freedesktop/systemd1 {
  interface org.freedesktop.DBus.Properties {
    methods:
      Get(in  s interface_name,
          in  s property_name,
          out v value);
      GetAll(in  s interface_name,
             out a{sv} properties);
      Set(in  s interface_name,
          in  s property_name,
          in  v value);
    signals:
      PropertiesChanged(s interface_name,
                        a{sv} changed_properties,
                        as invalidated_properties);
    properties:
  };
  interface org.freedesktop.DBus.Introspectable {
    methods:
      Introspect(out s xml_data);
    signals:
    properties:
  };
  interface org.freedesktop.DBus.Peer {
    methods:
      Ping();
      GetMachineId(out s machine_uuid);
    signals:
    properties:
  };
  interface org.freedesktop.systemd1.Manager {
    methods:
      GetUnitFileState(in  s file,
                       out s state);
      DisableUnitFiles(in  as files,
                       in  b runtime,
                       out a(sss) changes);
      EnableUnitFiles(in  as files,
                      in  b runtime,
                      in  b force,
                      out b carries_install_info,
                      out a(sss) changes);
      Reload();
      StartUnit(in  s name,
                in  s mode,
                out o job);
      StopUnit(in  s name,
               in  s mode,
               out o job);
      Reload();
    signals:
    properties:
      readonly s Virtualization = '';
  };
};

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1196752

Title:
  Suspend only works once when using upower with logind

Status in “systemd” package in Ubuntu:
  Triaged

Bug description:
  On saucy with upower 0.9.20-1ubuntu2, suspending via UPower (or the KDE suspend menu) only works once:
  dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend

  and resuming works the first time. However, calling it again after resume returns:
  "Sleep has already been requested and is pending"

  Sleeping directly via logind works every time:
  dbus-send --print-reply --system --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Suspend boolean:true

  Returning FALSE for the LOGIND_AVAILABLE() case in gboolean
  up_backend_emits_resuming (UpBackend *backend) in src/linux/up-
  backend.c allows suspending multiple times via UPower (or the KDE
  suspend menu). UPower is somehow not getting the resume signal from
  logind.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1196752/+subscriptions




More information about the foundations-bugs mailing list