Bug 12681

Summary: no sound with get-skype-4.2.0.11-5.mga4.nonfree.noarch.rpm
Product: Mageia Reporter: alain deraedt <alainderaedt>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Normal CC: mageia
Version: 4   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description alain deraedt 2014-02-09 13:29:00 CET
Description of problem:after installing get-skype-4.2.0.11-5.mga4.nonfree.noarch.rpm with mcc (important, can't be installed using command line, see bug 12668), no sound and therefore totally useless.
The same with skype-4.2.0.13.tar.bz2, which requires no installation, and which properly works with mageia2-x86_64 and mageia3-x86_64
In all cases, the package libpulseaudio0 is installed


Version-Release number of selected component (if applicable):


How reproducible:install get-skype-4.2.0.11-5.mga4.nonfree.noarch.rpm on mageia4-x86_64 and try to use it, for example using skype test call.
Make the same (without installation) with skype-4.2.0.13.tar.bz2


Steps to Reproduce:
1.
2.
3.


Reproducible: 

Steps to Reproduce:
Comment 1 Sander Lepik 2014-02-09 13:33:32 CET
What DE are you using and how did you install your system?

Sound is working fine for me on Mageia 4 (x86_64).

Status: NEW => UNCONFIRMED
CC: (none) => mageia
Ever confirmed: 1 => 0

Comment 2 alain deraedt 2014-02-09 14:12:48 CET
(In reply to Sander Lepik from comment #1)
> What DE are you using and how did you install your system?
> 
> Sound is working fine for me on Mageia 4 (x86_64).

What do you mean by "DE"? I have just upgraded online my mageia3-64 using urpmi, as shown on your site (https://wiki.mageia.org/en/Mageia_4_Release_Notes#Upgrading_from_Mageia_3)
It's noticeable that I have installed an old version of skype
skype-2.0.0.68-mdv.i586.rpm
with which the sound fine works, but not the webcam
Comment 3 Sander Lepik 2014-02-09 14:22:13 CET
DE = desktop environment - KDE? Gnome? Something else? Is your skype configured to use pulseaudio? How do you start it? From start menu or from command line? It should work from start menu but other options might not work.
Comment 4 alain deraedt 2014-02-09 14:58:22 CET
(In reply to Sander Lepik from comment #3)
> DE = desktop environment - KDE? Gnome? Something else? Is your skype
> configured to use pulseaudio? How do you start it? From start menu or from
> command line? It should work from start menu but other options might not
> work.

for me DE=KDE; my old skype (skype-2.0.0.68-mdv.i586.rpm) is configured to use pulseaudio; so is skype-4.2.0.13.tar.bz2; as the latter one doesn't require any installation, it coexists with the mdv.rpm's one; of course, starting commands are different (starting command for skype-4.2.0.13.tar.bz2 is ~/.skype-4.2.0.13/skype), but I don't use it since there is no sound.
For the same reason, I have uninstalled get-skype-4.2.0.11-5.mga4.nonfree.noarch.rpm 
skype-2.0.0.68-mdv.i586.rpm starts either from command line (command=skype) either from start menu, either from the icona I have created and configured on the desktop; both are working.
Comment 5 Sander Lepik 2014-02-09 15:01:17 CET
Does this command change anything:

env PULSE_LATENCY_MSEC=60 ~/.skype-4.2.0.13/skype
Comment 6 alain deraedt 2014-02-09 15:39:48 CET
(In reply to Sander Lepik from comment #5)
> Does this command change anything:
> 
> env PULSE_LATENCY_MSEC=60 ~/.skype-4.2.0.13/skype

BRAVO! it's fine works now; but how to make this permanent? by creating an alias for the command skype? 
I fear that if we make this change permanent, it fine works for skype, but it no longer works for other applications (music, videoclips, films, and so on...)
what is your opinion?
Comment 7 Sander Lepik 2014-02-09 15:42:45 CET
Well, if you start skype from start menu then it should work fine as .desktop file contains that line. I can try to move it into wrapper and see if it works like that too.

But skype 4.2.0.11 from mga4 repos should work w/o problems if you start it from start menu, not from command line.
Comment 8 alain deraedt 2014-02-10 00:12:09 CET
(In reply to Sander Lepik from comment #7)
> Well, if you start skype from start menu then it should work fine as
> .desktop file contains that line. I can try to move it into wrapper and see
> if it works like that too.
> 
> But skype 4.2.0.11 from mga4 repos should work w/o problems if you start it
> from start menu, not from command line.

OK I have reinstalled get-skype-4.2.0.11-5 with mcc, and it works fine when started from start menu; more, I have created an alias on the desktop, with the command:
env PULSE_LATENCY_MSEC=60 skype
and it works fine too.
Best regards
Comment 9 Sander Lepik 2014-02-10 09:12:18 CET
I fixed it for cauldron. But probably won't do it for stable releases. Usually people use start menu to start apps. You can manually fix it by adding "env PULSE_LATENCY_MSEC=60" before the "LD_PRELOAD=..." line in /usr/bin/skype - then it should work from command line too. I'm closing this bug as you got your problem sorted.

Status: UNCONFIRMED => RESOLVED
Resolution: (none) => WORKSFORME

Comment 10 alain deraedt 2014-02-10 14:17:42 CET
(In reply to Sander Lepik from comment #9)
> I fixed it for cauldron. But probably won't do it for stable releases.
> Usually people use start menu to start apps. You can manually fix it by
> adding "env PULSE_LATENCY_MSEC=60" before the "LD_PRELOAD=..." line in
> /usr/bin/skype - then it should work from command line too. I'm closing this
> bug as you got your problem sorted.

It doesn't work; but it's not a big problem, creating an alias for skype by adding
env PULSE_LATENCY_MSEC=60 before skype command is quite possible.
Best regards
Comment 11 Sander Lepik 2014-02-10 16:44:58 CET
How exactly did you add it as it worked for me.

My /usr/bin/skype:

#!/bin/bash
env PULSE_LATENCY_MSEC=60 LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so /usr/share/skype/skype
Comment 12 alain deraedt 2014-02-10 19:03:33 CET
(In reply to Sander Lepik from comment #11)
> How exactly did you add it as it worked for me.
> 
> My /usr/bin/skype:
> 
> #!/bin/bash
> env PULSE_LATENCY_MSEC=60 LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so
> /usr/share/skype/skype

Now it works fine; I had written "env PU....60" on a separate line, just above the line: "LD_PRE.....so"
Regards