maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Strange problem with battery life (https://talk.maemo.org/showthread.php?t=90140)

sonofabit 2013-05-17 12:53

Strange problem with battery life
 
5 Attachment(s)
Hello!

I've been searching for recent information about it, but I can't seem to find anyone else having similar problem... Which is: my battery started to drain like crazy! When I checked battery-eye it seems it started after 4-5 may. And I can't recall installing anything that could cause such drainage. Last backup is from 8th may (and done because of dropN900). And it weights 124MB if it changes anything. Tried finding the culprit with top, powertop and found nothing really interesting (nothing constantly on or new, weird process) most usage has
Code:

/usr/bin/Xorg -logfile /tmp/Xorg.0.log
next one is changing - sometimes top, sometimes hildon-status-menu or desktop. but 1%CPU at max.

http://pastebin.com/5WqmdyCp here's Xorg.0.log. I can see some errors, but they tell me nothing...

P.S. No - no permanent connection. I've purposefully disabled connections for a whole day (except three or four short calls)... And with old battery drainage i could use 3g, listen to music and do all things and still I did get more than 2 days!

P.S.2 I've got two batteries and both have allmost the same drain time.

Wikiwide 2013-05-17 14:09

Re: Strange problem with battery life
 
I have a problem with N900 battery charge, too. I had BatteryGraph installed, I purged it, this strange problem didn't change.
Facts: the battery-status hildon-menu indicator can show you red battery and "Battery low" notification when, according to bnf, the battery charge is about 30%-50%. And, after leaving the device turned-on, cellular-radio-on, wifi-off, no-windows-open, no-charging, no-usb, no-bluetooth, no-GPS... The battery indicator returns to normal, bnf-compliant, green value. And this nerves-destructing event can repeat itself several times during one short trip. I don't know the reason. I can only thank bnf for supplying me with plausible information.
Best wishes.
_________________
Per aspera ad astra...

madry72 2013-05-17 16:46

Re: Strange problem with battery life
 
Hi
sonofabit: Check this out in x-term and post a powertop.txt content.

sleep 60 && powertop >> powertop.txt

Wikiwide: I had similar problem but in my case, n900 was turning off every time the red led and notification of low battery state appeared. After some researching I found out that power amlifier ( gazoo ) was the culprit. It was spontaneously dropping down the voltage below 3.2v what was causing shuting down. Puting a sim card above gazoo helped. It can be also related to no telephony problem, because when I stoped bme and voltage dropped down the "no sim card" icon appeared :(
Did you have problem any of this problems ?

sonofabit 2013-05-18 16:31

Re: Strange problem with battery life
 
1 Attachment(s)
@Wikiwide - I'd say your battery is dying... But my problem is a tad different - it started happening overnight.

@madry72 - http://pastebin.com/hhNUuZgP here's powertop. Interestingly enough my mmc is 90% empty. I will take it out and test battery life without it, but I've had it in from the begging. And it's only 2GB one.

But what seems odd is my today's (or rather tonight's) batterygraph slope... As I came home wasted out of my mind I didn't want anyone bothering me, but I'm not the turned-off-phone type of guy, so I've decided to set silent profile without vibration... And strangely enough slope was almost flat!

madry72 2013-05-18 18:27

Re: Strange problem with battery life
 
It think that your battery problem is just related to your every day use. Powertop output you've posted shows quite good idle state, so for now there shoud not be any battery drainage. You can repeat test and check powertop without sd card. Also install powertop from repos. Version you already have must preinstalled with maemo. Seems that it hasn't got some features.

sonofabit 2013-05-19 12:50

Re: Strange problem with battery life
 
1 Attachment(s)
Quote:

Originally Posted by madry72 (Post 1344635)
It think that your battery problem is just related to your every day use. Powertop output you've posted shows quite good idle state, so for now there shoud not be any battery drainage.

Well... no... My daily usage is shown on screenshot. I'm not talking/texting much, but I'm often connected (for chatting). And typical 2day runtime is what I want to achieve. But less than a day?

Quote:

You can repeat test and check powertop without sd card. Also install powertop from repos. Version you already have must preinstalled with maemo. Seems that it hasn't got some features.
I will test it and download powertop and post results.

acrux 2013-05-20 06:37

Re: Strange problem with battery life
 
Quote:

Originally Posted by sonofabit (Post 1344312)
I've been searching for recent information about it, but I can't seem to find anyone else having similar problem... Which is: my battery started to drain like crazy!
P.S.2 I've got two batteries and both have allmost the same drain time.

Well, you are not alone :)
I have exactly the same situation and it started on Thursday, May 16th. My typical runtime has been also 2 days (about 48 hours), but now it is barely about 18 hours... Command "top" shows usual processes and the CPU load is the same as peviously. And I also have 2 batteries and they behave the same...

The only thing I did on Thursday, was that I upgraded to kernel-power-settings 0.17 from extras-devel and as I did "apt-get upgrade", I also got updates for libmagic1, gstreamer0.10-maemo-xiph and file packages. After every reboot I load the "default" profile with kernel-power-settings. After discovering the battery drain I downgraded all these packages to their previous versions, but the problem remains...

Could it be possible that kernel-power-settings 0.17 introduced some change that is not reverted by downgrading the package? Or are both of my batteries from the same series and their lifetime has just gone to the finish??

Any ideas what to check further?

Alecsandru 2013-05-20 07:18

Re: Strange problem with battery life
 
what king of config do you use for your kernel-power? can you post-it here? maybe you overvoltage the cpu , that's why the drain

sonofabit 2013-05-20 09:36

Re: Strange problem with battery life
 
@acrux - try switching profile to silent w/o vibrations and back (maybe give it some time). Also take out your SD card. I haven't done much else (apart of what I've already mentioned) but my runtime have increased abit...

@Alecsandru - Well... I don't think it's about CPU. Why? Because if I'd have overpowered CPU it'd at least get warmer... And it haven't. Also what's funny is that that slope wasn't changing much even with 3G...

Alecsandru 2013-05-20 10:03

Re: Strange problem with battery life
 
I don't know if it's a placebo , but my battery life seems to last longer with 8gb ext4 home +1gb swap+kp52+thumb1 +starving profile

peterleinchen 2013-05-20 12:00

Re: Strange problem with battery life
 
Quote:

Originally Posted by acrux (Post 1344943)
Well, you are not alone :)
I have exactly the same situation and it started on Thursday, May 16th. May

Count me in to this mysterious battery thing! :confused:
It started on Thursday and I did not get it.
Neither top nor powertop revealed anything, but bq27 (bnf) told
me the drain. I did a full power cycle which did
not help, I killed once gst-launch. Nothing helped.
Idid not change config at all.

It stopped somehow on Friday night...

Some hidden easter-egg or what?

acrux 2013-05-21 08:51

Re: Strange problem with battery life
 
No good news here. Swiched the phone on yesterday with full battery at 18:00 and today at 9:15 had to attach the charger - running time about 15 hours.
My today's powertop output:
Code:

Powertop 1.13.3
Sleeping for 11 seconds before sampling
Collecting data for 30 seconds
Sample interval was 00m 30s 20171us

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
    C0 |  0.2% |          |  1150 MHz |  nan% |
    C1 |  0.0% |          |
    C2 |  25.9% |  210.3ms |
    C3 |  0.5% |  67.7ms |
    C4 |  73.4% | 3148.2ms |

IRQ#    | Activity  | Type          | Name
--------+------------+----------------+---------------------------
    56 |        203 |          INTC | i2c_omap
    57 |        34 |          INTC | i2c_omap
    37 |        28 |          INTC | gp
    11 |        27 |          INTC | prcm

PID#    | Activity  | Name          | Function Entry (Expire)
--------+------------+----------------+---------------------------
      0 |        12 |  <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer)
    737 |          6 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    38 |          6D|            awk | cpufreq_governor_dbs (delayed_work_timer_fn)
      1 |          3D|  <kernel core> | queue_delayed_work (delayed_work_timer_fn)
    737 |          2 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    737 |          2 |      bme_RX-51 | do_nanosleep (hrtimer_wakeup)
  1783 |          2D|<kernel module> | queue_delayed_work (delayed_work_timer_fn)
    737 |          2 |      bme_RX-51 | schedule_timeout (process_timeout)
    702 |          2 |          dsme | do_nanosleep (hrtimer_wakeup)
    702 |          2 |          dsme | __enqueue_rt_entity (sched_rt_period_timer)
    874 |          2 |          Xorg | schedule_hrtimeout_range (hrtimer_wakeup)
    780 |          1 |          hald | schedule_hrtimeout_range (hrtimer_wakeup)
      0 |          1 |  <kernel core> | hrtimer_start (tick_sched_timer)
  1062 |          1 |          iphbd | schedule_hrtimeout_range (hrtimer_wakeup)
  2121 |          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:  73%|RET:  25%|INA:  0%| ON:  0%| now:(ON)
    dss |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| now:(ON)
    cam |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)
  core |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| now:(ON)
  neon |OFF:  73%|RET:  0%|INA:  25%| ON:  0%| now:(ON)
    mpu |OFF:  73%|RET:  0%|INA:  25%| ON:  0%| 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 |
    dss |      DSS_STBY |      DSS_IDLE
    per |        GPIO2 |        GPIO3 |        GPIO4
        |        GPIO5 |        GPIO6 |

Total wakeups  337,  11.2/s | IRQ  292,  9.7/s | Timers  45,  1.5/s
HW wakeups      27,  0.9/s |    Real gp_timers expired  28,  0.9/s

Any comments?

acrux 2013-05-26 13:39

Re: Strange problem with battery life
 
Quote:

Originally Posted by peterleinchen (Post 1345101)
It stopped somehow on Friday night...

I can only add, that after annoying week with twice charging the battery during a day it somehow stopped also on Friday afternoon as just after the last charging cycle the decharging rate slope in battery-eye returned by itselt to its normal in my use - 2 days. Now it is more than 48 hours already and still 18% left. If anybody could explain, what it was...???

cr0c0 2013-05-29 00:21

Re: Strange problem with battery life
 
I did not think much of it while it was happening since my N900 is not my main phone anymore. It's still on 24/7, but it sees very little use. A while ago I noticed a similar battery drain, with battery-eye reporting strange discharges, and the battery barely lasting a day without ANY use. Recently though everything returned to normal.

Sorry if I'm being vague, I can pull the battery-eye screen caps if they're needed.

Now one thing I noticed was the network positioning being enabled even though I could swear it was one of the first things I disabled when I installed the N900 from scratch.


All times are GMT. The time now is 12:55.

vBulletin® Version 3.8.8