'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: > https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/207135 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... Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mandriva Linux Contributor [http://www.mandriva.com/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/] _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel