Summary: | systemctl hybrid-sleep/hibernate fails | ||
---|---|---|---|
Product: | systemd | Reporter: | Marcos Mello <marcosfrm> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED NOTABUG | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Marcos Mello
2014-12-29 15:10:39 UTC
Man page (systemd-sleep) does not mention what should happen if requested suspend type is not available (no swap, etc). Now I am not sure if this is a bug or not. How can I query logind's CanHybridSleep/CanHibernate from the command line? It should fail, I guess. A better error message should be generated though.
> How can I query logind's CanHybridSleep/CanHibernate from the
> command line?
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.
Indeed, it shows 'na' for both CanHibernate and CanHybridSleep. I made a small cleanup in http://cgit.freedesktop.org/systemd/systemd/commit/?id=a39b4bdd10. systemctl hibernate/hybrid-sleep will now immediately fail with: Failed to execute operation: Sleep verb not supported But I think everything is working as expected, and already was, apart from a sligthly messier message, so I'll close this bug. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.