Reply
Thread Tools
Posts: 436 | Thanked: 298 times | Joined on Jan 2010 @ England
#1
Hi All,
This post is so that other noobs like me can view step by step instructions on how to do this!

I have created this post as I have found a need to reboot my phone after installing apps but have had to turn it off then hold the power key button to turn back on so a reboot button would be useful for me.
There are instructions on how to do this pretty quickly but it took me about 2 hours to work out as I have zero knowledge of linux & xterminal & root etc etc
I have wanted to do this for ages but as a noob whenever i read the two links i have pasted in below I would give up after a few minutes as it seemed pretty difficult.
I ended up using information from 2 places
http://wiki.maemo.org/Customizing_maemo_for_power_users (Contents of power key menu part)
and
http://talk.maemo.org/showthread.php?t=39565&page=2 (pwngu!n's post)
and from these two sources i was able to successfully add a reboot button to the powerkey menu!


To help other noobs add this button I have provided a noob's instructions for the noobs.
Advanced users please check I have made no mistakes
To all that do this as you probably know be aware messing with stuff in xterminal/gainroot etc etc can f*&k up your N900

Instructions:

1) Ensure you have 'Extra's' repo enabled (if you dont you can enable extra's repo by following the instructions here --> http://theunlockr.com/2009/11/22/how...ur-nokia-n900/ )

2) In app manager find and install 'Rootsh'

3) Run X terminal (you will find it in your applications)

4) type sudo gainroot then press the enter button on your keyboard

5) type cd /etc/systemui then press the enter button on your keyboard

6) Create a backup copy of the systemui file by typing cp systemui.xml systemui.xml.bak (if things mess up i dont know how to use this backup to repair things)

7) type vi systemui.xml then press the enter button on your keyboard (this takes you into an edit mode)

8) Now use the arrow keys on your keyboard to scroll down to the 10th paragraph of text that starts with
<!--
<menuitem priority="20" name="Reboot">

this is the paragraph that you will need to edit a little.

9) press the 'i' button on your keyboard (allows you to begin editing)

10) see at the start of the paragraph the text <!-- you need to delete this by using the arrow keys on your keyboard to navigate to the position so you can press the backspace button on your keyboard to delete the text <!--

11) Now go down the paragraph 4 lines, create a new line by navigating to the end of the line of text text saying </menuitem> and pressing the enter button on your keyboard

12) In that new blank line you have just created type in <!-- (to get the < symbol you will need to hold down the blue shift key then press ctrl key which will bring up a virtual keyboard with the < symbol on it for you to select)

13) now your first 6 lines should look exactly like this:
<menuitem priority="20" name="Reboot">
<return>6</return>
<po>osso-powerup-shutdown</po>
</menuitem>
<!--
<menuitem priority="10" name="Soft poweroff">

(basically what you have done is moved the text <!-- down 4 lines)

14) Now press the Esc button in X Terminal (its on the touchscreen, at the bottom 3rd one across)

15) Now type :wq then press the enter button on your keyboard (this saves the changes you have just made)

16) Now close X Terminal by clicking the X on the touchscreen top right hand corner.

16.5) open X Terminal and type killall systemui then press the enter button on your keyboard (info supplied by tuminoid)
or
17) Turn N900 off

18) Turn N900 on

19) You should now have the reboot button when you press the hard power key once.

Now i would appreciate it if an experienced person checks through these instructions and sticks a seal of approval that what I have wrote is correct before any noobs attempt to use these instructions, If there need to be any changes made to this please PM me and I will edit the post and make the necessary changes.
Thanks
__________________
SEE THE WIKI.MAEMO ALARMED PAGE AND FIND NEW, COOL COMMANDS AND IF YOU HAVE ANY COOL/AWESOME/USEFUL COMMANDS YOURSELF PLEASE ADD THEM. http://wiki.maemo.org/ALARMED_Commands_List
If you dont have a wiki.maemo account and cant be bothered to create one you can inbox me your commands and I will add them for you.

Last edited by fraaaaanka; 2010-04-04 at 18:51.
 

The Following 107 Users Say Thank You to fraaaaanka For This Useful Post:
316comp, abhirajsoni, akorvemaker, alphalux, amin007110, amk332, AnasSyria, andreas.k, arjunkumar87, arvind, b-man, b.IT, bakuur, Bec, Boemien, bret hart, CasTTeLLo, ceevee, clasificado, cuppsy, DaReaper, datjomp, Dexter1759, Dousan, drangina, dread123, drsilviuro, ed00, EvoXLover, flydeep, fuel__2001, funkmunk, gryedouge, Hannu, hschmitt, Ikari, inkirby, ivyking, JamesBond@ge, Jayboy5, Joe Cool, jsbigs, K1ll3rm4n, Kaamp, kent_autistic, kolos, kornolio, kulas, LondonBenji, MetalSer, mikki-kun, mirciox, mrbiggzz79, mrsellout, musculus, Natan_xy, netrum, NokTokDaddy, noobmonkey, olighak, orcocan, ossipena, paddyc1988, pelago, philbelfast, pichlo, prasunvelayudhan, qwerty12, rariss, retsaw, rfa, rkstarnerd, RobbieThe1st, rooster13, rrdbala, s15mos, saadgadit, Scharel, scribbles, sifo, Skaven2k2, skykooler, snubmoggy, Sourav.dubey, spark666, Stealth131, stew-b, Strutten, stryker9, sudarsan_avs, Swimm12984, Swirnoff, Switch_, TheKracken, thommy, tuminoid, TylerD, udaychaitanya16, uvatbc, vkv.raju, WilliePre, wolfpac72, xperto, YoDude
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#2
jesus, not wrong about the 'noob' part
 
Posts: 215 | Thanked: 29 times | Joined on Feb 2010
#3
failed at the 1st step cause your link for extras doesnt work.........
 
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#4
Although some people might disagree, for noob-friendly instructions I would recommend people to install leafpad and do "leafpad systemui.xml" at step 7, as that is easier to use.
 

The Following 6 Users Say Thank You to pelago For This Useful Post:
Posts: 436 | Thanked: 298 times | Joined on Jan 2010 @ England
#5
Originally Posted by f2thak View Post
jesus, not wrong about the 'noob' part
A load of this stuff comes naturally for you experienced guys & girls but for me it was a struggle to acheive the reboot button.
Thats why i spent the time to create this very basic post to help others as l have had loads of help from experienced users in the past and its payback time!

Anyone checked my instructions to confirm its all correct?
__________________
SEE THE WIKI.MAEMO ALARMED PAGE AND FIND NEW, COOL COMMANDS AND IF YOU HAVE ANY COOL/AWESOME/USEFUL COMMANDS YOURSELF PLEASE ADD THEM. http://wiki.maemo.org/ALARMED_Commands_List
If you dont have a wiki.maemo account and cant be bothered to create one you can inbox me your commands and I will add them for you.
 

The Following 5 Users Say Thank You to fraaaaanka For This Useful Post:
Posts: 436 | Thanked: 298 times | Joined on Jan 2010 @ England
#6
@ stew-b the link for extras doesnt work??? its a link to a webpage which shows you how to install extra's

@ pelago i have done this from my own experience at getting reboot working - i dont even know what leafpad is lol
__________________
SEE THE WIKI.MAEMO ALARMED PAGE AND FIND NEW, COOL COMMANDS AND IF YOU HAVE ANY COOL/AWESOME/USEFUL COMMANDS YOURSELF PLEASE ADD THEM. http://wiki.maemo.org/ALARMED_Commands_List
If you dont have a wiki.maemo account and cant be bothered to create one you can inbox me your commands and I will add them for you.
 
Posts: 78 | Thanked: 28 times | Joined on Oct 2009 @ London
#7
Originally Posted by pelago View Post
Although some people might disagree, for noob-friendly instructions I would recommend people to install leafpad and do "leafpad systemui.xml" at step 7, as that is easier to use.
Since this thread is instruction for newb, can you elaborate on what that does?

Slightly OT, but I am 99% sure I downloaded an app which added a rebbot key before I formatted my phone, but now I cant find it any more. Am I just imagining things?
 
Posts: 97 | Thanked: 41 times | Joined on Jan 2010
#8
A reboot app is what I'm after, can't be messing with all this coded stuff.
 
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#9
Originally Posted by fraaaaanka View Post
[B]@ pelago i have done this from my own experience at getting reboot working - i dont even know what leafpad is lol
I'm not saying your instructions aren't good, I'm just saying they could be better (simpler) by telling people to use leafpad instead of vi. Leafpad is a GUI text editor, so users won't need to understand about modes, and typing :wq etc.
 
Posts: 388 | Thanked: 842 times | Joined on Sep 2009 @ Finland
#10
Originally Posted by berty View Post
A reboot app is what I'm after, can't be messing with all this coded stuff.
Uh... Are people really rebooting their devices that often that a dedicated app is required? Why? Switching off and on using the power button can't be that hard if you have to do it for example once in a week.

Last edited by hqh; 2010-03-31 at 14:44.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 13:14.