Skip to content

Instantly share code, notes, and snippets.

@uplus
Created January 22, 2016 13:31
Show Gist options
  • Save uplus/8b049257900ad0bf1ab0 to your computer and use it in GitHub Desktop.
Save uplus/8b049257900ad0bf1ab0 to your computer and use it in GitHub Desktop.
Ubuntu コマンドでサスペンド&ロックする ref: http://qiita.com/uplus_e10/items/203fb3297c784c669c9a
dbus-send --system --print-reply=literal --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Suspend boolean:true
dbus-send --system --print-reply=literal --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.LockSession string:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment