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)

KillaSkill 2008-12-19 20:50

N810 restart program.
 
Well I got the N95 8GB and a python program to restart it rather quickly, no opening animation or sounds and just straight power down and restart to the active standby home screen. I was wondering if anyone had been working on or thought about making a restart app for OS2008, saving that whole 3 seconds of holding down the power button then having to hold it once more to power back on, good for restarts after app installs.

Not quite sure if this thread should be here, but if it needs to be moved, my apologies.

Thanks in advance for any help guys.

dick-richardson 2008-12-19 21:03

Re: N810 restart program.
 
you can edit /etc/systemui/systemui.xml and uncomment the relevant portion

Nelson L. Squeeko 2008-12-19 21:05

Re: N810 restart program.
 
Download the Advanced Power applet. Amongst other things, it has an option to reboot the device. It takes 3 taps and then a confirmation tap.

KillaSkill 2008-12-19 21:06

Re: N810 restart program.
 
Where is the install, or what catalog is it in? I only have the basic catalogs it came with.

Nelson L. Squeeko 2008-12-19 21:10

Re: N810 restart program.
 
http://www.internettablettalk.com/fo...ight=pybattery

Here's the forum link for all the info. It was originally named pybattery, so the search option may not yield the correct results

KillaSkill 2008-12-19 21:11

Re: N810 restart program.
 
Great, thanks a ton. I did try a search and to no avail. Thanks again.

FRZ 2008-12-19 21:21

Re: N810 restart program.
 
Quote:

Originally Posted by dick-richardson (Post 250963)
you can edit /etc/systemui/systemui.xml and uncomment the relevant portion

sudo gainroot

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

KillaSkill 2008-12-19 21:21

Re: N810 restart program.
 
Another little snag while installing. I need Python2.5-dbus, gnome, hildondesktop and hildon-desktop-python-loader. Which package can I get these in or find them seperately.

Nelson L. Squeeko 2008-12-19 21:37

Re: N810 restart program.
 
Quote:

Originally Posted by KillaSkill (Post 250975)
Another little snag while installing. I need Python2.5-dbus, gnome, hildondesktop and hildon-desktop-python-loader. Which package can I get these in or find them seperately.

Umm, that I'm not really sure of. I must have had all those installed. I didn't install them myself, they likely came packaged with some other programs I downloaded.

KillaSkill 2008-12-19 21:39

Re: N810 restart program.
 
Thats the thing. I was able to get python2.5-gnome in a package.. can't find the others right now. :/

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