Friday, February 7, 2014

Fixing ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred while keeping PulseAudio in your system

Post has been moved to my personal site for readability purposes. 

19 comments:

  1. Thanks, but i had to adjust it to make it work for my system. Specifically i had to add the "hw:" keyword to the argument on the second line

    load-module module-alsa-sink device=dmix
    load-module module-alsa-sink device=hw:1
    load-module module-alsa-source device=hw:1,0

    I also found using the $pulseaudio command to start pulseaudio in the console was useful to see errors, and using the "sound" program from the unity console was useful to test what was working.

    ReplyDelete
    Replies
    1. If you notice in the configuration it says device_id :) if you tried "device=1" then yea it will bring problems but no biggie, if you specify the hw: all is well. However, I still the leave the benefit of the doubt in case device_id doesn't exist in the newer or older versions.

      Delete
  2. I'm still getting fast and crackling audio from the underrun errors on Debian Jessie. The edits worked as far as loading the devices I told it to, but it hasn't affected my audio besides that.

    ReplyDelete
    Replies
    1. Me too: after all the above modifications, wine has cracked audio, fast playback, and lag.

      Linux mint 16 64bit, audigy2

      Delete
    2. same here, that did not solve my problem (on debian jessie too). I still have crackling noise and the "underrun" error.

      Delete
  3. wow. that helped a lot. games also seem quicker now, terrific!

    ReplyDelete
  4. Hi,

    When I wrote the command : cat /proc/asound/cards
    That return only my intel card but I can't see my Nvidia graphic card...
    I'm using Bumblebee and when I launch the shell (with my Nvidia card activated) I have the same result :/

    So I don't know the device id of my Nvidia card...

    (sorry for my english : I'm very bad in this language... Shame on me :/)

    ReplyDelete
  5. Thanks much for this. I can play several games now that I was unable to yesterday!

    As a side note, I was able to issue the command 'sudo service pulseaudio restart' in lieu of rebooting the machine.

    ReplyDelete
  6. Thank you very much, you helped me a lot :)

    ReplyDelete
  7. Thanks.

    I play with performous and the sound was bad.

    Your solution is Ok for me.

    Thanks.

    ReplyDelete
  8. Works fine for me in Mint 17, thanks very much.

    ReplyDelete
  9. Hi, this solution worked for me in Ubuntu 14.03, thanks, it was very annoying.

    The problem I face now is that I don't use my usb card all the time, it's a notebook so maybe I go somewhere with it and I don't carry it around.

    Thing is, if the device is not found when loading the modules manually pulseaudio will refuse to load... right now I have two .defaultpa files that I switch (one with my usbcard and one without).. this is quite a bummer.. any thoughts ?

    thanks !

    ReplyDelete
  10. This solution worked for me in Ubuntu 14.10. However, now the maximum volume is too low, and I have not yet figured a way to increase the volume further without running into sound saturation problems.

    ReplyDelete
    Replies
    1. Solution to the low maximum volume that has worked for me:
      https://www.youtube.com/watch?v=_D7AiGDXnzs

      Delete
  11. Works very fine for me , nice work. ( i searched 1 whole day for this :) ) after system reboot
    i got new mixer functions too, where did they hide ? :)

    big thanks to you.

    ReplyDelete
  12. Your site is broken.

    Too bad I can't read the post that's been moved to your personal site for readability purposes. How about you put a copy back here where Google points us?

    ReplyDelete
  13. Hey, the post is lost, your personal site returns server error. Can you please bring it back somewhere?

    ReplyDelete
    Replies
    1. Fixed.

      URL:

      http://thehumble.ninja/2014/02/06/fixing-alsa-lib-pcmc7843snd_pcm_recover-underrun-occurred-while-keeping-pulseaudio-in-your-system/

      Delete