View Single Post
Viqsi's Avatar
Posts: 115 | Thanked: 136 times | Joined on Mar 2008 @ Central Ohio
#20
Originally Posted by barzam View Post
What does all these do? Could you explain your script a bit more? I'm on a quest to get the maximum battery out of the phone..

echo 1 > /proc/sys/vm/laptop_mode
echo 1 > /proc/sys/vm/oom_kill_allocating_task
echo 0 > /proc/sys/vm/dirty_expire_centisecs
echo 0 > /proc/sys/vm/dirty_writeback_centisecs
echo 60 > /proc/sys/vm/dirty_background_ratio
echo 95 > /proc/sys/vm/dirty_ratio
echo 0 > /proc/sys/net/ipv4/tcp_timestamps
echo 1 > /proc/sys/net/ipv4/tcp_no_metrics_save
http://www.linuxinsight.com/proc_sys_vm_hierarchy.html has some documentation on all the various bits in there, although I can't vouch for its readability for nongeeks. There's probably other important /proc docs there too, but I didn't look too far. I was just curious as to what "laptop mode" was, personally.

In the process, I did discover that "laptop_mode" is almost certainly useless. Roughly speaking, it cleans out old parts of the swap opportunistically any time any other I/O occurs - this saves power on a laptop because that way you avoid spinning up the hard drive *just* to handle swap cleanup. Last I checked, though, the n900 does not have a mechanical hard drive - unless someone's come up with a new mod I haven't heard about - and so this is unlikely to be helpful. (It's probably equally unlikely to be harmful, though, so, meh. )

I therefore suspect some of the other tweaks listed may arise from a similar "shotgun approach" to tweak application, but I haven't looked all that closely.
 

The Following 2 Users Say Thank You to Viqsi For This Useful Post: