Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Skype Weird 'Problem With Sound Device' Issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
smiffy
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 259
Location: SA.AU.AP.EARTH

PostPosted: Mon Jul 31, 2006 9:33 am    Post subject: Skype Weird 'Problem With Sound Device' Issue Reply with quote

Using Gentoo ebuild of Skype:

* Make a call - whether within Skype or using Skype out.
* Hang up.
* Try to make another call:
"Problem With Sound Device"

I removed the ebuild package and installed the latest version downloaded from Skype - same problem.

Running from the command line, after you've made that first call, either immediately or when the second call is made, you get:

/dev/dsp2: Device or resource busy
Message appears twice. /dev/dsp2 is my Logitech USB headset.

I know nothing about sound on Linux; do we have lockfiles or something that could be causing this problem? I have not seen this problem when running "vanilla" Skype under SuSE Linux - on those rare occasions that it detected my headset without a reboot ;-)

Tested this with my USB webcam (which also uses USB sound) disconnected - no difference.
_________________
Matthew Smith
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Mon Jul 31, 2006 10:42 am    Post subject: Reply with quote

I can't reproduce your problem, so I have no clue if this actually helps, but...

I like to start skype with alsa instead of oss, you need aoss for this

Code:

$ aoss skype


This also means I can play music while skype is running (in the background).

(however it is a well know fact that aoss sometimes seg-faults with aoss, it's a good try though... alsa shouldn't lock up your sound device, especially if you have dmix support)
_________________
only when it is dark enough, can you see the stars
Back to top
View user's profile Send private message
smiffy
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 259
Location: SA.AU.AP.EARTH

PostPosted: Mon Jul 31, 2006 12:07 pm    Post subject: Reply with quote

Thanks - I'll give it a go and report back...

EDIT - um...
Code:

foo bar # emerge -s aoss
Searching...
[ Results for search key : aoss ]
[ Applications found : 0 ]


What package does it live in?
_________________
Matthew Smith
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Mon Jul 31, 2006 1:09 pm    Post subject: Reply with quote

media-libs/alsa-oss

You do have alsa right? Hardware mixing/dmixing?
_________________
only when it is dark enough, can you see the stars
Back to top
View user's profile Send private message
iarwain
Apprentice
Apprentice


Joined: 25 Sep 2003
Posts: 253

PostPosted: Mon Jul 31, 2006 6:11 pm    Post subject: Reply with quote

Try it again deleting /opt/skype/sound/hangup.wav
Back to top
View user's profile Send private message
smiffy
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 259
Location: SA.AU.AP.EARTH

PostPosted: Mon Jul 31, 2006 10:46 pm    Post subject: Reply with quote

Thank you for the replies.

SZwarts - I had Alsa installed, not Alsa/OSS (believed OSS to be long deprecated and Skype supporting Alsa). Installed this, tried doing it through aoss, made no difference, either with the recent Skype binary or the Gentoo ebuild.

Iarwain - moved the .wav, made no difference.

Problem sometimes occurs after first call, sometimes after second or third. Always get the 'device busy' error.

I can guarantee to reproduce it calling someone who is offline, even if I cancel before it tries to download the greeting. If I wait, AS SOON AS I see 'Greeting Download' in the Skype window, the /dev/dsp2: Device or resource busy rears its ugly head.

Will see if similar behaviour occurs on my laptop.
_________________
Matthew Smith
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Mon Jul 31, 2006 11:23 pm    Post subject: Reply with quote

smiffy wrote:

SZwarts - I had Alsa installed, not Alsa/OSS (believed OSS to be long deprecated and Skype supporting Alsa). Installed this, tried doing it through aoss, made no difference, either with the recent Skype binary or the Gentoo ebuild.


No Skype does not support alsa, and yes OSS is long deprecated.
The trick with aoss, works only when:
    No arts or esd is running,
    alsa has dmixing.

In this case it's not possible for the device to be busy anymore, because new streams simple will be mixed with old ones.
(I used this trick so I don't get a device busy when playing music and running skype)

If this doesn't do the job either, I give up... Maybe check the linux section on the skype forum
_________________
only when it is dark enough, can you see the stars
Back to top
View user's profile Send private message
smiffy
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 259
Location: SA.AU.AP.EARTH

PostPosted: Tue Aug 01, 2006 12:17 am    Post subject: Reply with quote

Hmm, same issue on my laptop...

Quote:
No arts or esd is running


Aha! That looks like something to try. I will get rid of arts and see how things look then.

UPDATE - I'm not going to flag this as resolved yet, but with -arts -esd USE flags set:
* problem occurs with ebuild, no aoss
* problem occurs with Skype binary, no aoss
* problem occurs with ebuild, through aoss
* problem NOT YET OBSERVED with Skype binary, through aoss

...looking good.
_________________
Matthew Smith
Back to top
View user's profile Send private message
smiffy
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 259
Location: SA.AU.AP.EARTH

PostPosted: Tue Aug 01, 2006 1:39 am    Post subject: Reply with quote

I have just made a call (SkypeOut) and the problem is still there. Think I'll need to bounce this to the Skype forum, as suggested.

If only they'd open source...
_________________
Matthew Smith
Back to top
View user's profile Send private message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Thu Oct 05, 2006 5:12 pm    Post subject: Reply with quote

Smiffy, did you get your Skype fixed?
I have similar problems...
Back to top
View user's profile Send private message
smiffy
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 259
Location: SA.AU.AP.EARTH

PostPosted: Thu Oct 05, 2006 11:12 pm    Post subject: Reply with quote

Never resolved. I have to Skype completely and re-start it after any usage, just to get the audio back.

Never had problems with it when running on same hardware under SuSE - which is weird as switching from SuSE made most of the bugs go away...

You think we should raise this as a bug on Bugzilla? Maybe you could post some of your settings/details here and we can open a bug and refer to this forum thread.
_________________
Matthew Smith
Back to top
View user's profile Send private message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Fri Oct 06, 2006 6:07 pm    Post subject: Reply with quote

I am running AMD64, what about you?

Skype used to work very well with gentoo and my USB phone. Then after upgrading Skype in May or June this summer, I got the exact same problem as you. Tried to find a solution but gave up after some time.
Dualbooting into Windows XP with the exact same hardware worked with Skype.
I have since bought an USB soundcard (Creatives SB Live! external). The new soundcard somehow interferes with the phone, or I have dropped the phone on the floor one time too many :(

Now when I have the external soundcard plugged in, Skype wont find the phone device at all. I have to unplug and plug it in before I start Skype in order to see the device in the options for Skype. I have the same problem with Skype in Windows XP.

I have to do some more research without having the new soundcard plugged in.
Back to top
View user's profile Send private message
smiffy
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 259
Location: SA.AU.AP.EARTH

PostPosted: Sun Oct 08, 2006 11:09 pm    Post subject: Reply with quote

Quote:
I am running AMD64, what about you?


Ordinary x86 (32 bit) - Athlon XP2000 on one machine, PIII Coppermine on another.

I'd try it on my Sun Blade 100, but somewhat doubt that Skype has made a binary for Sparc Linux!

The sound device that I am using (which used to work fine) is a Logitech USB headset - actually designed for PlayStation, but works (or worked) very well with Skype under SuSE Linux 9.1

As Skype is making its money from Skype In, Skype Out and voicemail, I really wish that they would GPL their code - get it out in the community and we would stand a chance of it actually working...
_________________
Matthew Smith
Back to top
View user's profile Send private message
defenderBG
l33t
l33t


Joined: 20 Jun 2006
Posts: 817

PostPosted: Sun Oct 08, 2006 11:22 pm    Post subject: Reply with quote

well, i had the same problem... (now i cannot start skype at all... but that is another thing...)
i solved your problem like this:

kde menu > control center > sound and multimedia > sound system:
in the bottom there is the "automaticly deactivate, when idle for" (remember by heart...) make the value 5 sec. If you are using the latest, there should be somewhere on the top something like: enable fullduplex (if disabled: enable), if it is not there, then search in the hardware tab of the sound system... that should do the trick...
Back to top
View user's profile Send private message
smiffy
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 259
Location: SA.AU.AP.EARTH

PostPosted: Mon Oct 09, 2006 3:34 am    Post subject: Reply with quote

Interesting - I will give that a try. Tell me, do you have arts installed? I still have Skype (and everything else) set up with USE="-arts". If you do, I may be able to get my system back to a "normal" configuration...
_________________
Matthew Smith
Back to top
View user's profile Send private message
defenderBG
l33t
l33t


Joined: 20 Jun 2006
Posts: 817

PostPosted: Mon Oct 09, 2006 5:53 am    Post subject: Reply with quote

well... yes i had back then arts installed... actually it allows you to have multiple sound-using programms...

there is a good wiki... you might find it usefull:
http://gentoo-wiki.com/HOWTO_ALSA_Complete_(includes_dmix)
Back to top
View user's profile Send private message
smiffy
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 259
Location: SA.AU.AP.EARTH

PostPosted: Fri Oct 20, 2006 10:54 pm    Post subject: Reply with quote

I have now had time to test this - the sound system timeout may have been the issue for defenderBG, but is not the full answer.

After doing some checks, I found that I had no sound system running in KDE at all.

I have since dumped KDE (too much of a resource hog) and have moved to Fluxbox, which has no sound system. The problem persists.

I can make maybe two calls to echo123, but after that (and sometimes after only one call), I still get the "problem with sound device" error.

The only way to ensure that Skype will work is to close it and restart it after every call. Think it's time this one was lodged on Bugzilla.
_________________
Matthew Smith
Back to top
View user's profile Send private message
smiffy
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 259
Location: SA.AU.AP.EARTH

PostPosted: Fri Oct 20, 2006 11:11 pm    Post subject: Reply with quote

I have now reported this as a bug:
https://bugs.gentoo.org/show_bug.cgi?id=152174
_________________
Matthew Smith
Back to top
View user's profile Send private message
andriy155
n00b
n00b


Joined: 05 Feb 2006
Posts: 65
Location: Kyiv, Ukraine

PostPosted: Sun Oct 22, 2006 6:16 am    Post subject: Reply with quote

What version of Skype are you using?
I had a similar issue with 1.2 but it disappeared with the 1.3 build.
However, there a new problem with the latest update 1.3.0.53-r1: the uplink does not seem to be working - basically the other party cannot hear you. If you are using any other version but 1.3.0.53-r1, I would not recommend upgrading to it, but rather to wait until the new release is available.


Last edited by andriy155 on Mon Oct 23, 2006 2:48 am; edited 1 time in total
Back to top
View user's profile Send private message
smiffy
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 259
Location: SA.AU.AP.EARTH

PostPosted: Mon Oct 23, 2006 2:46 am    Post subject: Reply with quote

1.2.0.18.

I'll wait to see what the developers say.

Just wish I could drop all voice communications in favour of portable e-mail ;-)
_________________
Matthew Smith
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum