LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 63
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
Code:
      [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
Code:
      [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.
 
  


Reply


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 02:19 PM
Unable to shutdown or restart the os renjitg Linux - Newbie 8 03-07-2006 10:35 PM
No shutdown or restart option! thomasfingram Linux - Newbie 13 07-27-2005 05:35 PM
Shutdown.....but it restart max_232 Linux - Laptop and Netbook 2 07-08-2005 05:32 AM
Shutdown, restart menu gone Tec1 Linux - Newbie 3 08-12-2003 03:59 PM


All times are GMT -5. The time now is 06:21 AM.

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