Script To Suspend Ubuntu

Posted by Weston Ganger on July 16, 2014

If you ever needed a script to suspend your PC such as for Transmission after your torrent completes or to suspend your computer at a certain time of night.

It is gnome-friendly too. Well here it is:

dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend

Be sure to make the file executable, you can do this by:

chmod +x yourScript

Posted in Linux and Tagged with linux ubuntu gnome scripts 

Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts