Reply
Thread Tools
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#81
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.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
javispedro's Avatar
Posts: 2,351 | Thanked: 5,243 times | Joined on Jan 2009 @ Barcelona
#82
Originally Posted by twaelti View Post
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.
 

The Following 2 Users Say Thank You to javispedro For This Useful Post:
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#83
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.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
javispedro's Avatar
Posts: 2,351 | Thanked: 5,243 times | Joined on Jan 2009 @ Barcelona
#84
It's not necessarily pulseaudio's fault. Any app opening a pulseaudio socket and not closing it/closing itself will cause that.
 

The Following User Says Thank You to javispedro For This Useful Post:
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#85
@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.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
Posts: 64 | Thanked: 130 times | Joined on Dec 2009
#86
Originally Posted by Venomrush View Post
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.
 
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#87
Originally Posted by mr2600 View Post
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.
 
Posts: 119 | Thanked: 22 times | Joined on Dec 2009
#88
Originally Posted by Chippeer View Post
I have CPU widget and that says, that my device using 3% of CPU...
WHere did you get this from?
 
Posts: 11 | Thanked: 50 times | Joined on Dec 2009
#89
Originally Posted by Venomrush View Post
Command not working
-sh: lshal|grep bat: not found
Separate the vertical bar with spaces on both sides.
 
Posts: 64 | Thanked: 130 times | Joined on Dec 2009
#90
Originally Posted by jetmarc@hotmail.com View Post
Separate the vertical bar with spaces on both sides.
That isn't required. It works both ways just fine.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 06:15.