[alsa-devel] pulseaudio eats 19% CPU power in Fedora 12
gmane at colin.guthr.ie
Wed Apr 14 10:31:50 CEST 2010
'Twas brillig, and Wu Fengguang at 14/04/10 08:56 did gyre and gimble:
> Hi Lennart,
> We found that pulseaudio eats CPU ~19% CPU time, a little more than
> mplayer when playing video. This is horrible for laptop batteries.
> Can we make it just work -- in green CPU mode? I can find many users
> complaining about this, and it seems like some fix is available in
> this link:
Things to check:
1. Is it your driver providing bad timing information to PA: Check by
enabling tsched=0 for module-udev-detect in default.pa
2. What is the native sample rate of your h/w. PA uses 44.1kHz by
default but perhaps your h/w is using 48kHz only? If so set
default-sample-rate = 48000 in daemon.conf
3. Do your videos require resampling. If you prefer battery life over
sound quality, try using a less CPU intensive, but lower quality,
resampler. See the settings in daemon.conf.
Or do you just mean that when on battery, the resampler should be
changed? e.g. when on battery, use trivial, when on AC use <whatever>.
It would be relatively easy to create a module that did that I believe...
Tribalogic Limited [http://www.tribalogic.net/]
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
More information about the Alsa-devel