Reply
Thread Tools
Posts: 83 | Thanked: 18 times | Joined on Jun 2008
#31
My battery life is the same or possibly better with Diablo.

Those having trouble, suspect that a program or process is stuck in some loop and eating up processor power and preventing it from going into one of the power save modes.

There are several ways to test for this:

1) Install and observe the status-bar load applet

2) From an X-term shell, run "top" and observe the CPU% of the top few processes
("q" quits "top" other commands can be found on the internet, but note that
this is the stripped down "busybox" version of "top")

3) Install and observe "conky" (a discusion found in the "apps" section of ITT).
The problem with conky is that it uses a little processing power itself so will
drain the battery too, but only while you are running it.

Once the resource hogging process is found, come back with one of those postings that says "Program/Process xxx is hogging up 99% of my processor usage", and we can then work from there.

In the meanwhile, keep doing updates, and perhaps the problem will just go away. My Diablo upgrade was fairly problematic. At several times I had things crashing and locking up in loops until I got most of the 3rd party software installed in a stable working order. I still have a few things not working, but at least now the list is short.
 
Baloo's Avatar
Posts: 276 | Thanked: 160 times | Joined on Jul 2007 @ Bath, UK
#32
Originally Posted by wartstew View Post
2) From an X-term shell, run "top" and observe the CPU% of the top few processes
("q" quits "top" other commands can be found on the internet, but note that
this is the stripped down "busybox" version of "top")
Good advice but the screen size makes top almost unusable as the process name if practically off the screen.
__________________
LinuxUK.org - http://www.linuxuk.org
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#33
The zoom +/- keys always work...
 
Baloo's Avatar
Posts: 276 | Thanked: 160 times | Joined on Jul 2007 @ Bath, UK
#34
Originally Posted by Benson View Post
The zoom +/- keys always work...
Indeed, makes it a whole lot better
__________________
LinuxUK.org - http://www.linuxuk.org
 
Baloo's Avatar
Posts: 276 | Thanked: 160 times | Joined on Jul 2007 @ Bath, UK
#35
On my tablet it seems modest is hogging the CPU at 96% constantly
__________________
LinuxUK.org - http://www.linuxuk.org
 
khalid's Avatar
Posts: 69 | Thanked: 12 times | Joined on Apr 2007 @ Colorado, USA
#36
Originally Posted by wartstew View Post
2) From an X-term shell, run "top" and observe the CPU% of the top few processes
("q" quits "top" other commands can be found on the internet, but note that
this is the stripped down "busybox" version of "top")
This will catch processes that are running continuously and eating up CPU. It will not catch processes that come in periodically, eat up lots of CPU and go away. Whenever I have run top, I see CPU utilization around 3%-4% and no process seems to be hogging CPU, yet my battery dies in 3 days. How would one catch a transient periodic process?
__________________
N800 running 5.2008.43-7
Debian Developer
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#37
XTerm as well?? I have a habit of leaving an xterm running all the time. I will try closing it every time and see if my battery lasts more than 3 days. Thanks!
Yeah it does something timer related and I'm embarrassed to say I can't remember or find a link to the bug/explanation. Can anyone remember what it was? I seem to remember it was possible to switch this behaviour off by setting/unsetting some envvar or similar :S
 
khalid's Avatar
Posts: 69 | Thanked: 12 times | Joined on Apr 2007 @ Colorado, USA
#38
Originally Posted by Baloo View Post
On my tablet it seems modest is hogging the CPU at 96% constantly
modest does not even work for me for google mail (maybe it will work when I am not behind a firewall). So that is one less battery hog for me
__________________
N800 running 5.2008.43-7
Debian Developer
 
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#39
what i found myself doing after reading this thread was to shut down all of my desktop applets, except homecpuspeed. then i observe.

its will drop to about 164 mips. then rise again to 397 mips. then it may drop again to 164, and rise again. but sometimes it will basically lock at 397.

at the same time i have load-applet in the statusbar. when homecpuspeed locks at 397, i will see a load-applet pulse between 1 and 2 blocks. and this is just me sitting there looking at the desktop.

now, if i run something like say notes, load-applet will show a steady low cpu while notes is just sitting there doing nothing.

if i then close down notes, homecpuspeed will show 397 for a while, then 164, and then go back up to 397 and sit there, or pulse between 397 and 164. most likely it will just go to 397 and sit there...

something is eating away in there, but all i can find that is doing something is hildon-desktop...

Last edited by tso; 2008-07-11 at 22:30.
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#40
Well, you're running two applets that graphically display stuff to watch load and CPU; I'd try disabling those and monitoring it with a script that loops, dumping data to a file (so as not even to incur CPU load for network traffic ala ssh) and see if it does settle. Keep in mind that the waking up to run the applets might occur before it samples the CPU... it could be 164 99% of the time. (Which of course applies to any method of measuring it...)
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:07.