2

I'm aware of this post: How can I suspend/hibernate from command line?

however, the recommended method using dbus doesn't work with Gnome Shell 3.14.0.

What is the now recommended approach for suspending from the command line?

(I use Ubuntu 14.10 beta and the gnome-team ppa)

marked as duplicate by muru, Sylvain Pineau, Eric Carvalho, Eliah Kagan, Radu Rădeanu command-line Nov 1 '14 at 15:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • See this answer in that question: askubuntu.com/a/508164/158442 – muru Oct 13 '14 at 20:12
  • As OP indicates this does not work for him. I personally use sudo pm-suspend. – MrHug Oct 13 '14 at 20:19
  • Software in a team PPA is not part of a release and is not supported as such. – Stephen Michael Kellat Oct 13 '14 at 22:09
  • @StephenMichaelKellat "Questions that you may ask: ....Running third-party applications on Ubuntu." This doesn't guarantee every possible question about such software is considered on-topic, but if you think this question is beyond the scope of Ask Ubuntu, I recommend explaining specifically why, in accordance with existing site policies. (In particular, this might be considered to go against our policy of generally prohibiting questions about problems with alpha and beta versions of Ubuntu, though there's some flexibility this close to the release date.) – Eliah Kagan Oct 15 '14 at 22:56
4

Thanks for the pointer @muru.

The correct command is:

dbus-send --system --print-reply \
  --dest="org.freedesktop.login1" \
  /org/freedesktop/login1 \
  org.freedesktop.login1.Manager.Suspend boolean:true
  • Obv, replace Suspend with Hibernate to hibernate. – tigerjack89 Jun 16 '17 at 11:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.