| Prev |   1     2   3   4     5   13 | Next | Last
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   High Battery Consumption in Standby (https://talk.maemo.org/showthread.php?t=70436)

vi_ 2011-03-01 08:17

Re: High Battery Consumption
 
-_-' dude, run as root.

1. Set phone to offline mode
2. Shutdown phone
3. Take out battery for 10s
4. Take out memory card (if you have one)
5. Reboot phone
6. tell phone to stay offline.
7. wait ~4 minutes (while phone settles (should still be offline mode))
8. open xterm
9. become root
10. start powertop, shut keyboard and press lock slide.
11. leave phone for 50s
12. paste output

From the little you pasted above somthing is keeping your CPU awake, just gotta see what it is.

vi_ 2011-03-01 08:19

Re: High Battery Consumption
 
Quote:

Originally Posted by Switch_ (Post 957869)
"Normal" CPU Usage.

http://i208.photobucket.com/albums/b...0301080852.png

I had this issue previously wehre the proc was never reaching a C4 sleep but on removal of Pedometer Home Widget suddenly battery life returned to normal and my proc spent ~80% of it's time in C4 sleep. It also went from ~30,000 HW wakeups to ~700 in Powertop.

Post up the output of
Code:

lshal | grep battery
so that we can check your battery isn't borked - then reboot, wait for 3 minutes until system is fully loaded, run powertop from terminal, lock the screen and keys and post up the output too.

Oh yeah, I knew you were familiar switch. We have already been through this dance!

Switch_ 2011-03-01 08:23

Re: High Battery Consumption
 
Quote:

Originally Posted by vi_ (Post 957872)
Oh yeah, I knew you were familiar switch. We have already been through this dance!

Hell yeh big boy, we certainly have.....! Fixed it though, good and proper - I can stretch to 2 days normal usage now, thanks to you and @ndi.

StocChr 2011-03-01 08:29

Re: High Battery Consumption
 
here we go...

Code:

Nokia-N900:~# powertop
Powertop 1.13.3
status: Unknown job: pmtrackerdaemon
Sleeping for 6 seconds before sampling
Collecting data for 30 seconds
Sample interval was 00m 30s 16540us

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
    C0 |  9.3% |          |  1150 MHz |  nan% |
    C1 |  90.7% |  118.9ms |
    C2 |  0.0% |          |
    C3 |  0.0% |          |
    C4 |  0.0% |          |

IRQ#    | Activity  | Type          | Name
--------+------------+----------------+---------------------------
    37 |        512 |          INTC | gp
    56 |        155 |          INTC | i2c_omap
    57 |        43 |          INTC | i2c_omap
    86 |        33 |          INTC | mmc1
    21 |        10 |          INTC | SGX
    12 |          7 |          INTC | DMA
    225 |          1 |          GPIO | omap2-onenand

PID#    | Activity  | Name          | Function Entry (Expire)
--------+------------+----------------+---------------------------
      0 |        411 |  <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer)
    674 |        46D|  kernel-config | cpufreq_governor_dbs (delayed_work_timer_fn)
  2777 |        30 |          fmtxd | schedule_hrtimeout_range (hrtimer_wakeup)
  3058 |        19 |    osso-xterm | schedule_hrtimeout_range (hrtimer_wakeup)
    649 |        18 |          dsme | __enqueue_rt_entity (sched_rt_period_timer)
      0 |        14 |  <kernel core> | hrtimer_start (tick_sched_timer)
    691 |          8 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    566 |          5 |          mmcqd | schedule_timeout (process_timeout)
    691 |          4 |      bme_RX-51 | schedule_timeout (process_timeout)
  1001 |          3 |          Xorg | queue_delayed_work (delayed_work_timer_fn)
    649 |          3 |          dsme | do_nanosleep (hrtimer_wakeup)
    566 |          3 |          mmcqd | queue_delayed_work (delayed_work_timer_fn)
      1 |          3D|  <kernel core> | queue_delayed_work (delayed_work_timer_fn)
    964 |          2 |      sgx_perf | queue_delayed_work (delayed_work_timer_fn)
    691 |          2 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    691 |          2 |      bme_RX-51 | do_nanosleep (hrtimer_wakeup)
    917 |          2 |            sh | setup_wb_timer (wb_timer_fn)
    678 |          2D|<kernel module> | queue_delayed_work (delayed_work_timer_fn)
  1001 |          1 |          Xorg | hrtimer_start (it_real_fn)
  1326 |          1 | hildon-desktop | schedule_hrtimeout_range (hrtimer_wakeup)
  3162 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3176 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3190 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3204 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  1323 |          1 |    hildon-home | queue_delayed_work (delayed_work_timer_fn)
  3218 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3232 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3246 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3260 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3274 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3288 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3302 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3316 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3330 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
    716 |          1 |    dbus-daemon | schedule_hrtimeout_range (hrtimer_wakeup)
    13 |          1 |        pdflush | blk_plug_device (blk_unplug_timeout)
  3344 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3118 |          1 |      powertop | do_nanosleep (hrtimer_wakeup)

Power domain activity breakdown
Domain  | % of time spent in states
--------+---------+---------+---------+---------+----------
usbhost |OFF:  0%|RET: 100%|INA:  0%| ON:  0%| now:(RET)
    sgx |OFF:  97%|RET:  0%|INA:  0%| ON:  2%| now:(OFF)
    per |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| now:(ON)
    dss |OFF:  0%|RET: 100%|INA:  0%| ON:  0%| now:(RET)
    cam |OFF:  0%|RET: 100%|INA:  0%| ON:  0%| now:(RET)
  core |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| now:(ON)
  neon |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| now:(ON)
    mpu |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| 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
        |
  ckgen |          CORE |          PERI |          96M
        |          48M |          12M |          54M
        |      EMU_CORE |
    per |        GPIO2 |        GPIO3 |        GPIO4
        |        GPIO5 |        GPIO6 |

Total wakeups  1358,  45.3/s | IRQ  761,  25.4/s | Timers  597,  19.9/s
HW wakeups        0,  0.0/s |    Real gp_timers expired    0,  0.0/s


zimon 2011-03-01 08:35

Re: High Battery Consumption
 
fmtxd ?
You are transmitting FM 24/7?

Switch_ 2011-03-01 08:36

Re: High Battery Consumption
 
Are you running on power-kernel?

StocChr 2011-03-01 08:37

Re: High Battery Consumption
 
nope, the phone was in offline modus
and i don't transmitting FM 24/7 :)

StocChr 2011-03-01 08:37

Re: High Battery Consumption
 
Quote:

Originally Posted by Switch_ (Post 957884)
Are you running on power-kernel?

yes 2.6.28.10power46

vi_ 2011-03-01 09:00

Re: High Battery Consumption
 
Quote:

Originally Posted by StocChr (Post 957879)
here we go...

Code:

Nokia-N900:~# powertop
Powertop 1.13.3
status: Unknown job: pmtrackerdaemon
Sleeping for 6 seconds before sampling
Collecting data for 30 seconds
Sample interval was 00m 30s 16540us

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
    C0 |  9.3% |          |  1150 MHz |  nan% |
    C1 |  90.7% |  118.9ms |
    C2 |  0.0% |          |
    C3 |  0.0% |          |
    C4 |  0.0% |          |

IRQ#    | Activity  | Type          | Name
--------+------------+----------------+---------------------------
    37 |        512 |          INTC | gp
    56 |        155 |          INTC | i2c_omap
    57 |        43 |          INTC | i2c_omap
    86 |        33 |          INTC | mmc1
    21 |        10 |          INTC | SGX
    12 |          7 |          INTC | DMA
    225 |          1 |          GPIO | omap2-onenand

PID#    | Activity  | Name          | Function Entry (Expire)
--------+------------+----------------+---------------------------
      0 |        411 |  <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer)
    674 |        46D|  kernel-config | cpufreq_governor_dbs (delayed_work_timer_fn)
  2777 |        30 |          fmtxd | schedule_hrtimeout_range (hrtimer_wakeup)
  3058 |        19 |    osso-xterm | schedule_hrtimeout_range (hrtimer_wakeup)
    649 |        18 |          dsme | __enqueue_rt_entity (sched_rt_period_timer)
      0 |        14 |  <kernel core> | hrtimer_start (tick_sched_timer)
    691 |          8 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    566 |          5 |          mmcqd | schedule_timeout (process_timeout)
    691 |          4 |      bme_RX-51 | schedule_timeout (process_timeout)
  1001 |          3 |          Xorg | queue_delayed_work (delayed_work_timer_fn)
    649 |          3 |          dsme | do_nanosleep (hrtimer_wakeup)
    566 |          3 |          mmcqd | queue_delayed_work (delayed_work_timer_fn)
      1 |          3D|  <kernel core> | queue_delayed_work (delayed_work_timer_fn)
    964 |          2 |      sgx_perf | queue_delayed_work (delayed_work_timer_fn)
    691 |          2 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    691 |          2 |      bme_RX-51 | do_nanosleep (hrtimer_wakeup)
    917 |          2 |            sh | setup_wb_timer (wb_timer_fn)
    678 |          2D|<kernel module> | queue_delayed_work (delayed_work_timer_fn)
  1001 |          1 |          Xorg | hrtimer_start (it_real_fn)
  1326 |          1 | hildon-desktop | schedule_hrtimeout_range (hrtimer_wakeup)
  3162 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3176 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3190 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3204 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  1323 |          1 |    hildon-home | queue_delayed_work (delayed_work_timer_fn)
  3218 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3232 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3246 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3260 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3274 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3288 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3302 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3316 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3330 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
    716 |          1 |    dbus-daemon | schedule_hrtimeout_range (hrtimer_wakeup)
    13 |          1 |        pdflush | blk_plug_device (blk_unplug_timeout)
  3344 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
  3118 |          1 |      powertop | do_nanosleep (hrtimer_wakeup)

Power domain activity breakdown
Domain  | % of time spent in states
--------+---------+---------+---------+---------+----------
usbhost |OFF:  0%|RET: 100%|INA:  0%| ON:  0%| now:(RET)
    sgx |OFF:  97%|RET:  0%|INA:  0%| ON:  2%| now:(OFF)
    per |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| now:(ON)
    dss |OFF:  0%|RET: 100%|INA:  0%| ON:  0%| now:(RET)
    cam |OFF:  0%|RET: 100%|INA:  0%| ON:  0%| now:(RET)
  core |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| now:(ON)
  neon |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| now:(ON)
    mpu |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| 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
        |
  ckgen |          CORE |          PERI |          96M
        |          48M |          12M |          54M
        |      EMU_CORE |
    per |        GPIO2 |        GPIO3 |        GPIO4
        |        GPIO5 |        GPIO6 |

Total wakeups  1358,  45.3/s | IRQ  761,  25.4/s | Timers  597,  19.9/s
HW wakeups        0,  0.0/s |    Real gp_timers expired    0,  0.0/s



C1 | 90.7% | 118.9ms |

So CPU is never going below C2.

37 | 512 | INTC | gp

There is too high a level of activity on gp (GPIO?)

0 | 411 | <kernel core> | tick_nohz_restart_sched_tick

Kernel keeps awakening the computer (due to hardware wakeup)

per |OFF: 0%|RET: 0%|INA: 0%| ON: 100%| now:(ON)
dss |OFF: 0%|RET: 100%|INA: 0%| ON: 0%| now:(RET)
cam |OFF: 0%|RET: 100%|INA: 0%| ON: 0%| now:(RET)
core |OFF: 0%|RET: 0%|INA: 0%| ON: 100%| now:(ON)
neon |OFF: 0%|RET: 0%|INA: 0%| ON: 100%| now:(ON)
mpu |OFF: 0%|RET: 0%|INA: 0%| ON: 100%| now:(ON)


All this **** should be switched off.

It looks like you are running a program/process that is (possibly) polling the hardware (IRQ counts is WAAAY too high).

As to which program that is I cannot say. Things like advanced battery monitor, desktop widgets that are set to update all the time.

You have removed all widgets from the desktop right? You did wait at least 4 minutes before running powertop right?

Can you post the output of the top command? Just type

Code:

top > top_out.txt
and upload the file.

Switch_ 2011-03-01 09:03

Re: High Battery Consumption
 
Secondary to the above power46 is in -devel and shouldn't be installed as it is not fully optimised for end-users. power42 is the latest stable release of the kernel in -extras.


| Prev |   1     2   3   4     5   13 | Next | Last
All times are GMT. The time now is 20:19.

vBulletin® Version 3.8.8