maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   * The Truly Epic Maemo 5 MODs Thread * (https://talk.maemo.org/showthread.php?t=39565)

F2thaK 2010-01-07 11:47

* The Truly Epic Maemo 5 MODs Thread *
 
welcome to ..
* The Truly Epic Maemo 5 MODs Thread *



Ive got the full versions of duke nukem 3d atomic edition and quake 3,
plus openarena, doom (shareware) and they all work flawlessly.


so far ive hacked my N900 quite a bit:

-modified LED colours and vibrations
-removed boot video (can also use custom video, but i prefer none)
-added custom profiles with tweakr
-made camera button and proximity sensor shortcuts to task manager/phone
-customized operator name
-added 'reboot' function to power button



Wiki Links to MODs:


http://wiki.maemo.org/Customizing_Maemo

http://wiki.maemo.org/Category:N900
.
.
.
.
.

biggzy 2010-01-07 11:50

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by f2thak (Post 457116)
Ive got the full versions of duke nukem 3d atomic edition and quake 3,
plus openarena, doom (shareware) and they all work flawlessly.


so far ive hacked my N900 quite a bit:

-modified LED colours and vibrations
-removed boot video (can also use custom video, but i prefer none)
-added custom profiles with tweakr
-made camera button and proximity sensor shortcuts to task manager/phone
-customized operator name
-added 'reboot' function to power button

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

F2thaK 2010-01-07 11:55

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by biggzy (Post 457122)
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.

biggzy 2010-01-07 12:00

Re: N900 MODs - share your MODs!!
 
Thats the guide on my-maemo.com, i didnt understand the --- parts

F2thaK 2010-01-07 12:05

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by biggzy (Post 457133)
Thats the guide on my-maemo.com, i didnt understand the --- parts

not quite sure what u mean by --- parts but did u figure it out?

biggzy 2010-01-07 12:14

Re: N900 MODs - share your MODs!!
 
not figured it out yet, i realy want reboot option but dnt want to brick my n900 lol, yes im a maemo noob, i was a previous s60 ownr with good moding skills, so i also want to start doing mods on my n900, thanx for the info, i will try and do it.

archebyte 2010-01-07 12:19

Re: N900 MODs - share your MODs!!
 
another option to reboot would be to open a root terminal and simply type reboot.

F2thaK 2010-01-07 12:24

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by biggzy (Post 457148)
not figured it out yet, i realy want reboot option but dnt want to brick my n900 lol, yes im a maemo noob, i was a previous s60 ownr with good moding skills, so i also want to start doing mods on my n900, thanx for the info, i will try and do it.

im a first time linux user/maemo noob also.. i have messed with this and have added about 10 buttons to my power button - thats about the worst ive done...

F2thaK 2010-01-07 12:27

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by archebyte (Post 457153)
another option to reboot would be to open a root terminal and simply type reboot.

this adds a nice looking 'reboot' button when u press the power button.. id love to upload screenshot!! there is also soft-power off

grumps312 2010-01-07 12:34

Re: N900 MODs - share your MODs!!
 
How did you mod the LED colors?

F2thaK 2010-01-07 12:38

Re: N900 MODs - share your MODs!!
 
1 Attachment(s)
screenshot of reboot button

lcuk 2010-01-07 12:40

Re: N900 MODs - share your MODs!!
 
my mod isn't anything software related.
its a rapid prototype for something I needed
http://liqbase.net/liq.adhoc.stand.f...100104_004.jpg
http://liqbase.net/liq.adhoc.stand.s...100104_003.jpg
i will make a proper woody version soon, but this was quick and simple and is really sturdy for sitting alongside my laptop and testing whilst i code.
i get to poke the screen without it falling over :)

F2thaK 2010-01-07 12:44

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by grumps312 (Post 457170)
How did you mod the LED colors?


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

------------------------------------------------
LED and vibrator MOD :)
------------------------------------------------



In order to do this, you will need 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.


-open x-terminal app
-type 'sudo gainroot' [enter] then 'mc'
-edit the file "etc/mce/mce.ini"
-down the bottom of file is the area you need to be..
-just read the file and its self explaining...
-its as simple as changing setting to 'b' (to change notification to blue)
-save file, exit mc and reboot.

F2thaK 2010-01-07 12:45

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by lcuk (Post 457180)
my mod isn't anything software related.
its a rapid prototype for something I needed
i will make a proper woody version soon, but this was quick and simple and is really sturdy for sitting alongside my laptop and testing whilst i code.
i get to poke the screen without it falling over :)


yes that is a problem i saw almost instantly with this device..
stand is pretty useless and doesnt lie flat well when using.... :(

qwertyberty 2010-01-07 12:49

Re: N900 MODs - share your MODs!!
 
1 Attachment(s)
@bigzzy

If you just want the reboot button then edit the end of the file to look like this removing the <!-- at either end.

I didn't want the top command or soft reboot so I deleted them too

As was said earlier do keep a copy of the original file safe

pwngu!n 2010-01-07 12:57

Re: N900 MODs - share your MODs!!
 
Perhaps a simpler way to add a reboot button not requiring MC:

1) Open X terminal as root
2) cd /etc/systemui
3) Make a backup of the systemui file: cp systemui.xml systemui.xml.orig
3) Edit the file in any editor, e.g. vi systemui.xml

You need to make this section:
Code:

<!--
 <menuitem priority="20" name="Reboot">
  <return>6</return>
  <po>osso-powerup-shutdown</po>
 </menuitem>
 <menuitem priority="10" name="Soft poweroff">
  <return>7</return>
  <po>osso-powerup-shutdown</po>
 </menuitem>
 <menuitem priority="5" name="Top in XTerm">
  <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/top</argument>
  </callback>
 </menuitem>
-->

look like:

Code:

<menuitem priority="20" name="Reboot">
  <return>6</return>
  <po>osso-powerup-shutdown</po>
 </menuitem>
<!--
 <menuitem priority="10" name="Soft poweroff">
  <return>7</return>
  <po>osso-powerup-shutdown</po>
 </menuitem>
 <menuitem priority="5" name="Top in XTerm">
  <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/top</argument>
  </callback>
 </menuitem>
-->


F2thaK 2010-01-07 12:57

Re: N900 MODs - share your MODs!!
 
currently trying out extended keyboard shortcuts MOD

F2thaK 2010-01-07 12:58

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by pwngu!n (Post 457207)
Perhaps a simpler way to add a reboot button not requiring MC:
[/CODE]

im a windoze user thats new to maemo/linux so MC is good for me as it has GUI :)

Blinde 2010-01-07 13:14

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by f2thak (Post 457185)
WARNING: CHANGING THIS FILE OTHER THAN WHAT I ADVISE MAY BRICK YOUR DEVICE, I AM IN NO WAY RESPONSIBLE IF U BRICK ur N900!

------------------------------------------------
LED and vibrator MOD :)
------------------------------------------------


In order to do this, you will need 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.


-open x-terminal app
-type 'sudo gainroot' [enter] then 'mc'
-edit the file "etc/mce/mce.ini"
-down the bottom of file is the area you need to be..
-just read the file and its self explaining...
-its as simple as changing setting to 'b' (to change notification to blue)
-save file, exit mc and reboot.

Thanks for the info. Does it matter if two settings has the same value, like "power on" has white, so can i set it also for "sms?

What kind of combinations do work? Does blue&green work?

beli 2010-01-07 13:22

Re: N900 MODs - share your MODs!!
 
My N900 doesn't need a button to reboot ... it does that automatically ;)

F2thaK 2010-01-07 13:24

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by beli (Post 457258)
My N900 doesn't need a button to reboot ... it does that automatically ;)

huh?..............

F2thaK 2010-01-07 13:27

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by Blinde (Post 457245)
Thanks for the info. Does it matter if two settings has the same value, like "power on" has white, so can i set it also for "sms?

the file says something about rGb..... but i just set them to what i wanted in all lower case letters (r,g,b) and it works sweeet.. :)

red for missed call and power off
blue for sms/email/im
green for on/ full charge
white for device on/charge

biggzy 2010-01-07 13:34

Re: N900 MODs - share your MODs!!
 
once iv edited the systemui.xml in x term how do i save what iv changed? thanx

Blinde 2010-01-07 13:37

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by f2thak (Post 457264)
the file says something about rGb..... but i just set them to what i wanted in all lower case letters (r,g,b) and it works sweeet.. :)

red for missed call and power off
blue for sms/email/im
green for on/ full charge
white for device on/charge

Did those too. It works, sweet!

biggzy 2010-01-07 13:50

Re: N900 MODs - share your MODs!!
 
ok i need to know howto save the file iv edited in xterm and how do i remove blank lines of text also? thanx

edit, almost done...
http://img689.imageshack.us/img689/7...0010713510.png
http://img689.imageshack.us/img689/s...png/1/w800.png

but lots of blank space

F2thaK 2010-01-07 13:51

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by biggzy (Post 457271)
once iv edited the systemui.xml in x term how do i save what iv changed? thanx

i did it thru MC like i said, after edited (using stylus is easiest) press save then exit and reboot...
dont worry about blank lines, dont alter file too much, just single letters rgb

F2thaK 2010-01-07 14:05

Re: N900 MODs - share your MODs!!
 
just delete the space with backspace like txt editor.

HtheB 2010-01-07 14:09

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by beli (Post 457258)
My N900 doesn't need a button to reboot ... it does that automatically ;)

hahaha nice one :D

NUTNDUN 2010-01-07 14:28

Re: N900 MODs - share your MODs!!
 
I just wanted to give an example of another way of going about changing the file that you want to edit. I found it easier or quicker.

Install rootsh and leafpad from the extras repo(leafpad is really easy to save and edit as opposed to vi or vim)

This is an example for giving the extra options for the power button.

Open xterm
type: sudo gainroot
type: cd /etc/systemui
type: cp systemui.xml systemui.xml.back
type: leafpad systemui.xml

leafpad will open in a new window. It is just like using notepad in windows and scroll down till you find the line starting with:
<!--
and delete it and then find the line starting with:
-->
and delete it and then click on the title bar and click save and then reboot the device.

All credit goes to the original poster, I just wanted to share maybe an easier and quicker way to do it with terminal commands and a simple text editor.

If you uncomment it all it also gives you a button for the top command to open up in a xterm window and also a soft poweroff option.

Also wanted to mention pwngu!n had already posted the quicker way using vi and I missed it when scanning through the thread the first time.

F2thaK 2010-01-07 14:31

Extended keyboard shortcuts
 
1 Attachment(s)
EXTENDED KEYBOARD SHORTCUTS:




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





1. download this file, remove '3' from filename.
http://my.arava.co.il/~matan/770/n90...ildon_desktop3
2. copy to root dir of phone and disconnect phone from pc
3. open xterm, type:

sudo gainroot [enter]
cd /home/user/MyDocs [enter]
chmod a+x hildon-desktop [enter]
mv /usr/bin/hildon-desktop.launch /usr/bin/hildon-desktop.launch.org [enter]
mv hildon-desktop /usr/bin/hildon-desktop.launch [enter]

4. Install "dbus-scripts.deb" FILE ATTACHED

5. Copy http://my.arava.co.il/~matan/770/n900/kf/hdk-scripts to /etc/dbus-scripts.d

6. Copy http://my.arava.co.il/~matan/770/n900/kf/hdk to /usr/local/bin (making sure it is executable)


<shift><ctrl>H takes you to home screen.
LEFT and RIGHT keys change desktops
<shift><ctrl>f launches FBreader
<shift><ctrl>b opens a new browser window, and a few other shortcuts.

# in the application menu (launcher) and window switcher:
q - selects the top left thumbnail/icon
w - selects the top, second from left
...
a - selects the left of the second row

And so on. In addition, in the window switcher pressing shift or FN together with the letter closes the window instead of moving to it.


Currently configuring shortcuts is by editing the python script /usr/local/bin/hdk.





SOURCE THREAD:
http://talk.maemo.org/showthread.php?t=38314

F2thaK 2010-01-07 14:33

Re: N900 MODs - share your MODs!!
 
how to swap the Fn and Shift keys
----------------------------------------------------



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




Edit the file /usr/share/X11/xkb/symbols/nokia_vndr/rx-51

find:

--------------------------------------------
key <LFSH> {
type[Group1] = "ONE_LEVEL",
symbols[Group1] = [ Shift_L ]
};
modifier_map Shift { Shift_L };
--------------------------------------------

Replace LFSH with RALT. This makes FN behave like shift.

Then find
--------------------------------------------
include "level3(ralt_switch)"
--------------------------------------------


remove this line, and replace it with:

--------------------------------------------
key <LFSH> {
type[Group1]="ONE_LEVEL",
symbols[Group1] = [ ISO_Level3_Shift ]
};
modifier_map Mod5 { ISO_Level3_Shift };
--------------------------------------------


This makes the shift key behave as FN.

After editing rx-51, use the command "setxkbmap" in xterm to activate it.

twaelti 2010-01-07 14:35

Re: N900 MODs - share your MODs!!
 
Now it would be MUCH more valuable if these mods would be documented as wiki entries instead of posts.... Thanks! :-)

titi974 2010-01-07 17:56

Re: N900 MODs - share your MODs!!
 
Can you explain how to easily modify the led settings ? because there is many "patterns" and I don't know which one I should use (there is different models i saw). And is there only those colors ? R G B ?

biggzy 2010-01-07 20:29

Re: N900 MODs - share your MODs!!
 
finaly edited the file for reboot option, iv checjed it 7 times to make sure its correct but after a power off there is still no reboot option in the power key menu.... HELP!

http://img187.imageshack.us/img187/2...0010720295.png
http://img187.imageshack.us/img187/s...png/1/w800.png

NUTNDUN 2010-01-07 21:16

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by biggzy (Post 458018)
finaly edited the file for reboot option, iv checjed it 7 times to make sure its correct but after a power off there is still no reboot option in the power key menu.... HELP!

http://img187.imageshack.us/img187/2...0010720295.png
http://img187.imageshack.us/img187/s...png/1/w800.png


PHP Code:

<!--
 <
menuitem priority="20" name="Reboot">
  <return>
6</return>
  <
po>osso-powerup-shutdown</po>
 </
menuitem>
 <
menuitem priority="10" name="Soft poweroff">
  <return>
7</return>
  <
po>osso-powerup-shutdown</po>
 </
menuitem>
 <
menuitem priority="5" name="Top in XTerm">
  <
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/top</argument>
  </
callback>
 </
menuitem>
--> 

That is the original section that was between the comment out pieces.


Here is the contents of the original file:
PHP Code:

<powerkeymenu path="/">
 <
title>powerup_application_title</title>
 <
po>osso-powerup-shutdown</po>

 <
menuitem priority="700" name="powerup_memainmenu_lockscreen">
  <return>
1</return>
  <
po>osso-powerup-shutdown</po>
 </
menuitem>

 <
menuitem priority="600" name="powerup_memain_endcurrenttask">
  <return>
10</return>
  <
po>osso-powerup-shutdown</po>
 </
menuitem>

 <
menuitem priority="350" name="powerup_memainmenu_normalmode" visible="flight">
  <
keyfile>/var/lib/mce/mode</keyfile>
  <
icon>statusarea_cell_level5</icon>
  <return>
2</return>
  <
po>osso-powerup-shutdown</po>
 </
menuitem>

 <
menuitem priority="350" name="powerup_memainmenu_flightmode" visible="normal">
  <
keyfile>/var/lib/mce/mode</keyfile>
  <
icon>statusarea_cell_off</icon>
  <return>
3</return>
  <
po>osso-powerup-shutdown</po>
 </
menuitem>

 <
menuitem priority="100" name="powerup_memainmenu_lockdevice" disabled="yes">
  <
keyfile>/var/run/mce/call</keyfile>
  <return>
4</return>
  <
po>osso-powerup-shutdown</po>
  <
disabled_reason name="powerup_ib_device_lock_not_available">
   <
po>osso-powerup-shutdown</po>
  </
disabled_reason>
 </
menuitem>

 <
menuitem priority="90" name="powerup_memainmenu_poweroff">
  <return>
5</return>
  <
po>osso-powerup-shutdown</po>
 </
menuitem>

 <
menuitem priority="300" name="powerup_memainmenu_silent" visible="general">
  <
keyfile>/home/user/.profiled/current</keyfile>
  <
icon>statusarea_silent</icon>
  <return>
8</return>
  <
po>osso-powerup-shutdown</po>
  <
callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true">
    <
argument type="string">silent</argument>
  </
callback>
 </
menuitem>

 <
menuitem priority="200" name="powerup_memainmenu_general" visible="silent">
  <
keyfile>/home/user/.profiled/current</keyfile>
  <
icon>general_profile</icon>
  <return>
9</return>
  <
po>osso-powerup-shutdown</po>
  <
callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true">
    <
argument type="string">general</argument>
  </
callback>
</
menuitem>

<!--
 <
menuitem priority="20" name="Reboot">
  <return>
6</return>
  <
po>osso-powerup-shutdown</po>
 </
menuitem>
 <
menuitem priority="10" name="Soft poweroff">
  <return>
7</return>
  <
po>osso-powerup-shutdown</po>
 </
menuitem>
 <
menuitem priority="5" name="Top in XTerm">
  <
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/top</argument>
  </
callback>
 </
menuitem>
-->

</
powerkeymenu


biggzy 2010-01-07 21:19

Re: N900 MODs - share your MODs!!
 
thanx fir the info, i did however do a backup of the file and now restored it, iv since changed the file like so..


<menuitem priority="20" name="Reboot">
<return>6</return>
<po>osso-powerup-shutdown</po>
</menuitem>
<!--
<menuitem priority="10" name="Soft poweroff">
<return>7</return>
<po>osso-powerup-shutdown</po>
</menuitem>
<menuitem priority="5" name="Top in XTerm">
<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/top</argument>
</callback>
</menuitem>
-->

so now the file is just like the OP said but its still not working :confused:

NUTNDUN 2010-01-07 21:21

Re: N900 MODs - share your MODs!!
 
Did you reboot since making the last change?

biggzy 2010-01-07 21:22

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by NUTNDUN (Post 458123)
Did you reboot since making the last change?

yes but still nothing .. :confused: i dont get it

NUTNDUN 2010-01-07 21:26

Re: N900 MODs - share your MODs!!
 
You have the file name correct after restoring it from the backup file?

Just shooting at anything right now

biggzy 2010-01-07 21:30

Re: N900 MODs - share your MODs!!
 
Quote:

Originally Posted by NUTNDUN (Post 458139)
You have the file name correct after restoring it from the backup file?

Just shooting at anything right now

yes, just tried it again by doing this in x-term

type cd /etc/systemui (press enter)

leafpad systemui.xml (press enter)

edited the file again and saved, rebooted and it WORKS!!!!

i didnt type cd /etc/sytemui befor, was that the problem?

thanx for all the help ;)


All times are GMT. The time now is 05:45.

vBulletin® Version 3.8.8