maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Fix battery time from under 7 hours to over 9 days! (https://talk.maemo.org/showthread.php?t=36438)

TA-t3 2009-12-16 09:38

Re: Fix battery time from under 7 hours to over 9 days!
 
I mentioned this in another thread, but I suddenly have moved to a battery issue out of the blue. The cause? Pulseaudio consuming CPU like when the equalizer is running (16-18%), it even drops to 9-10% with headphones in. As normal, if _playing_ something. Which I'm not doing. I don't use the media player in general. There's no obvious reason why pulseaudio should run its equalizer.

javispedro 2009-12-16 09:46

Re: Fix battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by twaelti (Post 430151)
It's using SDL. Which is not as power-saving friendly as other solutions I was told (my mClock is using PyGame which uses SDL which seems to disable some CPU power saving states).

SDL1.2 does a 10Hz tick even if your app is completely idle.

TA-t3 2009-12-16 10:46

Re: Fix battery time from under 7 hours to over 9 days!
 
Ok there's definitely something fishy with pulseaudio.

As I mentioned above pulseaudio was spinning CPU like when it's equalizing something playing. Nothing was playing. Battery in 'low battery warning' mode this morning. I looked through all processes running. There was really no reason for pulseaudio eq being active.
So I killed pulseaudio. It then restarted, but now with normal CPU (i.e. idle).

I'll be keeping an eye on this. I bet my battery performance will now be back to normal (until pulseaudio acts up again). I'm not a media player user so I don't know what triggers pulseaudio misbehaviour.

javispedro 2009-12-16 13:59

Re: Fix battery time from under 7 hours to over 9 days!
 
It's not necessarily pulseaudio's fault. Any app opening a pulseaudio socket and not closing it/closing itself will cause that.

TA-t3 2009-12-16 14:56

Re: Fix battery time from under 7 hours to over 9 days!
 
@javispedro: I'm not familiar with how pulseaudio works. If it's via a socket then it should be possible to figure out the offending process with netstat -p (or lsof, if it's available). I will try to check that out if/when this happens again. What I did though was to look for suspicious processes, which I couldn't find.

Phantasm 2009-12-16 23:26

Re: Fix idle battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by Venomrush (Post 430169)
Command not working
-sh: lshal|grep bat: not found

nor

alias b="lshal|g ng.c"

This one didn't return anything.

Run as root?

No need to run as root. Perhaps you have mistyped the commands or something? Lowercase "LSHAL" and | can be gotten from fn-ctrl. In case of mistyped commands, it should list the command before and after | separately and never include | in the error message.

j.s 2009-12-16 23:51

Re: Fix battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by mr2600 (Post 430119)
I then did the ifconfig command but after inputing it I dont seem to get a response. If i just do ifconfig wlan0 this is i see:

0 Link encap:Ethernet HWaddr 34:7E:39:42:B5:03
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:6959 errors:0 dropped:0 overruns:0 frame:0
TX packets:4366 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9467151 (9.0 MiB) TX bytes:415553 (405.8 KiB)

Does that mean the wifi was still on? Even so why would it drain so fast.

You will get something like that listing even in offline mode. When you are connected, included will be:
"UP BROADCAST RUNNING"
The "UP" and "RUNNING" are key.

I don't know how to tell for certain if power is going to the wifi radio.

inzimam 2009-12-18 15:55

Re: Fix battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by Chippeer (Post 421844)
I have CPU widget and that says, that my device using 3% of CPU...

WHere did you get this from?

jetmarc@hotmail.com 2009-12-18 17:16

Re: Fix idle battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by Venomrush (Post 430169)
Command not working
-sh: lshal|grep bat: not found

Separate the vertical bar with spaces on both sides.

Phantasm 2009-12-19 03:16

Re: Fix idle battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by jetmarc@hotmail.com (Post 433605)
Separate the vertical bar with spaces on both sides.

That isn't required. It works both ways just fine.


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

vBulletin® Version 3.8.8