Cimi’s Official Blog

Italians do it Better…

Just a Blog on Gtk+ Theming, Bleeding-Edge, Good Software...

Pulseaudio glitches and CPU usage (netbooks with hda-intel by realtek) 5 February, 2009

Here you can find an example of the “pulseaudio glitches” we (unlucky netbook’s owners) hear.
I decided to reinstall pulseaudio, because I share Lennart’s idea that it’s better to start fixing drivers and applications as soon as we can: it’s useless, imho, to stop freesoftware’s development just because vendors/drivers/applications are bugged.
Some things work better than in the past months, banshee seems to be almost glitch-free (it wasn’t when I tried it in december).

I’m going to share with you my glitch-free experience: :P
just recordered, sorry for the white noise but the netbook’s speakers have a low power noise removed thanks to audacity.
pulseaudio-frozenbubble-no-noise (FLAC, 1.8 MB, I can hear more glitches here)
pulseaudio-frozenbubble-no-noise (WAV, 3.2 MB)
pulseaudio-frozenbubble (FLAC, 2.0 MB, I can hear more glitches here)
pulseaudio-frozenbubble (WAV, 3.5 MB)

Pulseaudio 0.9.14, snd-hda-intel (Realtek ALC 272), Fedora Core 10.

Also, CPU usage for pulseaudio is between 10% and 35% (and ~25% without the g-f feature). Not really fun for the laptop’s battery.


Posted in English, GNOME |

14 Replies

  1. Achim said:

    So I guess you have one of those buggy drivers.
    http://pulseaudio.org/wiki/BrokenSoundDrivers

    Have you tried to disable the g-f feature?

    Regards
    Achim

  2. Cimi said:

    @1:
    disabling g-f makes the music stuttering… every glitch I heard before becomes a pause, like GO-OD-MO-R-NI-N-G.

  3. Achim said:

    @2: (Cimi)

    Could it be that the problem you have is related to SDL somehow?

  4. Cimi said:

    @3:
    but I’m having glitches with banshee, lastfm, totem… I can fix them by adding tsched=0, but the CPU usage is still high, and I can’t have 20-30% of CPU usage on a netbook (for both battery life and performance)!

  5. Spider said:

    you have better sound results than me then, obviously. Congratulations. My work laptop crashes horribly after a few minutes of broken sound output.

    yes, Realtec chipset, Pulseaudio, glitchfree disabled.

    Pity the good idea doesn’t work.

  6. Ilmari said:

    The high CPU usage with pulseaudio and Intel HDA is from pulse using a CPU-heavy audio resampling algorithm to upsample 44.1kHz audio to the sound chip’s native 48kHz.

    If you want lower CPU use, install the OSS4 driver, yum erase pulseaudio, use ossxmix to set up the jack functions (and set input vols to 0 to get rid of the noise), do `vmixctl rate /dev/dsp 44100` and use gconf-editor to set the audiosinks in system/gstreamer/0.10/defaults to osssink.

    You do _not_ want to use oss4sink, as it requires gstreamer to upsample, and gstreamer’s audioresample is/was 5 times slower than pulse’s speex. You could use `speexresample ! audio/x-float-raw,rate=48000 ! audioconvert ! oss4sink’ for gstreamer, but that’s just as CPU-heavy as pulse’s as it uses the very same libspeex, so no gain there.

  7. Cimi said:

    @6:
    I don’t know why you would upsample, the quality is the same if not even worse… after upsampling you have duplicated samples, which is the point on having them? spread the cpu?
    I can understand that it is required for syncing the audio requests, but after knowing that pulseaudio is a big-no. I don’t want upsampling in software.

  8. Tomasz said:

    You need upsampling if your hardware is only capable of 48KHz input and your audio file produces 44,1KHz. There is really no other choice in this situation. Additionally, you have to remember that functions are being removed from hardware and put into software. First multichannel mixing, then flexible frequency input, lately even volume level got removed from HW.

  9. Cimi said:

    it’s not resampling, it’s just a high cpu usage.
    Just checked out.

  10. Nate said:

    There is a bug with SDL that causes it to behave badly with PulseAudio.
    https://bugzilla.redhat.com/show_bug.cgi?id=474745

  11. lorenzo said:

    I’m having good results with pulseaudio from git. On my Archlinux with cpu usage is between 7 and 10% (Playing an mp3 at 320KB with banshee compiled from svn)

  12. Cimi said:

    @lorenzo:
    It is not a good result. Pulseaudio should be 1-2%, not 10%.

  13. Přemysl Janouch said:

    Well, for me, disabling the glitch-free feature has probably solved it. I am an ArchLinux user. (Acer notebook, Realtek ALC268 audio codec)

  14. kwevej said:

    topic PulseAudio - Tune your setting and prevent glitching
    http://forums.linuxmint.com/viewtopic.php?f=42&t=44862

Leave a Comment

Attention: Moderation is enabled, and could cause a delay to the posting.

This blog is "Powered by Cimi"

Theme from: Kaushal Sheth | Modified by: Andrea Cimitan