maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   command for quick shut down (https://talk.maemo.org/showthread.php?t=22598)

tehforum 2008-08-08 00:51

Re: command for quick shut down
 
How would you save that command into a handy file on which you double click and it shutdown?

dfinch 2008-08-08 01:43

Re: command for quick shut down
 
I use

sh -c 'echo reboot | sudo gainroot'

as a command in the osso-statusbar app command list. It works without complaint.
This was provided by someone else ~ so it's not original work.

nilchak 2008-08-08 01:47

Re: command for quick shut down
 
With becomeroot installed on my N810 , the command
" shutdown -h now " didnt work in Personal menu - with or withour "run as root" checked.

So I uninstalled becomeroot and instead installed the newer roosh package.

Now running the command
" rootsh shutdown -h now " works fine in Personal menu 0 no need to check "run as root" option either.

Thanks for the tips.

gemniii42 2008-09-07 02:33

Re: command for quick shut down
 
Quote:

Originally Posted by qwerty12 (Post 210717)
"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)

EXCELLENT!!
I slammed that into my PM and it worked as advertised, clean shutdown and reboot.
Tricks like this need to be accumulated.


All times are GMT. The time now is 14:25.

vBulletin® Version 3.8.8