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 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 04:01.

vBulletin® Version 3.8.8