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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-03-2014, 04:59 AM
|
#1
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Rep: 
|
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
|
|
|
01-03-2014, 09:51 AM
|
#2
|
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
|
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.
|
|
|
|
01-04-2014, 12:46 AM
|
#3
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Original Poster
Rep: 
|
Indeed it does. Thanks zhjim. This is one more confirmation of the shoddy nature of this piece of ... uh ... kit.
jdk
|
|
|
02-25-2014, 09:05 AM
|
#4
|
Member
Registered: Sep 2005
Location: Rishon Le Ziyyon Israel
Posts: 198
Rep:
|
PULSE_LATENCY_MSEC=60 skype %U
Can the above be made to launch Skype without using a terminal/konsole? If so how?
|
|
|
02-25-2014, 09:07 AM
|
#5
|
Member
Registered: Sep 2005
Location: Rishon Le Ziyyon Israel
Posts: 198
Rep:
|
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?
|
|
|
02-26-2014, 12:13 AM
|
#6
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Original Poster
Rep: 
|
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.
|
|
|
02-26-2014, 04:52 AM
|
#7
|
Member
Registered: Sep 2005
Location: Rishon Le Ziyyon Israel
Posts: 198
Rep:
|
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
|
|
|
02-26-2014, 09:06 AM
|
#8
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Original Poster
Rep: 
|
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
|
|
|
02-26-2014, 09:24 AM
|
#9
|
Member
Registered: Sep 2005
Location: Rishon Le Ziyyon Israel
Posts: 198
Rep:
|
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.
|
|
|
02-26-2014, 01:09 PM
|
#10
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Original Poster
Rep: 
|
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
|
|
|
02-27-2014, 12:33 AM
|
#11
|
Member
Registered: Sep 2005
Location: Rishon Le Ziyyon Israel
Posts: 198
Rep:
|
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.
|
|
|
02-27-2014, 11:16 PM
|
#12
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Original Poster
Rep: 
|
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
|
|
|
05-03-2014, 10:27 PM
|
#13
|
Member
Registered: Jan 2011
Location: Planet Earth, Australia, NSW
Distribution: GNOME openSUSE Leap/Ubuntu
Posts: 196
Rep:
|
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
- - - - -
|
|
|
05-04-2014, 12:18 PM
|
#14
|
Member
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814
|
Quote:
Originally Posted by zhjim
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...
|
|
|
All times are GMT -5. The time now is 02:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|