maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   400% battery performance improvement? (https://talk.maemo.org/showthread.php?t=84038)

knoxy420 2012-05-03 03:50

400% battery performance improvement?
 
This is freaking me out!:eek:

My N900 used to have terrible battery life. 3-4 hours max. really crappy. I talk all about it in this thread

Suddenly, yesterday I noticed it had gone ~8 hours and still had juice. Today, 14 hours after I took it off the charger, it still reports 35% battery. This is after 9 months of crappy battery life.

WhhaawwtThaFaaarrk? 400% increase?!?

Why is this? I'm afraid to reboot it else the magic will escape!

Anyone care to speculate on this? I'm really interested in folks ideas on this.

Here's some stats & observation.:
  • Last updates I ran were over a month ago.
  • Been running overclocked at 250-850MHz.
  • All hardware is turned on.
  • all repos enabled
  • Not running much; wifi, ssh, X. CPU is at <10%.
  • Same standard BL-5j battery for months.
  • Other than battery life, it has run perfectly.
  • it used to run very warm to the touch, always.
  • now it stays cool to the touch

I started poking around and found lots of this in the syslog:
Code:

[39710.458679] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[39715.800842] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[39720.871185] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values


And for comparison (see my other thread), here's typical top output:
Code:

Mem: 142680K used, 92580K free, 0K shrd, 396K buff, 28824K cached
CPU:  2.4% usr  5.7% sys  0.0% nic 91.3% idle  0.0% io  0.0% irq  0.3% sirq
Load average: 0.03 0.09 0.09 1/298 20788
  PID  PPID USER    STAT  RSS %MEM %CPU COMMAND
20347 17426 root    R      728  0.3  1.7 top
30369 30360 user    S      672  0.2  1.7 top
  10    2 root    SW      0  0.0  1.5 [omap2_mcspi]
13687 13659 root    S      696  0.3  1.1 top
  948    1 root    S    6888  2.9  0.5 /usr/sbin/ohmd --no-daemon
17228 17181 root    S    1840  0.7  0.5 {sshd} sshd: root@pts/4

here's what powertop says:
Code:

[1|root@Nokia-N900|~]powertop
Powertop 1.13.3
status: Unknown job: pmtrackerdaemon
Sleeping for 11 seconds before sampling
Collecting data for 30 seconds
Sample interval was 00m 30s 33264us

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
    C0 |  4.2% |          |  1150 MHz |  nan% |
    C1 |  0.0% |    0.5ms |
    C2 |  1.0% |    3.3ms |
    C3 |  8.6% |  199.6ms |
    C4 |  86.1% | 1521.0ms |

IRQ#    | Activity  | Type          | Name
--------+------------+----------------+---------------------------
    37 |        239 |          INTC | gp
    57 |        234 |          INTC | i2c_omap
    11 |        109 |          INTC | prcm
    56 |        90 |          INTC | i2c_omap
    12 |        80 |          INTC | DMA
    202 |          5 |          GPIO | wl1251

PID#    | Activity  | Name          | Function Entry (Expire)
--------+------------+----------------+---------------------------
      0 |          8 |  <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer)
  18954 |          3D|  kernel-config | cpufreq_governor_dbs (delayed_work_timer_fn)
    693 |          1 |          dsme | __enqueue_rt_entity (sched_rt_period_timer)
    552 |          1 |        wl12xx | queue_delayed_work (delayed_work_timer_fn)
      0 |          1 |  <kernel core> | hrtimer_start (tick_sched_timer)
    977 |          1 |            mce | tsc2005_start_scan (tsc2005_esd_timer_handler)
  20072 |          1 |      powertop | do_nanosleep (hrtimer_wakeup)

Power domain activity breakdown
Domain  | % of time spent in states
--------+---------+---------+---------+---------+----------
usbhost |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)
    sgx |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)
    per |OFF:  94%|RET:  0%|INA:  0%| ON:  4%| now:(ON)
    dss |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)
    cam |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)
  core |OFF:  86%|RET:  8%|INA:  0%| ON:  4%| now:(ON)
  neon |OFF:  86%|RET:  8%|INA:  0%| ON:  4%| now:(ON)
    mpu |OFF:  86%|RET:  8%|INA:  0%| ON:  4%| now:(ON)
  iva2 |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)

Clock activity breakdown at end of period
Domain  | Active clocks
--------+---------------+---------------+------------------
  core |          SDRC | HSOTGUSB_IDLE |      OMAPCTRL
        |    MAILBOXES |
  wkup |          GPT1 |      32KSYNC |        GPIO1
        |          WDT1 |          SR1 |          SR2
        |
  ckgen |          CORE |          PERI |          96M
        |          48M |          12M |          54M
        |      EMU_CORE |
    per |        GPIO2 |        GPIO3 |        GPIO4
        |        GPIO5 |        GPIO6 |

Total wakeups  773,  25.8/s | IRQ  757,  25.2/s | Timers  16,  0.5/s
HW wakeups      109,  3.6/s |    Real gp_timers expired  239,  8.0/s


Here's lshal for the battery:
Code:

[1|root@Nokia-N900|~]lshal -s -u '/org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0'
udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0'
  battery.charge_level.current = 0  (0x0)  (int)
  battery.charge_level.design = 2056  (0x808)  (int)
  battery.charge_level.last_full = 0  (0x0)  (int)
  battery.charge_level.percentage = 0  (0x0)  (int)
  battery.charge_level.rate = 117  (0x75)  (int)
  battery.is_rechargeable = true  (bool)
  battery.present = true  (bool)
  battery.rechargeable.is_charging = false  (bool)
  battery.rechargeable.is_discharging = true  (bool)
  battery.reporting.current = 1637  (0x665)  (int)
  battery.reporting.design = 2056  (0x808)  (int)
  battery.reporting.rate = 117  (0x75)  (int)
  battery.reporting.technology = 'Li-ion'  (string)
  battery.reporting.unit = 'mAh'  (string)
  battery.technology = 'lithium-ion'  (string)
  battery.type = 'primary'  (string)
  battery.voltage.current = 3593  (0xe09)  (int)
  info.capabilities = {'battery'} (string list)
  info.category = 'battery'  (string)
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
  info.product = 'Generic Battery Device'  (string)
  info.subsystem = 'power_supply'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'power_supply'  (string)
  linux.sysfs_path = '/sys/class/power_supply/bq27200-0'  (string)


what do you think is going on with this? lemme know if you'd like any other info.

geneven 2012-05-03 04:08

Re: 400% battery performance improvement?
 
There are many possible causes of crappy battery life that might invisibly go away, and they are discussed in the many battery life threads. One of my favorites is the cell phone switching from one type of signal to another.

immi.shk 2012-05-03 04:42

Re: 400% battery performance improvement?
 
i have similar experience with NITdroid...

more then 5hrs of On-screen(continual use till battery cry for recharge) time and 4hrs on wifi hotspot... more then 15hrs on normal use...
and it was cold too as you mentioned

the reason i felt for it was 'heapsize' which was not set by me so it ws '20m' only & no swap...

after changing both of them i.e heapsize to '36m' & enabling swap.. NITDROID BECAME A MAMMAL i.e always hot & hungry ;)
this is what i observed, it might be wrong

so is there a similar concept of heapsize in maemo too

reinob 2012-05-03 08:40

Re: 400% battery performance improvement?
 
@knoxy420,

What kernel are you using?
Are you loading the bq27x00_battery module?

Can you remember if you did anything in these last days that might have affected the kernel?

ffha 2012-05-03 09:55

Re: 400% battery performance improvement?
 
Every BL-5J has a chip inside which keeps track of the amount of charge a battery can hold. It seems like yours was off by a large amount or simply defect.

You can re-calibrate it yourself or purchase a new battery if the one you're currently using does turn out to be defect.
http://talk.maemo.org/showpost.php?p...&postcount=846
http://talk.maemo.org/showpost.php?p...postcount=1176

sicelo 2012-05-03 10:32

Re: 400% battery performance improvement?
 
you're aware that the speed patch is generally not considered good?

reinob 2012-05-03 11:41

Re: 400% battery performance improvement?
 
Quote:

Originally Posted by qhubekela (Post 1201223)
you're aware that the speed patch is generally not considered good?

This has nothing to do with speedpatch (hopefully!) as his battery was even draining while the phone was off (probably ACTDEAD anyway..)

knoxy420 2012-05-03 12:33

Re: 400% battery performance improvement?
 
Quote:

Originally Posted by reinob (Post 1201184)
@knoxy420,

What kernel are you using?
Are you loading the bq27x00_battery module?

Can you remember if you did anything in these last days that might have affacted the kernel?

Running kernel:
Code:

Linux Nokia-N900 2.6.28.10-power50 #1 PREEMPT Sun Mar 18 20:10:56 EET 2012 armv7l GNU/Linux
bq27x00 is loaded:

Code:

[1|root@Nokia-N900|~]lsmod
Module                  Size  Used by
bq27x00_battery        6480  0
power_supply            6916  1 bq27x00_battery

I haven't done any updates/hacking on the phone in over a month.

One day it would die quickly. Now it lasts all day.

knoxy420 2012-05-03 12:37

Re: 400% battery performance improvement?
 
Quote:

Originally Posted by ffha (Post 1201209)
Every BL-5J has a chip inside which keeps track of the amount of charge a battery can hold. It seems like yours was off by a large amount or simply defect.

You can re-calibrate it yourself or purchase a new battery if the one you're currently using does turn out to be defect.
http://talk.maemo.org/showpost.php?p...&postcount=846
http://talk.maemo.org/showpost.php?p...postcount=1176

I have 2 bl5js. Both exhibited the poor battery life. I haven't tried my spare since this one got "better". Given the junk about battery calibration in syslog, I'd say something changed.

knoxy420 2012-05-03 12:41

Re: 400% battery performance improvement?
 
Quote:

Originally Posted by reinob (Post 1201250)
This has nothing to do with speedpatch (hopefully!) as his battery was even draining while the phone was off (probably ACTDEAD anyway..)

I do have speed patch & battery patch installed from back when I didn't know any better. However the battery life issues were the same with a clean reflash.

Whatever was eating batteries was generating a large amount of heat so that the phone was always noticibly warm. I figured there was a short somewhere or something.

freemangordon 2012-05-03 13:48

Re: 400% battery performance improvement?
 
Quote:

Originally Posted by knoxy420 (Post 1201272)
I do have speed patch & battery patch installed from back when I didn't know any better. However the battery life issues were the same with a clean reflash.

Whatever was eating batteries was generating a large amount of heat so that the phone was always noticibly warm. I figured there was a short somewhere or something.

If your n900 is constantly connected to wifi, then check your wifi power saving settings

Estel 2012-05-03 14:00

Re: 400% battery performance improvement?
 
It seems that something was draining Your battery life (some script that stopped working? Cell signal quality was improved, so Your device isn't constantly switching between 2G and 3G?), and now it's gone. It's hard/impossible to tell what it was, without powertop readings from situation, when the problem actually *occurred*.

/Estel

reinob 2012-05-03 14:49

Re: 400% battery performance improvement?
 
@freemangordon and @estel,

Check the thread linked in the first post. The poor guy suffered from this problem even with the N900 being *turned off* (whether completely or ACT_DEAD is unclear, I vote for ACT_DEAD).

Powertop outputs are also on that thread...

The problem apparently only happened when the phone was *not* connected to the charger, hence my question about bq module.

I don't know if things have changed with KP50, but the bq27.. module was not supposed to be loaded when bme is also running. At least I haven't loaded it since KP46 days.

Now AFAIK nobody has (yet?) had a real problem when combining bq27 and bme. Perhaps we have a case here?!

knoxy420 2012-05-03 20:22

Re: 400% battery performance improvement?
 
Quote:

Originally Posted by reinob (Post 1201340)
@freemangordon and @estel,
...
Now AFAIK nobody has (yet?) had a real problem when combining bq27 and bme. Perhaps we have a case here?!

Note that the issue was occurring with a reflash to stock settings as well. Basically the one thing that was constant since I've had it, regardless of hacking, tweaking & enabled hardware, was the extreme battery drain. Was quite depressing actually.:(

The only thing I've noticed that different now, is the messages in dmesg about bad battery calibration. That was not present before.

knoxy420 2012-05-03 20:25

Re: 400% battery performance improvement?
 
Quote:

Originally Posted by reinob (Post 1201340)
@freemangordon and @estel,

Check the thread linked in the first post. The poor guy suffered from this problem even with the N900 being *turned off* (whether completely or ACT_DEAD is unclear, I vote for ACT_DEAD).


It would drain if the battery was in it at all. Even if I removed it for awhile and then put it back in, without powering on, it would get warm and drain batteries.

reinob 2012-05-04 07:30

Re: 400% battery performance improvement?
 
@knoxy420,

I don't know what to think anymore. It might have been some bad contact, making the battery actually drain (letting the current flow) even when nothing was "using" it, hence the warming.

forsagar 2012-05-04 10:39

Re: 400% battery performance improvement?
 
1 Attachment(s)
What will you say about this friends ? :confused:

From the graph you can see my battery is not fully charged still it runs for 49 hours with lots of cpu usage.:D :D
and good thing is....:cool:

This is my regular battery back up time. :eek::eek:

reinob 2012-05-04 11:10

Re: 400% battery performance improvement?
 
Quote:

Originally Posted by forsagar (Post 1201750)
What will you say about this friends ? :confused:

Hmm.. lemme think. Answer: that you are hijacking a thread? :)

Quote:

From the graph you can see my battery is not fully charged still it runs for 49 hours with lots of cpu usage.:D :D
and good thing is....:cool:

This is my regular battery back up time. :eek::eek:
So, your battery lasted ~ 2 days. Mine lasts 4 says with low-normal use, a few hours with very intensive use. Your point being?

forsagar 2012-05-04 11:25

Re: 400% battery performance improvement?
 
Quote:

Originally Posted by reinob (Post 1201756)
So, your battery lasted ~ 2 days. Mine lasts 4 says with low-normal use, a few hours with very intensive use. Your point being?

Check the first 30 hours Graph again...
Is this low-normal use ?:confused:
almost 65 % of that time cpu usage is showing more that means it's not a low-normal use.

knoxy420 2012-05-26 12:58

Re: 400% battery performance improvement?
 
Hey all, just an update on my mysterious/miraculous n900 improvement.

The previous issues were not battery dependent. i can use either of my batteries and get 12+ hours of usage (vs 3-4 hours battery previously). so something in the phone's hardware "cured" itself. I can also now over clock up to 1000MHz and it stays stable. Previously, if I went over 850MHz it would reboot immediately.

I really wish I knew what happened for this improvement.

misterc 2012-05-26 13:54

Re: 400% battery performance improvement?
 
Quote:

Originally Posted by knoxy420 (Post 1212840)
Hey all, just an update on my mysterious/miraculous n900 improvement.

The previous issues were not battery dependent. i can use either of my batteries and get 12+ hours of usage (vs 3-4 hours battery previously). so something in the phone's hardware "cured" itself. I can also now over clock up to 1000MHz and it stays stable. Previously, if I went over 850MHz it would reboot immediately.

I really wish I knew what happened for this improvement.

not an hardware expert by any means but i remember reading somewhere that Smartreflex shouldn't be used with freqencies above 850MHz
is it (was it?) turned on for you?

knoxy420 2012-06-05 16:29

Re: 400% battery performance improvement?
 
Quote:

Originally Posted by misterc (Post 1212859)
not an hardware expert by any means but i remember reading somewhere that Smartreflex shouldn't be used with freqencies above 850MHz
is it (was it?) turned on for you?

Smartreflex is, and was, always turned on. Maybe I'll poke at that after I reflash my n900 for other reasons... :(

knoxy420 2012-06-07 04:38

Re: 400% battery performance improvement?
 
Quote:

Originally Posted by knoxy420 (Post 1217959)
Smartreflex is, and was, always turned on. Maybe I'll poke at that after I reflash my n900 for other reasons... :(

So, just did complete a reflash. Went to DMO & grabbed FAM. Installed power kernel & tools, qcpufreq, & conky.

Cranked the cpu up to 1150, left Smartreflex off. Started installing stuff and checked conky to see it actually hitting full speed. Seems stable so far.

Sweet!

Hurrian 2012-06-08 01:05

Re: 400% battery performance improvement?
 
Quote:

Originally Posted by misterc (Post 1212859)
not an hardware expert by any means but i remember reading somewhere that Smartreflex shouldn't be used with freqencies above 850MHz
is it (was it?) turned on for you?

The newest kernel-power kernels support SR up to 900MHz, which already consumes quite a lot of power in itself.

Quote:

Originally Posted by knoxy420 (Post 1218700)
So, just did complete a reflash. Went to DMO & grabbed FAM. Installed power kernel & tools, qcpufreq, & conky.

Cranked the cpu up to 1150, left Smartreflex off. Started installing stuff and checked conky to see it actually hitting full speed. Seems stable so far.

Sweet!

This'll burn through your battery pretty quickly if you're running high-load apps/browsing all the time.

Not to mention the fact that the SoC has a severely reduced guaranteed operational lifespan at this speed.

knoxy420 2012-06-08 04:10

Re: 400% battery performance improvement?
 
Yeah, Just wanted to see if it would go there. I scaled it back to 900Mhz. Good to know I can use smartreflex at that speed. I usually get ~24hr now with my usage.


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

vBulletin® Version 3.8.8