<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - systemctl hybrid-sleep/hibernate fails"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=87832#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - systemctl hybrid-sleep/hibernate fails"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=87832">bug 87832</a>
              from <span class="vcard"><a class="email" href="mailto:zbyszek@in.waw.pl" title="Zbigniew Jedrzejewski-Szmek <zbyszek@in.waw.pl>"> <span class="fn">Zbigniew Jedrzejewski-Szmek</span></a>
</span></b>
        <pre>It should fail, I guess. A better error message should be generated though.

<span class="quote">> How can I query logind's CanHybridSleep/CanHibernate from the
> command line?</span >

gdbus call --system --dest org.freedesktop.login1 --object-path
/org/freedesktop/login1 --method org.freedesktop.login1.Manager.CanHibernate

If I disable swap, it returns 'na' properly.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>