Active Topics

 


Reply
Thread Tools
iceman600's Avatar
Posts: 324 | Thanked: 65 times | Joined on Jun 2008 @ FL
#1
what is the command for a quick shut down on x term?
im adding a quick shut down option on my personal menu for a quick reboot.... thanks
 
Posts: 425 | Thanked: 132 times | Joined on Mar 2008 @ California
#2
oddly enough it's "shutdown" :P

It requires root though.

and reboot is either "shutdown -r" or "reboot"
__________________
Promises are like babies. Fun to make, but hard to deliver.

Warning: dates on calendar are closer than they appear.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#3
"shutdown -h now" as root

I prefer using "shutdown -r now" to reboot but IMHO, this is the best way to reboot:
Code:
run-standalone.sh dbus-send --system --type=method_call --dest="com.nokia.mce" --print-reply "/com/nokia/mce/request" com.nokia.mce.request.req_reboot
(That command uses the Nokia daemons to handle the reboot and anything written using libosso knows the tablet is about to restart and can do something about it. For example, the built in Notes app saved my unsaved note in a recovery file)

Last edited by qwerty12; 2008-08-06 at 11:38. Reason: quote and run-standalone added so it works as root too
 

The Following 8 Users Say Thank You to qwerty12 For This Useful Post:
iceman600's Avatar
Posts: 324 | Thanked: 65 times | Joined on Jun 2008 @ FL
#4
thank you guys... im still learning about linux. this is kinda new to me... im planing reformating my desktop and instal a gnome instead. thanks again


edit: the shutdown and shutdown -f now is not working at personal menu.
what command will i put at the COMMAND TO EXECUTE box for the qhick shutdown?

edit:i put these command and it just reboot...
rootsh shutdown -r now

Last edited by iceman600; 2008-08-06 at 09:47.
 
Posts: 425 | Thanked: 132 times | Joined on Mar 2008 @ California
#5
It should be "shutdown -h" or "shutdown -r"

also, make sure the "run as root" box is checked
__________________
Promises are like babies. Fun to make, but hard to deliver.

Warning: dates on calendar are closer than they appear.
 

The Following User Says Thank You to josiahg777 For This Useful Post:
iceman600's Avatar
Posts: 324 | Thanked: 65 times | Joined on Jun 2008 @ FL
#6
shutdowm -h or shutdown -r doesnt work for me... there should be the word "now". and when i check run as root it doesnt work. so i uncheck it and works awsome.

so for newbies like me,
the command for personal menu for shutdown is
ROOTSH SHUTDOWN-H NOW

and for reboot it
ROOTSH SHUTDOWN-R NOW
 
Posts: 425 | Thanked: 132 times | Joined on Mar 2008 @ California
#7
Hmmm funny, I've never had to include the "now"

it always worked with or without it... well, I'm glad to see you got it working
__________________
Promises are like babies. Fun to make, but hard to deliver.

Warning: dates on calendar are closer than they appear.
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#8
Originally Posted by qwerty12 View Post
I prefer using "shutdown -r now" to reboot but IMHO, this is the best way to reboot:
Code:
run-standalone.sh dbus-send --system --type=method_call --dest="com.nokia.mce" --print-reply "/com/nokia/mce/request" com.nokia.mce.request.req_reboot
Thanks, useful to know!

The only reference I could find to this is in the SDK headers (/usr/include/mce/dbus-names.h specifically). Is there any other documentation?

IMHO there's no reason why shutdown couldn't also send an appropriate dbus signal (shutdown_ind perhaps?) via one of the init scripts' stop stanza (/etc/init.d/mce may be a good choice). Care to open a bug?
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#9
Originally Posted by lma View Post
/etc/init.d/mce may be a good choice
Or maybe not, at that point both Xomap and dbus have gone away. /etc/init.d/zzinitend looks a bit better.
 
Posts: 191 | Thanked: 29 times | Joined on Sep 2007 @ Ottawa
#10
Call me lazy, but I just use "init 6" (as root) to reboot. It is less typing.

Craig...
__________________
N800, Think Outside Kbd, 8GB SDHC Card (OCZ, ext2), and 8GB SD Card (Patriot formatted as VFAT)
Zaurus SL-6000, IR Keyboard, 1GB SD Card
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:18.