Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-08-2012, 10:53 PM   #1
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Rep: Reputation: 68
Shutdown and restart using UPower

Is it possible to reboot and shutdown your computer using UPower? I have these entries for hibernate and suspend in Fluxbox
      [exec]   (suspend) {dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend}
      [exec]   (hibernate) {dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Hibernate}
I'd like to find similar commands to stop the PC because I'm currently using ConsoleKit and I don't think it's elegant to mix the above with the following
      [exec]   (reboot) {dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart}
      [exec]   (shutdown) {dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit" /org/feedesktop/ConsoleKit/Manager org.freedesktop.Consolekit.Manager.Stop}
I have googled a bit and have also checked on Arch Wiki, but I was unable to find the appropriate command to send.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
upower: cd unmount on eject ToK Linux - Software 1 07-17-2011 01:19 PM
Unable to shutdown or restart the os renjitg Linux - Newbie 8 03-07-2006 09:35 PM
No shutdown or restart option! thomasfingram Linux - Newbie 13 07-27-2005 04:35 PM
Shutdown.....but it restart max_232 Linux - Laptop and Netbook 2 07-08-2005 04:32 AM
Shutdown, restart menu gone Tec1 Linux - Newbie 3 08-12-2003 02:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration