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)

slender 2011-03-01 13:45

Re: High Battery Consumption
 
btw.
"normal" idle usage is something like in this pic on right side:
http://img684.imageshack.us/img684/9...0100412103.png
Still some spikes from cpu that could be probably from some daemon.

Just for reference.

.edit
And when comparing remember to check x-scaling

StocChr 2011-03-01 14:13

Re: High Battery Consumption
 
BIG NEWS

after backup the full system with backupmenu and multiboot i had to reflash the stock kernel via maemo flasher

i will post the powertop output in a few minutes

i think we got it.... stay tuned

StocChr 2011-03-01 14:19

Re: High Battery Consumption
 
can someone of the pro's tell me, if the output is normal yet...
i've already made friends with a reflash,
now i'm in the conflict of conscience!!

powertop: ( no widgets, no sdcard, offline and restarted )

Code:

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 65979us

C#  | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
C0 |  10.0% |  |  600 MHz |  63.3% |
C1 |  0.0% |  0.2ms |  550 MHz |  0.0% |
C2 |  3.1% |  9.1ms |  500 MHz |  0.4% |
C3 |  13.2% |  146.5ms |  250 MHz |  36.3% |
C4 |  73.8% |  887.1ms |

IRQ#  | Activity  | Type  | Name
--------+------------+----------------+---------------------------
37 |  504 |  INTC | gp
56 |  204 |  INTC | i2c_omap
11 |  118 |  INTC | prcm
86 |  55 |  INTC | mmc1
57 |  41 |  INTC | i2c_omap
12 |  17 |  INTC | DMA
21 |  10 |  INTC | SGX

PID#  | Activity  | Name  | Function Entry (Expire)
--------+------------+----------------+---------------------------
0 |  440 |  <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer)
1 |  32D|  preinit | cpufreq_governor_dbs (delayed_work_timer_fn)
3193 |  18 |  osso-xterm | schedule_hrtimeout_range (hrtimer_wakeup)
757 |  17 |  dsme | __enqueue_rt_entity (sched_rt_period_timer)
0 |  10 |  <kernel core> | hrtimer_start (tick_sched_timer)
792 |  7 |  bme_RX-51 | sys_timer_settime (posix_timer_fn)
44 |  6 |  mmcqd | schedule_timeout (process_timeout)
44 |  4 |  mmcqd | queue_delayed_work (delayed_work_timer_fn)
936 |  2 |  Xorg | hrtimer_start (it_real_fn)
892 |  2 |  sgx_perf | queue_delayed_work (delayed_work_timer_fn)
848 |  2 |  sh | setup_wb_timer (wb_timer_fn)
757 |  2 |  dsme | do_nanosleep (hrtimer_wakeup)
1 |  2D|  <kernel core> | queue_delayed_work (delayed_work_timer_fn)
792 |  2 |  bme_RX-51 | sys_timer_settime (posix_timer_fn)
792 |  2 |  bme_RX-51 | do_nanosleep (hrtimer_wakeup)
792 |  2 |  bme_RX-51 | schedule_timeout (process_timeout)
1194 |  2 |  signond | futex_wait (hrtimer_wakeup)
3321 |  1 |  sleep | do_nanosleep (hrtimer_wakeup)
3335 |  1 |  sleep | do_nanosleep (hrtimer_wakeup)
3349 |  1 |  sleep | do_nanosleep (hrtimer_wakeup)
804 |  1 |  dbus-daemon | queue_delayed_work (delayed_work_timer_fn)
3363 |  1 |  sleep | do_nanosleep (hrtimer_wakeup)
3377 |  1 |  sleep | do_nanosleep (hrtimer_wakeup)
3391 |  1 |  sleep | do_nanosleep (hrtimer_wakeup)
3405 |  1 |  sleep | do_nanosleep (hrtimer_wakeup)
3419 |  1 |  sleep | do_nanosleep (hrtimer_wakeup)
1194 |  1 |  signond | schedule_hrtimeout_range (hrtimer_wakeup)
44 |  1 |  mmcqd | cfq_completed_request (cfq_idle_slice_timer)
3433 |  1 |  sleep | do_nanosleep (hrtimer_wakeup)
3447 |  1 |  sleep | do_nanosleep (hrtimer_wakeup)
14 |  1 |  pdflush | blk_plug_device (blk_unplug_timeout)
3461 |  1 |  sleep | do_nanosleep (hrtimer_wakeup)
3475 |  1 |  sleep | do_nanosleep (hrtimer_wakeup)
3489 |  1 |  sleep | do_nanosleep (hrtimer_wakeup)
3249 |  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:  97%|RET:  0%|INA:  0%| ON:  2%| now:(OFF) per |OFF:  86%|RET:  3%|INA:  0%| ON:  10%| 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:  73%|RET:  12%|INA:  1%| ON:  12%| now:(ON) neon |OFF:  73%|RET:  13%|INA:  3%| ON:  10%| now:(ON) mpu |OFF:  73%|RET:  13%|INA:  3%| ON:  10%| 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 |
ckgen |  CORE |  PERI |  96M
|  48M |  12M |  54M
|  EMU_CORE |
per |  GPIO2 |  GPIO3 |  GPIO4
|  GPIO5 |  GPIO6 |

Total wakeups  1519,  50.6/s | IRQ  949,  31.6/s | Timers  570,  19.0/s HW wakeups  118,  3.9/s |  Real gp_timers expired  248,  8.3/s

any hints what's now to do?!

slender 2011-03-01 14:23

Re: High Battery Consumption
 
Run powertop couple of times (to minimize margin for error) to get idle wakeups and use n900 for awhile and run powertop again. I mean that test your setup for couple of days before making any conclusions.

.edit
From here you can look for references:
http://wiki.maemo.org/N900_software_...ement#Powertop
I would say that something like ~500 wakeups and mostly in C4 state is pretty much ok for completely idle N900. This is not scientific measurement just stuff from my head.

StocChr 2011-03-01 14:27

Re: High Battery Consumption
 
ok, i will uninstall not used things
will set up the kernel power and will observe the system with powertop and batterygraph

btw. how to clean up the maemo-user-package-list

vi_ 2011-03-01 14:31

Re: High Battery Consumption
 
Please dont tell me you re-flashed both emmc and rootfs then DID NOT restore with backup menu?

StocChr 2011-03-01 14:47

Re: High Battery Consumption
 
i created a backup with backupmenu
then i flashed only the kernel

Code:

flasher-3.5 -F <firmware-image> --flash-only=kernel -f -R
no emmc no rootfs reflash

StocChr 2011-03-02 13:18

Re: High Battery Consumption
 
after several problems, i did yesterday night a full reset.
i flashed the eMMC and the rootfs

i installed all programms, overclocked, cssu, ...

Code:

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 29606us

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
    C0 |  0.7% |          |  1150 MHz |  nan% |
    C1 |  0.0% |          |
    C2 |  1.6% |    7.8ms |
    C3 |  4.0% |  63.4ms |
    C4 |  93.7% | 2343.4ms |

IRQ#    | Activity  | Type          | Name
--------+------------+----------------+---------------------------
    56 |        198 |          INTC | i2c_omap
    37 |        76 |          INTC | gp
    11 |        50 |          INTC | prcm
    86 |        35 |          INTC | mmc1
    57 |        22 |          INTC | i2c_omap
    21 |          9 |          INTC | SGX
    12 |          4 |          INTC | DMA

PID#    | Activity  | Name          | Function Entry (Expire)
--------+------------+----------------+---------------------------
      0 |        23 |  <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer)
  2205 |        19 |    osso-xterm | schedule_hrtimeout_range (hrtimer_wakeup)
      0 |        19 |  <kernel core> | hrtimer_start (tick_sched_timer)
    38 |        16D|            awk | cpufreq_governor_dbs (delayed_work_timer_fn)
    600 |          7 |          mmcqd | schedule_timeout (process_timeout)
  1018 |          4 |          Xorg | queue_delayed_work (delayed_work_timer_fn)
    897 |          4 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    986 |          3 |      sgx_perf | queue_delayed_work (delayed_work_timer_fn)
    600 |          3 |          mmcqd | queue_delayed_work (delayed_work_timer_fn)
    678 |          3 |          dsme | do_nanosleep (hrtimer_wakeup)
    678 |          3 |          dsme | __enqueue_rt_entity (sched_rt_period_timer)
      1 |          3D|  <kernel core> | queue_delayed_work (delayed_work_timer_fn)
  1018 |          2 |          Xorg | hrtimer_start (it_real_fn)
    897 |          2 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    897 |          2 |      bme_RX-51 | do_nanosleep (hrtimer_wakeup)
    704 |          2D|<kernel module> | queue_delayed_work (delayed_work_timer_fn)
    897 |          2 |      bme_RX-51 | schedule_timeout (process_timeout)
    30 |          1 |          mount | setup_wb_timer (wb_timer_fn)
    14 |          1 |        pdflush | blk_plug_device (blk_unplug_timeout)
    600 |          1 |          mmcqd | schedule_timeout (process_timeout)
      1 |          1 |  <kernel core> | inet_initpeers (peer_check_expire)
      0 |          1 |  <kernel core> | queue_delayed_work (delayed_work_timer_fn)
  2225 |          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:  97%|RET:  0%|INA:  0%| ON:  2%| now:(OFF)
    per |OFF:  97%|RET:  1%|INA:  0%| ON:  0%| 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:  93%|RET:  2%|INA:  0%| ON:  3%| now:(ON)
  neon |OFF:  93%|RET:  4%|INA:  1%| ON:  0%| now:(ON)
    mpu |OFF:  93%|RET:  4%|INA:  1%| 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 |
  ckgen |          CORE |          PERI |          96M
        |          48M |          12M |          54M
        |      EMU_CORE |
    per |        GPIO2 |        GPIO3 |        GPIO4
        |        GPIO5 |        GPIO6 |

Total wakeups  517,  17.2/s | IRQ  394,  13.1/s | Timers  123,  4.1/s
HW wakeups      50,  1.7/s |    Real gp_timers expired  76,  2.5/s

cheers

zimon 2011-03-02 16:11

Re: High Battery Consumption
 
yes. now it seems to stay at C4 level as it should when idle.

p900 2011-03-02 17:48

Re: High Battery Consumption
 
This is my powertop output in case someone can help me find what drains my battery.
it's not a serious situation but I feel my battery can perform better (around 15% more)

Code:

Powertop 1.13.3
sh: status: not found
Sleeping for 11 seconds before sampling
Collecting data for 30 seconds
Sample interval was 00m 30s 16297us

C# | Ratio | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
C0 | 1.5% | | 600 MHz | 0.0% |
C1 | 1.3% | 3.8ms | 550 MHz | 0.0% |
C2 | 77.1% | 127.2ms | 500 MHz | 0.0% |
C3 | 14.3% | 538.2ms | 250 MHz | 100.0% |
C4 | 5.7% | 569.9ms |

IRQ# | Activity | Type | Name
--------+------------+----------------+---------------------------
57 | 289 | INTC | i2c_omap
56 | 171 | INTC | i2c_omap
37 | 161 | INTC | gp
11 | 137 | INTC | prcm
21 | 5 | INTC | SGX
86 | 2 | INTC | mmc1

PID# | Activity | Name | Function Entry (Expire)
--------+------------+----------------+---------------------------
0 | 296 | <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer)
38 | 86D| awk | cpufreq_governor_dbs (delayed_work_timer_fn)
1204 | 60 |hildon-status-m | schedule_hrtimeout_range (hrtimer_wakeup)
0 | 39 | <kernel core> | hrtimer_start (tick_sched_timer)
793 | 21 | mce | schedule_hrtimeout_range (hrtimer_wakeup)
3820 | 19 | osso-xterm | schedule_hrtimeout_range (hrtimer_wakeup)
709 | 12 | bme_RX-51 | sys_timer_settime (posix_timer_fn)
3786 | 8 | skyhost | futex_wait (hrtimer_wakeup)
593 | 8 | mmcqd | schedule_timeout (process_timeout)
3780 | 7 | skyhost | do_nanosleep (hrtimer_wakeup)
546 | 7 | wl12xx | schedule_timeout (process_timeout)
546 | 7 | wl12xx | queue_delayed_work (delayed_work_timer_fn)
593 | 6 | mmcqd | queue_delayed_work (delayed_work_timer_fn)
709 | 6 | bme_RX-51 | schedule_timeout (process_timeout)
10 | 4 | omap2_mcspi | inet_twsk_schedule (inet_twdr_hangman)
3771 | 4 |telepathy-pecan | schedule_hrtimeout_range (hrtimer_wakeup)
593 | 4 | mmcqd | cfq_completed_request (cfq_idle_slice_timer)
1215 | 3 | hildon-desktop | queue_delayed_work (delayed_work_timer_fn)
807 | 3 | sgx_perf | queue_delayed_work (delayed_work_timer_fn)
2801 | 3 | browserd | futex_wait (hrtimer_wakeup)
3771 | 3 |telepathy-pecan | neigh_add_timer (neigh_timer_handler)
793 | 3 | mce | tsc2005_start_scan (tsc2005_esd_timer_handler)
1258 | 3 | wlancond | ieee80211_ioctl_siwpower (ieee80211_dynamic_ps_timer)
709 | 2 | bme_RX-51 | do_nanosleep (hrtimer_wakeup)
1 | 2D| <kernel core> | queue_delayed_work (delayed_work_timer_fn)
665 | 2 | dsme | do_nanosleep (hrtimer_wakeup)
665 | 2 | dsme | __enqueue_rt_entity (sched_rt_period_timer)
862 | 1 | Xorg | hrtimer_start (it_real_fn)
862 | 1 | Xorg | queue_delayed_work (delayed_work_timer_fn)
709 | 1 | bme_RX-51 | sys_timer_settime (posix_timer_fn)
1204 | 1 |hildon-status-m | queue_delayed_work (delayed_work_timer_fn)
593 | 1 | mmcqd | schedule_timeout (process_timeout)
546 | 1 | wl12xx | schedule_timeout (process_timeout)
3771 | 1 |telepathy-pecan | sk_reset_timer (tcp_write_timer)
1 | 1 | <kernel core> | inet_initpeers (peer_check_expire)
3788 | 1 | skyhost | schedule_hrtimeout_range (hrtimer_wakeup)
3964 | 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: 99%|RET: 0%|INA: 0%| ON: 0%| now:(OFF)
per |OFF: 20%|RET: 77%|INA: 0%| ON: 2%| 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: 96%| ON: 3%| now:(ON)
neon |OFF: 5%|RET: 14%|INA: 77%| ON: 2%| now:(ON)
mpu |OFF: 5%|RET: 14%|INA: 77%| ON: 2%| 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 | MMC2 |
core3 | USBTLL
wkup | GPT1 | 32KSYNC | GPIO1
| WDT1 |
ckgen | CORE | PERI | 96M
| 48M | 12M | 54M
| EMU_CORE |
dss | DSS_IDLE
per | GPIO2 | GPIO3 | GPIO4
| GPIO5 | GPIO6 |

Total wakeups 1395, 46.5/s | IRQ 765, 25.5/s | Timers 630, 21.0/s
HW wakeups 137, 4.6/s | Real gp_timers expired 161, 5.4/s
~ $



All times are GMT. The time now is 01:54.

vBulletin® Version 3.8.8