Active Topics

 


Reply
Thread Tools
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#31
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.

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

The Following 2 Users Say Thank You to F2thaK For This Useful Post:
Posts: 883 | Thanked: 980 times | Joined on Jul 2007 @ Bern, Switzerland
#32
Now it would be MUCH more valuable if these mods would be documented as wiki entries instead of posts.... Thanks! :-)
__________________
-Tom (N900, N810, N800)

"the idea of truly having a computer in your pocket just moved a big step closer."
 

The Following 4 Users Say Thank You to twaelti For This Useful Post:
titi974's Avatar
Posts: 345 | Thanked: 72 times | Joined on Dec 2009 @ Reunion Island
#33
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's Avatar
Posts: 547 | Thanked: 461 times | Joined on Aug 2009 @ UK
#34
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!


__________________
Nokia N900 - It's what computers have become.
My Web Site
Twitter

Last edited by biggzy; 2010-01-07 at 20:34.
 
Posts: 56 | Thanked: 17 times | Joined on Dec 2009 @ Carlisle, PA
#35
Originally Posted by biggzy View Post
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!



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

Last edited by NUTNDUN; 2010-01-07 at 21:20.
 
biggzy's Avatar
Posts: 547 | Thanked: 461 times | Joined on Aug 2009 @ UK
#36
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
__________________
Nokia N900 - It's what computers have become.
My Web Site
Twitter
 
Posts: 56 | Thanked: 17 times | Joined on Dec 2009 @ Carlisle, PA
#37
Did you reboot since making the last change?
 
biggzy's Avatar
Posts: 547 | Thanked: 461 times | Joined on Aug 2009 @ UK
#38
Originally Posted by NUTNDUN View Post
Did you reboot since making the last change?
yes but still nothing .. i dont get it
__________________
Nokia N900 - It's what computers have become.
My Web Site
Twitter
 
Posts: 56 | Thanked: 17 times | Joined on Dec 2009 @ Carlisle, PA
#39
You have the file name correct after restoring it from the backup file?

Just shooting at anything right now
 
biggzy's Avatar
Posts: 547 | Thanked: 461 times | Joined on Aug 2009 @ UK
#40
Originally Posted by NUTNDUN View Post
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
__________________
Nokia N900 - It's what computers have become.
My Web Site
Twitter
 
Reply

Tags
maemo mods, mods thread


 
Forum Jump


All times are GMT. The time now is 18:25.