LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Skype 4.3 (https://www.linuxquestions.org/questions/slackware-14/skype-4-3-a-4175508618/)

fsLeg 11-02-2014 10:56 AM

Quote:

Originally Posted by rvdboom (Post 5263380)
I have a terrible HDA sound card that provide a "digital card" as first and the proper "Analog" card as second device

Same situation here. But I'm too lazy to configure all my software to use a different sound card, so this is what I put in my .asoundrc:
Code:

defaults.ctl.card 1; # Sets default device and control to second card (counting begins with 0).
defaults.pcm.card 1; # This does not change the data type.

This works with apulse perfectly.

Quote:

Originally Posted by rvdboom (Post 5263380)
I've compiled apulse on my Slackware64-current without any particular option

Wrong. Skype requires 32bit binaries, so you must compile apulse as a 32bit package using `-m32` option (if you're compiling manually) or `COMPAT32=yes` (if you're building an SBo pakage).

Quote:

Originally Posted by rvdboom (Post 5263380)
In options, for sound, everything is set up to "Virtual device"

Even if your default sound card doesn't produce any sound for whatever reason, using apulse should still make Skype show "PulseAudio server (local)" in sound options. If it's showing "Virtual device", then apulse doesn't work, because, as I stated above, you're most likely using 64bit binaries with 32bit Skype.

brebs 11-02-2014 11:37 AM

Quote:

Originally Posted by moisespedro (Post 5262114)
This seems interesting

Thanks, I'm using skype-poll-fix and it works well :)

Martinus2u 11-06-2014 04:15 PM

Quote:

Originally Posted by brebs (Post 5263412)
Thanks, I'm using skype-poll-fix and it works well :)

for some reason it won't preload on my multilib system *shrugs*

brebs 11-06-2014 04:24 PM

Quote:

Originally Posted by Martinus2u (Post 5265823)
for some reason it won't preload on my multilib system *shrugs*

Skype is 32-bit, so apulse and skype-poll-fix need to be compiled for 32-bit. Check:

Code:

$ file /usr/share/skype/skype-poll-fix.so
/usr/share/skype/skype-poll-fix.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped

This is how I compile it, on my custom multi-lib system:

Code:

PATH="/usr/bin32:$PATH" CFLAGS="-m32 -O2 -march=core2" CXXFLAGS="-m32 -O2 -march=core2" make &&
install -m 755 skype-poll-fix.so /usr/share/skype/

Notice that I set up the PATH, to use my 32-bit executables in preference, so that it will use e.g. the 32-bit "ld" command.

Martinus2u 11-07-2014 02:29 PM

Quote:

Originally Posted by brebs (Post 5265830)
Skype is 32-bit, so apulse and skype-poll-fix need to be compiled for 32-bit.

I did. I compiled it on a 32 bit system and copied the lib over. Result when running it on a mutlilib system:

Code:

$ LD_PRELOAD=/usr/local/lib/skype-poll-fix.so /usr/bin/apulse /usr/bin/skype
ERROR: ld.so: object '/usr/local/lib/skype-poll-fix.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

anyway, it's no biggie, life goes on without skype-poll-fix

brebs 11-07-2014 02:58 PM

You're right, I see that message also - but it's a false alarm.

skype-poll-fix is definitely taking effect, I see it in "top" - 2.3% CPU usage without, and 0.3% with.

It's because apulse is a script, calling /bin/sh, which is 64-bit :)

The solution is to remove the additional call of /bin/sh, and just run the 32-bit skype, e.g.:

Code:

PATH="/usr/bin32:$PATH" LD_PRELOAD=/usr/share/skype/skype-poll-fix.so MIN_POLL=100 SET_POLL=250 LD_LIBRARY_PATH=/usr/lib32${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} skype

rvdboom 11-11-2014 06:35 AM

Quote:

Originally Posted by fsLeg (Post 5263390)
Even if your default sound card doesn't produce any sound for whatever reason, using apulse should still make Skype show "PulseAudio server (local)" in sound options. If it's showing "Virtual device", then apulse doesn't work, because, as I stated above, you're most likely using 64bit binaries with 32bit Skype.

Sorry not to answer sooner, I missed your post.
I indeed followed similar steps to the ones you gave and it does work.
But I also experience failures as an earlier poster seemed to report : if I make a call just after starting Skype with apulse, it works OK. But if I minimize Skype, do other stuff for a while (possibly using sound like watching a movie) then Skype seems to fail somehow. I can still open the GUI, check the menus, open the options and browse my contacts. But if I try to make a call, it basically hangs, I have to kill it with -9. I cannot receive any call either, they're not even detected.
I guess I should probably try the Slackbuilt with included minimal pulseaudio but I prefered this approach. Or try something like Linphone.

EDIT : I get the following message on the console after watching a film :

Quote:

bash-4.3$ [apulse] [error] do_connect_pcm, snd_pcm_open, Périphérique ou ressource occupé
[apulse] [error] do_connect_pcm, snd_pcm_open, Périphérique ou ressource occupé
And after that, apulse / Skype doesn't seem to recover.

rvdboom 11-13-2014 12:58 AM

OK, I think I found the solution.
Instead of running Skype like this :

Code:

APULSE_CAPTURE_DEVICE="hw:2,0" APULSE_PLAYBACK_DEVICE="hw:1,0" apulse skype
I use this :

Code:

APULSE_CAPTURE_DEVICE="hw:2,0" APULSE_PLAYBACK_DEVICE="plug:'dmix'" apulse skype
since in Slackware, a dmix plugin is configured by default on your default card.
Now Skype can play sound while a Flash video is running in Firefox, so I guess I should not have any more issue (cross fingers).

mlpa 11-14-2014 04:41 AM

Quote:

Originally Posted by mlpa (Post 5222874)
I tried this, but there is no change in appearance.
Maybe the Qt theme requires some features from GTK3 themes.

With Adwaita theme it look normal and blue.

I use Slackware 64 bits, after installing the 32 bits libraries skype appearance changes and looses color.
Can anyone confirm this?

psionl0 11-14-2014 04:53 PM

After upgrading to Slackware 14.1, "apulse skype" produces sound but I can't get the mike to work.

Didier Spaier 11-14-2014 05:04 PM

Quote:

Originally Posted by psionl0 (Post 5269879)
After upgrading to Slackware 14.1, "apulse skype" produces sound but I can't get the mike to work.

Install pavucontrol

Nh3xus 11-14-2014 05:57 PM

Didier, pulseaudio might be a runtime dependency for this program... No ?

Didier Spaier 11-14-2014 09:21 PM

Quote:

Originally Posted by Nh3xus (Post 5269896)
Didier, pulseaudio might be a runtime dependency for this program... No ?

You're right, that's stated on the README... That's what happens when I post just before going to bed: psionl0 wrote apulse and I read pulsaudio. OTOH maybe apulse could fake pulseaudio as a dependency as well? And/or it could be a compile time, not a run-time dependency?[1]

[1] I can find excuses if I really need to :D

moesasji 11-15-2014 02:33 AM

Quote:

Originally Posted by Didier Spaier (Post 5269881)
Install pavucontrol

This isn't going to work if PsionIO is running Skype using apulse to avoid pulse-audio.

It is likely that alsa doesn't look at the correct hardware for the microphone. This can be fixed in the way rvdboom did above or by setting up /etc/asound.conf. The config file that works for me with a logitech webcam is below, with the correct channels found using "aplay -l"

Code:

# make sure the USB microphone is picked up
pcm.!default {
        type asym
        playback.pcm {
                type plug
                slave.pcm "hw:0,0"
        }
        capture.pcm {
                type plug
                slave.pcm "hw:2,0"
        }
}

This isn't perfect as Skype hangs every now and then for me, but I haven't had time to test the suggestion by rvdboom yet.

brebs 11-15-2014 03:14 AM

An ALSA config which uses dmix (and dsnoop) would be better, for sharing the sound with multiple apps ;)


All times are GMT -5. The time now is 08:44 PM.