maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   N900 pulseaudio consumes up to 1/4 cpu (https://talk.maemo.org/showthread.php?t=34863)

ArnimS 2009-11-21 06:52

N900 pulseaudio consumes up to 1/4 cpu
 
title says it all

apparently nokia had to implement software eq for speaker playback to allow higher volume without distortion "d case-resonance.

this puts 15-25 percent cpu load on while playing any audio.

this really hurts games performance, and i dont know if it hurts battery life on mp3 playback.

please fix speakers in hardware next time and allow disabling of eq now (even if that means a volume limit)

lma 2009-11-21 09:23

Re: N900 pulseaudio consumes up to 1/4 cpu
 
Feel free to file a bug report. The only at all related one at the moment is bug 5794.

admiral0 2009-11-21 09:54

Re: N900 pulseaudio consumes up to 1/4 cpu
 
What about disabling pulseaudio? Is it used by telephony apps?

twaelti 2009-11-21 10:19

Re: N900 pulseaudio consumes up to 1/4 cpu
 
What if you plugin a headset? It is my understanding that this will disable the speaker protection algorithms.

(As mentioned by Igor Stoppain in this discussion about N900 power usage with Ogg and MP3)

Manuel 2009-12-16 08:30

Re: N900 pulseaudio consumes up to 1/4 cpu
 
With headset usage drops a good deal.

I just discovered a very cool thing. It is possible to bypass pulse, but that would temporarily prevent any other app from sending sound.

Would you like the option for faster emulator, even if it blocks the phone, for e.g.?

ruskie 2009-12-16 09:22

Re: N900 pulseaudio consumes up to 1/4 cpu
 
Wouldn't it be possible to remove the relevant eq module?

TA-t3 2009-12-16 09:35

Re: N900 pulseaudio consumes up to 1/4 cpu
 
Ok now I suddenly have a battery issue - didn't before. And I see that pulseaudio is using 16-18 % CPU, which must be the cause - it's constant. And I have not started the media player, or anything else that plays anything. So why is pulseaudio spending CPU?

If I plug in headphones it drops to 9-11%. There's no sound of course, because there's nothing playing! If I unplug the headphones the CPU goes back to 16-18% again. Something is wrong here.

twaelti 2009-12-16 09:43

Re: N900 pulseaudio consumes up to 1/4 cpu
 
No, there is nothing wrong. When sound goes over loudspeaker, an additional hardware protection algorithm chimes in. But if you use a headset, the algorithm/filter is not needed.

I also had older version of my mClock hogging PulseAudio, because PyGame audio is enabled in PyGame by default, and the mixer makes a mess. So if you use any PyGame-based app, take care.

Manuel 2009-12-16 09:53

Re: N900 pulseaudio consumes up to 1/4 cpu
 
he is seeing cpu use without telling device to play audio

i never saw that.

disabling eq wouldnt give much in terms of speed. it is the process itself that hurts emus with unnecessary context switching, imo

TA-t3 2009-12-16 10:50

Re: N900 pulseaudio consumes up to 1/4 cpu
 
@twaelti: If you was replying to me - it's as Manuel says: Nothing playing, so no reason for pulseaudio to be active at all (well it's running all the time, but it should be _idle_, as it normally is when there's no application using sound).

In the meantime I have looked at all active processes and found nothing that should trigger this. So I killed pulseaudio, it then restarted (as it should), but now in idle mode, no CPU misbehaviour. There's something wrong here.

amorek13 2009-12-16 11:45

Re: N900 pulseaudio consumes up to 1/4 cpu
 
that is happening to me also, running a top command shows puls taking 25% and after a while drops to 1.5

TA-t3 2009-12-16 11:48

Re: N900 pulseaudio consumes up to 1/4 cpu
 
Mine never dropped, that's why I ended up with a battery problem.. now after I killed it (and it restarted itself) things are back to normal.

ArnimS 2010-08-09 21:35

Re: N900 pulseaudio consumes up to 1/4 cpu
 
PID PPID USER STAT RSS %MEM %CPU COMMAND
1642 1571 user R 16824 6.8 42.7 /usr/bin/gemrb
780 1 pulse R < 3792 1.5 35.6 /usr/bin/pulseaudio --system --high-priority

really. i'm about to puke here. and they're repeating this for meego.

smoku 2010-08-09 21:43

Re: N900 pulseaudio consumes up to 1/4 cpu
 
OK. PulseAudio sucks. We know this already.
But do we have an alternative?

baxyp 2010-08-21 08:41

Re: N900 pulseaudio consumes up to 1/4 cpu
 
I'd like to find some way to get rid of pulseaudio too. I can't use skype really, audio is choppy to the point I want to throw the phone out of the window. pulseaudio takes 35% cpu @600mhz both with speakers or headphones.

Radu 2010-11-09 23:54

Re: N900 pulseaudio consumes up to 1/4 cpu
 
Sorry for necroing this thread, but I also discovered that PulseAudio is using about 33% of the CPU (at 250mhz), and this is very excessive I think.
Would be really nice to have a way to bypass the speaker protection thing, or get rid of Pulse Audio at all (I always had problems with it even on my netbook).

cipper 2010-11-23 19:01

Re: N900 pulseaudio consumes up to 1/4 cpu
 
What the ****?!

I got the same problem in the latest days: idle pulseaudio draining battery. I'm on power-kernel_v46

javispedro 2010-11-23 19:17

Re: N900 pulseaudio consumes up to 1/4 cpu
 
idle pulseaudio should use any CPU. Probably some application is keeping a stream open.

cipper 2010-11-25 08:07

Re: N900 pulseaudio consumes up to 1/4 cpu
 
Quote:

Originally Posted by javispedro (Post 881429)
idle pulseaudio should use any CPU. Probably some application is keeping a stream open.

you're probably right, I left a paused symfonie in background and it probably doesn't close the stream when paused.


All times are GMT. The time now is 09:56.

vBulletin® Version 3.8.8