maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   N810 restart program. (https://talk.maemo.org/showthread.php?t=25691)

dick-richardson 2008-12-20 00:42

Re: N810 restart program.
 
Quote:

Originally Posted by FRZ (Post 250974)
sudo gainroot

/etc/systemui/systemui.xml
/bin/sh: /etc/systemui/systemui.xml: Permission denied

that command tries to execute /etc/systemui/systemui.xml...NOT edit it

vi /etc/systemui/systemui.xml

then go to the <!-- line and press 'dd' and go down to --> and do the same. When you're done, press ':wq!' and press enter

fragos 2008-12-20 20:53

Re: N810 restart program.
 
After installing "sudser" from Maemo Extras I'm able to reboot from the command line, "sudo reboot". No password is requested so it can easily be used in a shell script. Strangely "sudo shutdown now" also does reboot.

qwerty12 2008-12-20 20:57

Re: N810 restart program.
 
My favourite way of doing it from the command line is
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
No root needed but a bit of a handful to remember...

zonki 2008-12-21 12:21

Re: N810 restart program.
 
I use this with "Personal Menu" installed:
sh -c 'echo reboot | sudo gainroot'
Only two taps to reboot.
Klaus


All times are GMT. The time now is 15:04.

vBulletin® Version 3.8.8