home page - continua (next page)

Click here for other N900-related pages!

I list here some tweaks found in the internet. Most of the information come from Maemo-related sources:

Reflashing firmware


Command syntax for some different functions:


Edit /etc/init.d/rcS and change the swappiness from 100 to 30:
echo 30 > /proc/sys/vm/swappiness

Ondemand CPU-freq scaling

Note: apparently this has been obsoleted by PR1.3 Create the text file /etc/event.d/ondemand-config with these lines (meaning: every 0.15sec check for general load; if more than 75% then upscale frequency; standard values were 300msec and 95%; I read about someone suggesting to go down to 65% but in 700msec, but I find it exaggerate):
start on started xsession

console output
    echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
    echo 150000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
end script

The script below renices the background tasks and tells the kernel to ignore their load. I do not yet know where to put these lines, that I believe are needed after completing the boot (the "ps/grep" may be changed with "pidof"):
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load
renice 1 `cat /syspart/applications/standby/background/tasks`
renice 1 `ps | grep modest | cut -c1-5`

Fcron examples

The Fcron page includes a number of useful scripts (2G/3G/Dual, network connect/disconnect, update email, etc).

Ignore nice load

This should save some battery life but I did not yet verify:
echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load
renice 1 `cat /syspart/applications/standby/background/tasks`
renice 1 `ps | grep modest | cut -c1-5`

Fix usb0 interface

To make the N900 appear with a specific IP-address and MAC-address for internet connection "forwarding" (i.e.: use the N900 as a router), I had to issue these commands: to add:
ifup usb0
echo 1 > /proc/sys/net/ipv4/ip_forward 
iptables -t nat -A POSTROUTING -d ! -j MASQUERADE

Until PR1.3, the ifup usb0 was not needed.

Click here for index page.

indietro (previous page) - home page - continua (next page)