sin*_*eso 2 gnome command-line suspend
我知道这篇文章:How can I suspend/hibernate from command line?
但是,使用 dbus 的推荐方法不适用于 Gnome Shell 3.14.0。
现在推荐的从命令行挂起的方法是什么?
(我使用 Ubuntu 14.10 beta 和 gnome-team ppa)
感谢@muru 的指点。
正确的命令是:
dbus-send --system --print-reply \
--dest="org.freedesktop.login1" \
/org/freedesktop/login1 \
org.freedesktop.login1.Manager.Suspend boolean:true
Run Code Online (Sandbox Code Playgroud)