Ready to install: Place CPUTweak.sh.txt and CPUTweak.tar in ./MyDocs Code: root apt-get install dbus-scripts sh /home/user/MyDocs/CPUTweak.sh.txt NOTE: The frequency set here is starving at 250 500 while idle, and 500 1150 ideal when on usage. BE CAREFUL: IF YOU THINK/KNOW THAT YOUR N900 CAN'T SURVIVE THESE SETTINGS, BE SURE TO EDIT THE FREQUENCIES IN /usr/local/bin/overclock and underclock FILES, OR WELCOME A REBOOT LOOP This is really a brilliant idea GigaByte, wonder why I've never thought aboout it, using dbus-scripts for a noble act like this is really intelligent, bravo -UPDATE- I added the effective vfs cache pressure trick into this patch, gives far even better battery life. Updated archive attached. -UPDATE2- Usage of process SIGSTOP to pause greedy processes from running in the background. Updated archive attached.
root apt-get install dbus-scripts sh /home/user/MyDocs/CPUTweak.sh.txt
#!/bin/sh # Default value in case we don't have a swappolube config saved with 'vfs_cache_pressure' option value. VFS_CACHE_PRESSURE=100 # Loading saved swappolube 'vfs_cache_pressure' value if it exist in /etc/event.d/tuning. if $(grep vfs_cache_pressure /etc/event.d/tuning 1>/dev/null 2>&1) ; then VFS_CACHE_PRESSURE=$(grep vfs_cache_pressure /etc/event.d/tuning | awk '{print $2}' | sed 's|"||g') fi kernel-config load ideal kernel-config limits 500 1150 echo ${VFS_CACHE_PRESSURE} > /proc/sys/vm/vfs_cache_pressure for process in browserd scim-panel-gtk image-viewer do /usr/bin/pkill -CONT $process done