Active Topics

 


Reply
Thread Tools
Posts: 311 | Thanked: 110 times | Joined on Nov 2007 @ Boston, MA
#101
Removing the Conversations widget and firefox has fixed the problem for me, Since I removed it on saturday I've started to get upwards of 36 hours on a single charge now - with heavy browsing for about an hour each day using 3G, SMS messaging and several calls!
 
Posts: 8 | Thanked: 3 times | Joined on Nov 2009 @ Finland
#102
Originally Posted by econan View Post
Then I used some rrdtools to chart.
And here's a script that uses gnuplot (available in extras-devel):
Code:
#!/bin/sh
# plot.sh -- for n900
# pyllyukko at maimed dot org -- 18.1.2010
[ ! -x /usr/bin/gnuplot ] && {
  echo "error: no gnuplot!" 1>&2
  exit 1
}
[ -n "${1}" ] && INFILE="${1}" || INFILE="/root/battery.log"
[ ! -f "${INFILE}" ] && {
  echo "error: input file \`${INFILE}' does not exist!" 1>&2
  exit 1
}
PIC_DIR="/home/user/MyDocs/.images"
NOW=$(date +%s)
TODATE=$(date +%Y%m%d)
# BEFORE = 24 hours ago
BEFORE=$((${NOW}-60*60*24))
gnuplot -persist <<-EOP
        set terminal png
        set output "${PIC_DIR}/battery-${TODATE}.png"
        set title "n900 battery status"
        set xdata time
        set nokey
        set timefmt "%s"
        # enable this to plot only the last 24 hours
        #set xrange ["${BEFORE}":]
        set yrange [0:]
        set xlabel "time"
        set ylabel "mAh"
        set y2label "load avg"
        set y2tics
        plot "${INFILE}" using 1:2 with lines,\
             "${INFILE}" using 1:6 axes x1y2 with lines
EOP
exit 0
To create graphs like this:
 

The Following User Says Thank You to pyllyukko For This Useful Post:
Posts: 248 | Thanked: 43 times | Joined on Nov 2009 @ US
#103
Originally Posted by pyllyukko View Post
And here's a script that uses gnuplot (available in extras-devel):
Code:
#!/bin/sh
# plot.sh -- for n900
# pyllyukko at maimed dot org -- 18.1.2010
[ ! -x /usr/bin/gnuplot ] && {
  echo "error: no gnuplot!" 1>&2
  exit 1
}
[ -n "${1}" ] && INFILE="${1}" || INFILE="/root/battery.log"
[ ! -f "${INFILE}" ] && {
  echo "error: input file \`${INFILE}' does not exist!" 1>&2
  exit 1
}
PIC_DIR="/home/user/MyDocs/.images"
NOW=$(date +%s)
TODATE=$(date +%Y%m%d)
# BEFORE = 24 hours ago
BEFORE=$((${NOW}-60*60*24))
gnuplot -persist <<-EOP
        set terminal png
        set output "${PIC_DIR}/battery-${TODATE}.png"
        set title "n900 battery status"
        set xdata time
        set nokey
        set timefmt "%s"
        # enable this to plot only the last 24 hours
        #set xrange ["${BEFORE}":]
        set yrange [0:]
        set xlabel "time"
        set ylabel "mAh"
        set y2label "load avg"
        set y2tics
        plot "${INFILE}" using 1:2 with lines,\
             "${INFILE}" using 1:6 axes x1y2 with lines
EOP
exit 0
To create graphs like this:
Does not make sense at all, even no load, looking at the graph, the battery still drain...so what does it tell you what cause the battery drain????
 
Posts: 8 | Thanked: 3 times | Joined on Nov 2009 @ Finland
#104
Originally Posted by radiowc View Post
Does not make sense at all, even no load, looking at the graph, the battery still drain...so what does it tell you what cause the battery drain????
Don't know, I used the example log by econan (http://talk.maemo.org/showpost.php?p...0&postcount=88).

But hopefully people can track their battery draining a little bit better with the help of the script.
 

The Following User Says Thank You to pyllyukko For This Useful Post:
Posts: 10 | Thanked: 4 times | Joined on Jan 2010 @ Washington, DC
#105
Great script pyllyukko! Thanks for that.

Whoever has the initial drain issue, I suspect that the charging process does not understand that the battery is fully charged. Try this when your battery is fully charged:
  1. unplug the phone.
  2. shutdown the phone
  3. remove the battery
  4. (optional) push the power button 10 secs (without the battery, this might not even do anything, i might be imagining things )
  5. put the battery back in
  6. plug the phone immediately after boot finishes
Now whenever I did this, the phone continued to charge for another 20-30 mins.

I also recorded the percentage and the charge (mA) from the hal-device before and after the shutdown.

The fully charged battery before the shutdown was around 97% and ~1200 mA
After the reboot it goes to 87-90% battery state. (i don't remember the amps)

Either I'm missing something (maybe boot drains a lot of battery, or some enormous discharge happening somewhere in between) or the measurement of the battery charge is somewhat skewed in the OS.
 
Posts: 992 | Thanked: 995 times | Joined on Dec 2009 @ California
#106
econan (charging process) - it is a usual behavior even with my battery powered saw. LiON does some "restructuring" process after it reaches a full charge.
 
Posts: 25 | Thanked: 1 time | Joined on Dec 2009 @ NE-Scotland
#107
I am having the battery drain problem after the update. I tried to unistall firefox but without results. I do not have desktop widgets and top, conky or htop do not show strange processes using CPU.
The phone is often very warm.
Thank you for the nice and well documented discussion.
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#108
Originally Posted by lasala View Post
Does anyone know that with pre PR.1.1 the Xorg logfile /tmp/Xord.0.log was set to -logverbose? It now is and i have been seeing constant cpu usage at 6%.
i tracked this problem for about 2 hours now.
it constantly uses 1 - 6 % in idle, mainly around 4 %.

if i do something the value raises to about 10 %.

any solutions?
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#109
killing the process reboots the n900.
(i knew this would be happening - but it was worth trying ^^... not)
 
Posts: 264 | Thanked: 90 times | Joined on Jan 2010
#110
I also found that Xorg was constantly doing something, although i don't quite understand the process itself.

As for battery, i've only ever gotten 1 day total out of the device, but then i've been on the internet 12 hours a day running flash based content while i browse so i expect that.

CPU is strange with the device, but i wouldn't expect xorg to drain it too fast!
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:15.