View Single Post
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#3
Originally Posted by biggzy View Post
hi, how did you add 'reboot' to power button? i found a tutorial on my-maemo but i couldnt follow the guide, it was using MC, is this the way you did it? thanx



WARNING: CHANGING THIS FILE OTHER THAN WHAT I ADVISE MAY BRICK YOUR DEVICE, I AM IN NO WAY RESPONSIBLE IF U BRICK UR DEVICE!!



How to enable Reboot button?
plus more..

in power button settings!




When you press the Power button, a menu is shown containing options to e.g. Switch off or lock the device. And what if you just want to reboot it? Sure, you can use the "Switch off" function and then just press the Power button again to turn the N900 back on. But it can be made simpler and quicker as you can add a separate "Reboot" button to the menu, which will automatically reboot the device without you having to do anything.

All you need to do is to edit one config file and "uncomment" its part responsible for showing the button, disabled by default.

In order to do this, you will to:

* Download and install rootsh from the Extras repository, which will give you root access in the X-Terminal
* Download and install Midnight Commander, the well known file manager which also contains a convenient text editor.



Now the actual modification:

Launch X-Terminal
* type sudo gainroot to enable root access
* type mc to launch Midnight Commander
* in the Midnight Commander, using the keyboard arrows, browse to the /ect/systemui/ folder and select the systemui.xml file
* make a copy of that file, just in case that you do something wrong, so that you can simply restore its original version anytime
* tap the 4 Edit button (at the bottom) to open the text editor
* at the bottom of the file you will notice that part of it (consisting of three ... entries) is disabled within the "comment" marks (starting ).
* move the "comment" marks mentioned above "<!--" (e.g. by deleting and re-typing them in other place) so that the two remaining entries ("Soft poweroff" and "Top in XTerm") are still within them but the "Reboot" entry gets outside of them
* tap 10 Quit button at the bottom of the editor and confirm in the requester that you want to save the file (if you don't see the 10 Quit button you may need to change the X-Terminal font size to 10)
* exit Midnight Commander, close X-Terminal and reboot the device
* after the N900 reboots, you should see the new "Reboot" option in the Menu.


When using the X-Terminal with root access enabled, be EXTREMELY CAUTIOUS! Root access enables you to modify (and thus also DAMAGE) all system files, which can even result in BRICKING the device. If you don't know what you are doing, better don't do it.

Last edited by F2thaK; 2010-01-08 at 07:52.
 

The Following 22 Users Say Thank You to F2thaK For This Useful Post: