[maemo-users] Battery Life

From: Eero Tamminen eero.tamminen at nokia.com
Date: Thu Aug 16 17:29:42 EEST 2007

ext Michael Thompson wrote:
> Hi,
>     The battery life of the N800 seems to depend a lot on the applications
> that are running, I guess in particular when it is idling. The result of
> this is that the battery indicator can be very inaccurate, telling me it
> should last for days and it will then die in hours.
> Ideally I'd like this not to be the case but in the interim I'd like to know
> which application is causing the problem. When will Nokia expose the current
> consumption information, in for instance /proc? Without this information we
> cannot determine which application is the culprit much less set about
> improving the performance.
> Is there another indirect method that could be used, perhaps the rate of
> interrupts for each application?

Just use "top" and "strace".  "top" is part of busybox and strace is
in Maemo repositories.  If you're not interacting with the application
(and it's not e.g. playing music), it should not do anything.

You can monitor all applications with something like:
  strace $(cd /proc; for pid in [0-9]*; do
    if [ $pid -gt 500 ] && [ $pid != $$ ]; then echo " -p $pid"; fi;

Instead of 500 you can select suitable value from "ps" output above
which PID you want to monitor all processes.

	- Eero

More information about the maemo-users mailing list