maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Reboot in power menu (https://talk.maemo.org/showthread.php?t=86304)

enne30 2012-08-26 17:31

Re: Reboot in power menu
 
1 Attachment(s)
Quote:

Originally Posted by sup (Post 1255938)
/etc/systemui/systemui.xml - change the priority, I think

Well, actually I meant the menu in the attached image... Maybe I'm wrong with the name :o

sup 2012-08-26 17:41

Re: Reboot in power menu
 
No idea. Try googlin it:-).

em28 2012-08-27 08:49

Re: Reboot in power menu
 
Hi there.
although I get root I cant go to /etc/systemui/.
I get a "Permission denied" error. :confused:

sifo 2012-08-27 09:03

Re: Reboot in power menu
 
try this...
Code:

root
leafpad /etc/systemui/systemui.xml

you need leafpad installed and a brain to know what you are doing :p

./sifo

em28 2012-08-27 10:37

Re: Reboot in power menu
 
Thanx.

Got it working after some wrong coding. :rolleyes:

sup 2012-11-22 13:56

Re: Reboot in power menu
 
So I found a way to do this thanks to this thread.

One needs to just put the following into /etc/system/systemui.xml :
Code:

  <menuitem priority="750" name="Reboot">
    <icon>general_refresh</icon>
      <callback service="com.nokia.xterm"
        path="/com/nokia/xterm"
        interface="com.nokia.xterm" method="run_command"
        bus="session" autostart="true">
      <argument type="string">/usr/bin/reboot_manual</argument>
    </callback>
  </menuitem>

And create (executable!) file /usr/bin/reboot_manual with the following content:
Code:

#!/bin/sh
# gain superuser rights.
if [ `id -u` != 0 ] ; then
    exec sudo gainroot <<EOF
exec sh $0 $*
EOF
exit $?
fi 
# put your code below
reboot

Reboot and the button should work and reboot nicely.

sixwheeledbeast 2012-11-22 18:04

Re: Reboot in power menu
 
Quote:

Originally Posted by sup (Post 1297240)
So I found a way to do this thanks to this thread.
Reboot and the button should work and reboot nicely.

Please note anybody new to this, playing about with systemui.xml can make your device unbootable if you mess it up.

peterleinchen 2012-11-22 22:57

Re: Reboot in power menu
 
Yep, just cleaned up my systemui.xml.
And you may check with
Code:

killall systemui
and waiting a few seconds, if everything is OK.

Nevertheless sixwheeledbeast's warning is valid (as in my case I am very cautious while editing and there was no mistake). If systemui should not pop up or display error or whatever, you should have possibility to re-/edit again (do NOT reboot) ...

DfLo1913 2012-11-24 20:37

Re: Reboot in power menu
 
Any chance of a download on Ham? Thanks

sixwheeledbeast 2012-11-24 20:48

Re: Reboot in power menu
 
Quote:

Originally Posted by DfLo1913 (Post 1297963)
Any chance of a download on Ham? Thanks

Eh??
Download what?

Do you mean PowEdit


All times are GMT. The time now is 00:24.

vBulletin® Version 3.8.8