LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-03-2014, 04:59 AM   #1
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Question Skype meets Pulseaudio: a mystery


Happy New Year to one and all,
Recently I did a fresh install of my Debian Amd64 Testing/Sid box and of course I got to experience the wonders of pulseaudio. In the past I often read of the problems of getting the sound in Skype to function with pulse. This proved to be the case.

At first my mic did work but I couldn't hear anything from the person being called. They could here me but I couldn't hear them. After a thorough search of all known problems (and there are many ) involving Skype & pulse I found one that suggested using the following command to start Skype:
Code:
PULSE_LATENCY_MSEC=60 skype %U
and that solved the problem. Now everything works perfectly. No problems whatsoever. My question: can anyone explain why "PULSE_LATENCY_MSEC=60" is necessary and what it does exactly?
Cheers,
jdk
 
Old 01-03-2014, 09:51 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Stolen from http://arunraghavan.net/2013/08/puls...4-0-and-skype/

Quote:
Applications can ask PulseAudio for the latency that they wish to have (the amount of time between writing out a sample and it being played out the speaker/headphones/whatever).

Skype seemed to have some weird buggy math that only kicked in at low latencies (20-25ms or less) that caused the problem you saw. Setting PULSE_LATENCY_MSEC forces the requested latency (60 is pretty safe across most setups), making sure this bug in Skype is not triggered.

Hope that makes some sense.
 
Old 01-04-2014, 12:46 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
Indeed it does. Thanks zhjim. This is one more confirmation of the shoddy nature of this piece of ... uh ... kit.
jdk
 
Old 02-25-2014, 09:05 AM   #4
moshebagelfresser
Member
 
Registered: Sep 2005
Location: Rishon Le Ziyyon Israel
Posts: 198

Rep: Reputation: 21
PULSE_LATENCY_MSEC=60 skype %U

Can the above be made to launch Skype without using a terminal/konsole? If so how?
 
Old 02-25-2014, 09:07 AM   #5
moshebagelfresser
Member
 
Registered: Sep 2005
Location: Rishon Le Ziyyon Israel
Posts: 198

Rep: Reputation: 21
Skype no sound

PULSE_LATENCY_MSEC=60 skype %U

Can the above be made to launch Skype without using a terminal/konsole? If so how do I make a Launcher for desktop?
 
Old 02-26-2014, 12:13 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
Hi Moshe,
Please just ask me once. I'm old but not senile. Yes, of course you can do it from a desktop short cut. I use KDE but I'm sure you can work it out if you have a different desktop.
1. Set up the short cut in the normal way for your environment. Right-click on the skype icon on your desktop and a menu appears. Click on the item Properties.
2. Once you have done that click on the Application tab.
3. In the bar marked Command: type in PULSE_LATENCY_MSEC=60 skype %U
and that's it.

This assumes that the "skype" command is located on your PATH; otherwise you have to supply the path to the skype executable in the command.

I can't answer
Quote:
how do I make a Launcher for desktop?
since you haven't revealed what desktop you're using. If it's KDE just right-click on the open desktop, hover over the Create New item; move your cursor to the right until the various choices appear and then select Link to Application.
jdk

Last edited by jdkaye; 02-26-2014 at 12:14 AM.
 
Old 02-26-2014, 04:52 AM   #7
moshebagelfresser
Member
 
Registered: Sep 2005
Location: Rishon Le Ziyyon Israel
Posts: 198

Rep: Reputation: 21
Wink Skype meets Pulseaudio etc

Dear jdkaye,
No I know you're not over the hill yet. Sorry about the double posting, I'd hit on the idea of Stereo typing well you've heard of Stereo sound; Stereo typing is once for the right eye and once for the left one . After I'd posted I suddenly remembered how to do through right clicking on Edit Applications and adding it under Internet, and copying to Panel and Desktop.

My distro is as you guessed correctly kde and it is Mageia 5 (Cauldron). However although the script that you suggest works fine. However, unfortunately it doesn't solve the problem of quitting and reopening to get sound. I didn't have the problem with Mageia 3 and wondering whether it's something to do with their latest version of Skype or the latest Kernel 3.13.2. Or the Mageia team haven't quite got it right.

Stay Happy & young
Moshe
 
Old 02-26-2014, 09:06 AM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
You seem to have changed your question from posts #4, 5 to this one. You were asking about creating a desktop shortcut--at least that's how I understood your question.
Quote:
how do I make a Launcher for desktop?
Now you are asking about something else. I didn't suggest any script (my memory isn't perfect but it's not that bad). I posted some suggestions about how to create a link to skype that incorporates the command PULSE_LATENCY_MSEC=60 skype %U on your desktop. If you are now asking a different question please start a new thread and try to make your question as clear as possible.
Cheers,
jdk
 
Old 02-26-2014, 09:24 AM   #9
moshebagelfresser
Member
 
Registered: Sep 2005
Location: Rishon Le Ziyyon Israel
Posts: 198

Rep: Reputation: 21
True Sorry I wasn't clear enough. Yes I thought that I could use your advise to solve my problem. However unfortunately found I could not. However with your excellent knowledge of Skype I could not resist in seeing perhaps you had an idea for saving restarting Skype to get sound.
 
Old 02-26-2014, 01:09 PM   #10
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
I still don't understand what you're talking about. I use skype everyday from a desktop shortcut that I described earlier. I do not need to restart skype to get sound. Can you describe exactly what you're trying to do and what problem you are encountering. I can't make sense of exactly what your problem is.
jdk
 
Old 02-27-2014, 12:33 AM   #11
moshebagelfresser
Member
 
Registered: Sep 2005
Location: Rishon Le Ziyyon Israel
Posts: 198

Rep: Reputation: 21
My problem is that in order to have any sound use from Skype, I have to quit Skype as soon as it starts on system startup then reopen it. The sound is mutted if I do not reopen it.

I've also tried setting a 10 second Skype startup delay, this did not help.

Your Latency script works and opens the sound OK on the reopening of Skype.
 
Old 02-27-2014, 11:16 PM   #12
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
If I understand you correctly, this has nothing to do with a desktop shortcut. Maybe you really need to start your own thread on this topic.
jdk
 
Old 05-03-2014, 10:27 PM   #13
polpak
Member
 
Registered: Jan 2011
Location: Planet Earth, Australia, NSW
Distribution: GNOME openSUSE Leap/Ubuntu
Posts: 196

Rep: Reputation: 21
BTW am NON-Technical, so regular updating fixes most problems :-)



For self trying the latency fix did not seem to resolve Skype failing sound and sound test this an issue most of past month.


Yesterday installing libpulse0-32 bit (with other related bits) seems to have fixed it for now.


The OS: openSUSE 13.1 (Bottle) (x86_64)


Name: libpulse0-32bit
Version: 4.0.git.270.g9490a-8.1
Arch: x86_64
Vendor: openSUSE
Installed Size: 801.2 KiB
Summary: Client interface to PulseAudio


- - - - -
 
Old 05-04-2014, 12:18 PM   #14
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
Quote:
Originally Posted by zhjim View Post
Stolen from http://arunraghavan.net/2013/08/puls...4-0-and-skype/

Quote:
Applications can ask PulseAudio for the latency that they wish to have (the amount of time between writing out a sample and it being played out the speaker/headphones/whatever).

Skype seemed to have some weird buggy math that only kicked in at low latencies (20-25ms or less) that caused the problem you saw. Setting PULSE_LATENCY_MSEC forces the requested latency (60 is pretty safe across most setups), making sure this bug in Skype is not triggered.
Hope that makes some sense.
What a shock, MS programs being filled with bugs...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
skype using pulseaudio on mulitlib slack 14 Old_Fogie Slackware 11 01-16-2013 02:45 PM
Mic not recognised by PulseAudio (for Skype) gumb Linux - Hardware 2 12-26-2012 08:53 AM
Ubuntu 11.10 skype sound and cam issues - pulseaudio ellabella Linux - Laptop and Netbook 2 01-16-2012 01:02 AM
Microphone doesn't work in Skype with PulseAudio Udi Linux - Software 1 06-20-2010 09:20 PM
Bluetooth headset (Logitech), asound, pulseaudio, Skype, ... Thoddy Ubuntu 1 12-07-2009 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration