Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skype with pulseaudio has no sound #788

Closed
viric opened this issue Jul 29, 2013 · 9 comments
Closed

Skype with pulseaudio has no sound #788

viric opened this issue Jul 29, 2013 · 9 comments

Comments

@viric
Copy link
Member

viric commented Jul 29, 2013

It used to work; in nixpkgs 2e57a16 it doesn't work, with pulseaudio. It either produces noise, or no sound at all.

pavucontrol 2.0 doesn't show the skype stream.

Disabling 'pulseaudio' in the nixpkgs skype parameter, it also does not work here.

Disabling QT_PLUGIN_PATH, and other PLUGIN paths, doesn't improve anything.

In a system with 'hardware.pulseaudio' disabled, the default nixpkgs skype works fine (with a crash at exit, mentioned in #788.

@viric
Copy link
Member Author

viric commented Jul 29, 2013

A related issue... skype is a 32-bit program; asound.conf includes an alsa module for pulseaudio, which will be only 64-bit in x86_64.

@viric
Copy link
Member Author

viric commented Jul 29, 2013

Arch issue that may be related: https://bbs.archlinux.org/viewtopic.php?id=163916

@viric
Copy link
Member Author

viric commented Jul 29, 2013

Similar discussion, in Spanish: http://www.esdebian.org/foro/49496/sonido-distorsionado-skype

@viric
Copy link
Member Author

viric commented Jul 29, 2013

Ok, I fixed this locally following the instructions in the forum posts above:

  hardware.pulseaudio.configFile = pkgs.runCommand "default.pa" {} ''
    sed 's/module-udev-detect$/module-udev-detect tsched=0/' \
      ${pkgs.pulseaudio}/etc/pulse/default.pa > $out
  '';

@domenkozar
Copy link
Member

Also getting this one. @viric should I try default.pa patch?

@viric
Copy link
Member Author

viric commented Aug 28, 2013

On Wed, Aug 28, 2013 at 05:11:49AM -0700, Domen Kožar wrote:

Also getting this one. @viric should I try default.pa patch?

uh? I don't know much about pulseaudio. Go on fixing, and if something breaks,
I'll catch up later. :)

@bjornfor
Copy link
Contributor

Direct link to explanation of @viric's fix: https://wiki.archlinux.org/index.php/PulseAudio#Glitches.2C_skips_or_crackling

(Adding tsched=0 fixed my skype audio issues too.)

@bjornfor
Copy link
Contributor

More info about pulseaudio timer-based scheduling (which is disabled with tsched=0): http://0pointer.de/blog/projects/pulse-glitch-free.html

And a workaround for skype (instead of using tsched=0 which affects everyone): http://arunraghavan.net/2013/08/pulseaudio-4-0-and-skype/

Basically, PULSE_LATENCY_MSEC=60 skype.

@bjornfor
Copy link
Contributor

Fixed with b5c1d18

pSub pushed a commit to pSub/nixpkgs that referenced this issue Oct 30, 2013
See http://arunraghavan.net/2013/08/pulseaudio-4-0-and-skype/

Relevant bug reports:
  NixOS#788
  https://bugs.archlinux.org/task/35690
  https://bugs.freedesktop.org/show_bug.cgi?id=50510

We don't want to disable pulseaudio timer-based scheduling (tsched=0)
because that affects everyone. It seems this is the proper distro fix
for skype + pulseaudio at the moment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants