Battery Life

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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;
  done)

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


	- Eero



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux