View Single Post
Posts: 69 | Thanked: 55 times | Joined on Nov 2009
#278
Originally Posted by marauder View Post
My N900 seems to be working fine now, since I recharged yesterady evening. I still have an almost full battery right now after 12 hours.

I tried using the "top" command in xterm window again, this time sorting the processes with the P and M keys (as jaysire suggested, thanks!), but found nothing abnormal, all processes under 5%.

When I had the battery problem yesterday, I had no active data connection, no browser windows open. The device was inidle connection.

I'm wondering if there could be some kind of issue with the N900 wifi receiver being turned on even if the status icon doen't say so? (Could have something to do with the fact that occasionally I disconnect from my wifi router, and if I want to reconnect, the N900 won't see the router until I reboot it). Or maybe sometimes when charging the N900 reports the battery is fully charged but it's not...I really don't know. I will have to wait for it to happen again and investigate further. If it won't happen again so much better.

All I know is that now everything looks good, the battery seems to be performing very well. Yesterday I was shocked to see it get empty in 4.5 hours on and idle device...
Yes , i experienced exactly the same issue with the wifi refusing to reconnect
until reboot and this was in the day with worst battery life (about 4 hrs).
There must be some bug in the wifi driver or wpa_supplicant....

I've also changed some settings in rcS with values that improved battery life in my G1:

Code:
# User settings to reduce battery drain
# Was 100
echo 40 > /proc/sys/vm/swappiness

# Experimental settings
# Was 5
echo 1 > /proc/sys/vm/page-cluster
# default: 0 Helps keep SSD from getting worn
echo 5 > /proc/sys/vm/laptop_mode
# Was 500
echo 5000 > /proc/sys/vm/dirty_expire_centisecs
# default: 500
echo 800 > /proc/sys/vm/dirty_writeback_centisecs
# default: 5
echo 10 > /proc/sys/vm/dirty_background_ratio
# default: 10
echo 16 > /proc/sys/vm/dirty_ratio

#Over Clock CPU when in use, puts at lower freq when idle
# available frequencies 600000 550000 500000 250000
echo 550000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

# default: 0
echo 200 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/powersave_bias

# Was 300000
echo 2000000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate

# Was 95, percent cpu usage before going up a speed step
echo 45 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold

# Set "No-op" scheduler for mtdblocks and mmc
for i in /sys/block/mmcblk0 /sys/block/mmcblk1 `ls -1 /sys/block/mtdblock*`
do
	echo "noop" > $i/queue/scheduler
done
and there seems to be some improvement in battery life, but it still needs
more testing. I will report in the next days if there are some improvements.

Update:
so far after 15 hrs still 90% battery with normal use pattern: a few calls
a little wifi, some sms.

Last edited by farmatito; 2009-12-01 at 21:47.
 

The Following User Says Thank You to farmatito For This Useful Post: