maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   How to add a reboot button (https://talk.maemo.org/showthread.php?t=83691)

Sourav.dubey 2012-04-19 13:55

Re: How to add a reboot button by-sifo
 
Quote:

Originally Posted by sifo (Post 1194350)
All right i tried to help new users but no problem im sorry i'll remove this just forgive all my mistakes over tmo

you are always welcome in TMO

you should solve new user problem in the existing thread
No need to create new threads

anyway your thinking behind all this is good

J4ZZ 2012-04-19 15:44

Re: How to add a reboot button by-sifo
 
Quote:

Originally Posted by nicolai (Post 1194211)
Can you explain to me why I need an extra dbus-service for this.
Why not just uncomment the already existing reboot entry
in systemui.xml?

Like the Note said:
some of you may notice that a reboot entry is already defined in systemui.xml. However, osso-powerup-shutdown performs a shutdown which kill all apps suddenly. Rebooting with sudo reboot will gently shutdown all software and sync your filesystem, which is safer. Lets just say that there was probably a reason that the default entry was commented out.

BTW: The source is here * The Truly Epic Maemo 5 MODs Thread *
Part 1
Part 2
both posted by good old qwerty12

Or the summary by MohammadAG

Code:

sudo gainroot
echo "user ALL = NOPASSWD: /sbin/reboot" > /etc/sudoers.d/reboot.sudoers
update-sudoers
nano /usr/share/dbus-1/services/reboot.service
# Paste this into it:
[D-BUS Service]
Name=com.misc.reboot
Exec=/usr/bin/sudo reboot
# CTRL + O to save, CTRL+X to quit nano
nano /etc/systemui/systemui.xml
# Paste this into it:
<menuitem priority="750" name="Reboot">
<icon>general_refresh</icon>
<callback service="com.misc.reboot" path="/com/misc/reboot" interface="com.misc.reboot" method="reboot" bus="session" autostart="true">
<argument type="boolean">true</argument>
</callback>
</menuitem>
# CTRL + O to save, CTRL+X to quit nano
killall systemui

Cheers,

J4ZZ

Mohammed Muid 2012-04-19 15:44

Re: How to add a reboot button by-sifo
 
doesnot reboot. i successfully added the reboot button by editing systemui. now i have two reboot buttons. one works and one doesnt (followed sifo's guide) how to remove it?

Dousan 2012-04-19 15:49

Re: How to add a reboot button by-sifo
 
Quote:

Originally Posted by Mohammed Muid (Post 1194432)
doesnot reboot. i successfully added the reboot button by editing systemui. now i have two reboot buttons. one works and one doesnt (followed sifo's guide) how to remove it?

Ask sifo :p ;)

Regards Dousan...

sifo 2012-04-19 15:51

Re: How to add a reboot button by-sifo
 
what mohammed you mean mine the one on the guide that i posted (took from the nokia n900 blog ) not working well it works with me!

Dousan 2012-04-19 16:06

Re: How to add a reboot button by-sifo
 
Quote:

Originally Posted by sifo (Post 1194443)
what mohammed you mean mine the one on the guide that i posted (took from the nokia n900 blog ) not working well it works with me!

Either way he's just asking how to remove it. Nothing else mate :)

Regards Dousan...

Mohammed Muid 2012-04-19 16:14

Re: How to add a reboot button by-sifo
 
how to remove it? help me to remove it. i dn care were u took it from mate. cheers

sifo 2012-04-19 17:12

Re: How to add a reboot button by-sifo
 
im not sure but try removing the files you created and the texts you add then redo the steps that might work somebody please correct me i im wrong !

Mohammed Muid 2012-04-19 17:17

Re: How to add a reboot button by-sifo
 
you removed the process of doing it. by reading that i could have removed the lines. u need to paste the tutorial again i gess

Sourav.dubey 2012-04-19 17:20

Re: How to add a reboot button by-sifo
 
Use the following link and undo every step
nokia-n900.com/how-to-adding-a-reboot-button-to-your-powerkey-menu/

you can also use filebox to do so


All times are GMT. The time now is 16:17.

vBulletin® Version 3.8.8