Reply
Thread Tools
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#21
-_-' 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.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following 2 Users Say Thank You to vi_ For This Useful Post:
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#22
Originally Posted by Switch_ View Post
"Normal" CPU Usage.



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!
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following User Says Thank You to vi_ For This Useful Post:
Switch_'s Avatar
Posts: 601 | Thanked: 549 times | Joined on Mar 2010 @ Redditch, UK
#23
Originally Posted by vi_ View Post
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.
__________________
---<|| Alt + F4 for GOD MODE ||>---
---<|| Deviant Art Linky Linky ||>---
 
Posts: 306 | Thanked: 38 times | Joined on Dec 2009 @ Austria
#24
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
 
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#25
fmtxd ?
You are transmitting FM 24/7?
 
Switch_'s Avatar
Posts: 601 | Thanked: 549 times | Joined on Mar 2010 @ Redditch, UK
#26
Are you running on power-kernel?
__________________
---<|| Alt + F4 for GOD MODE ||>---
---<|| Deviant Art Linky Linky ||>---
 
Posts: 306 | Thanked: 38 times | Joined on Dec 2009 @ Austria
#27
nope, the phone was in offline modus
and i don't transmitting FM 24/7
 
Posts: 306 | Thanked: 38 times | Joined on Dec 2009 @ Austria
#28
Originally Posted by Switch_ View Post
Are you running on power-kernel?
yes 2.6.28.10power46
 
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#29
Originally Posted by StocChr View Post
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%| nowON)
dss |OFF: 0%|RET: 100%|INA: 0%| ON: 0%| nowRET)
cam |OFF: 0%|RET: 100%|INA: 0%| ON: 0%| nowRET)
core |OFF: 0%|RET: 0%|INA: 0%| ON: 100%| nowON)
neon |OFF: 0%|RET: 0%|INA: 0%| ON: 100%| nowON)
mpu |OFF: 0%|RET: 0%|INA: 0%| ON: 100%| nowON)


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.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following 2 Users Say Thank You to vi_ For This Useful Post:
Switch_'s Avatar
Posts: 601 | Thanked: 549 times | Joined on Mar 2010 @ Redditch, UK
#30
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.
__________________
---<|| Alt + F4 for GOD MODE ||>---
---<|| Deviant Art Linky Linky ||>---
 
Reply


 
Forum Jump


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