Page 6 of 7 FirstFirst ... 4567 LastLast
Results 51 to 60 of 67

Thread: [SOLVED] HowTo sleep / standby / hibernate / suspend from command line

  1. #51
    Join Date
    Aug 2008
    Beans
    Hidden!

    Re: [SOLVED] HowTo sleep / standby / hibernate / suspend from command line

    Since it's more than 40 minutes since you posted, no

    But seriously - a look at man at suggests the command atrm 1 if 1 is the job number (you can check with atq).

    You'll need sudo if your user does not have rights to suspend (see a few posts back).

  2. #52
    Join Date
    Sep 2010
    Location
    Ottawa - Ontario
    Beans
    11
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: [SOLVED] HowTo sleep / standby / hibernate / suspend from command line

    Thanks, I was looking for something like this. Hopefully, it still works with natty 11.04!

    Edit: NVM, reading the log files I found my hard drive disk does not communicate well with natty. It does not power down when triggered in linux . Since I am loading linux from a USB, I just removed the internal HD and everything works fine now.
    Last edited by haudace; June 1st, 2011 at 08:07 PM.

  3. #53
    Join Date
    Dec 2006
    Beans
    Hidden!

    Re: [SOLVED] HowTo sleep / standby / hibernate / suspend from command line

    Sadly none of these solutions work with 11.10. PMI produces "Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files"

  4. #54
    Join Date
    Mar 2005
    Beans
    9

    Re: [SOLVED] HowTo sleep / standby / hibernate / suspend from command line

    As someone mentioned above, this seems to work in Oneiric:

    Code:
    dbus-send --system --print-reply --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend
    Last edited by landtuna; October 27th, 2011 at 04:55 PM. Reason: --print-reply makes it work without sudo

  5. #55
    Join Date
    Sep 2011
    Beans
    8

    Re: [SOLVED] HowTo sleep / standby / hibernate / suspend from command line

    Quote Originally Posted by user2037 View Post
    Sadly none of these solutions work with 11.10. PMI produces "Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files"
    Seconded. Also pm-utils commands are overriden if you use Jupiter at the same time.

  6. #56
    Join Date
    Oct 2010
    Beans
    4

    Re: [SOLVED] HowTo sleep / standby / hibernate / suspend from command line

    Guys you need to install the package "hal" . In short :
    1 Get powermanager-interface
    2 Get hal
    3 Type "pmi action suspend"

    That worked for me on 11.10 .

  7. #57
    Join Date
    Jan 2010
    Beans
    34

    Re: [SOLVED] HowTo sleep / standby / hibernate / suspend from command line

    Quote Originally Posted by marcw View Post
    https://wiki.ubuntu.com/DebuggingGNOMEPowerManager
    Code:
     dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend
    This was successfull on LUbuntu 12.04 Precise with OpenBox session. Without sudo and root privileges. LUbuntu is derivative with LXDE instead of heavy Unity, because this is the only declared distinction( https://wiki.ubuntu.com/Lubuntu ), the trick must be workable on Ubuntu and other official derivatives.

    Usually in LUbuntu you also may use lxsession-logout, but it is a GUI solution (can not be used in autonomous script or else), and you can not use lxsession-logout on LUbuntu's Openbox session without some working on additional lxsession launch. But "dbus-send..." will do the job out of the box.

    As posted at
    http://askubuntu.com/questions/93542...pend-hibernate
    you may find other targets:

    • org.freedesktop.consolekit.system.stop
    • org.freedesktop.consolekit.system.restart
    • org.freedesktop.upower.suspend
    • org.freedesktop.upower.hibernate


    You may use:
    for reboot
    Code:
    dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
    for shutdown
    Code:
    dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
    for hibernate
    Code:
    dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Hibernate
    Suspend is described above:
    Code:
    dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend
    This also do not need system modifications or root access.

    P.S. 2All: Hey! Ordinary user do not have sudo access or root privileges!!! Editing of /etc/sudoers may lead to possible breaks in security system (remember possible vulnerability of any software). Using of "sudo suspend-command" is an ugly workaround instead of real solution.
    Last edited by Artif; May 2nd, 2012 at 10:26 AM.

  8. #58
    Rebelli0us is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Feb 2008
    Beans
    722

    Re: [SOLVED] HowTo sleep / standby / hibernate / suspend from command line

    How do you send a SUSPEND command to another Linux machine on your network?

    Something equivalent to Microsoft/Sysinternals PsTools psshutdown.exe utility.

  9. #59
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,661

    Re: [SOLVED] HowTo sleep / standby / hibernate / suspend from command line

    would be easy if you just ssh'd into it

  10. #60
    Rebelli0us is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Feb 2008
    Beans
    722

    Re: [SOLVED] HowTo sleep / standby / hibernate / suspend from command line

    Quote Originally Posted by HiImTye View Post
    would be easy if you just ssh'd into it
    I tried

    Code:
    ssh user-name@192.168.1.102 sudo pm-suspend
    but it didn't work. Any ideas how to suspend machines on the network?

Page 6 of 7 FirstFirst ... 4567 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •