Bug 197430 - kded4 does not release /dev/dsp and blocks sound
Summary: kded4 does not release /dev/dsp and blocks sound
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-21 22:30 UTC by anton
Modified: 2020-09-28 23:37 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
.asoundrc file (2.66 KB, text/plain)
2009-08-25 17:08 UTC, Bartłomiej Zimoń
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anton 2009-06-21 22:30:07 UTC
Version:            (using KDE 4.2.90)
OS:                Linux
Installed from:    SuSE RPMs

Hi,

After some time working in kde my skype stops making calls telling me the error "problem with audio playback".

After restarting computer if works ok for some time, but after a while starts showing me this error again.

/dev/dsp is set to be used for all audio devices in skype options.

If I run it from console, it shows the following error:
> skype 
RtApiOss: OSS playback device (/dev/dsp) is busy 


fuser for /dev/dsp shows the following output:

> fuser -m -v /dev/dsp 
 USER PID ACCESS COMMAND 
/dev/dsp: 
 benderamp 1336 f.... konqueror 
 benderamp 1338 f.... kio_file 
 benderamp 1344 f.... kio_http 
 benderamp 1434 f.... kio_http 
 benderamp 3418 F...m kded4 
 benderamp 3444 f.... kwrapper4 
 benderamp 3445 f.... ksmserver 
 benderamp 3449 f.... kglobalaccel 
 benderamp 3459 f.... plasma-desktop 
 benderamp 3460 F.... knotify4 
 benderamp 3510 f.... kaccess


so, kded4 is the process who uses /dev/dsp. I also had amarok shown in this list with "m" flag, but I killed it and only kded4 has left.

I have found out that kded4 is the core kde daemon. After killing it the whole desktop has fallen apart (plasma crashed), but skype started making calls.

I am wondering if there is another way to make kded4 release /dev/dsp without such radical effect.
Comment 1 Dario Andres 2009-06-21 22:42:15 UTC
AFAIK kded4 doesn't need to use /dev/dsp directly. May be your Phonon configuration points to the OSS device and therefore the whole multimedia of KDE uses it. Have you tried to switch the devices order in the Multimedia option in System Settings ? You may need to relogin/restart after the change(I'm not really sure about this)
Thanks
Comment 2 anton 2009-06-22 09:02:31 UTC
Hi!

Thank's for reply. I could not find a place where to specify some device to phonon. 

I have opened system settings/multimedia. Here I have 2 tabs:

- System preferences - I can see a read-only tree audio output/capture categories and all of them have "HDA Intel (ALC268 Analog)" value to the right

- The 2nd tab backend allows me to choose from xine/gstreamer (xine is preferred in my case) and some deinterlacing options on the right.

I can't see where phonone might be pointed to oss or some other device.

Thank you
Comment 3 anton 2009-06-22 11:47:09 UTC
Ok, this is what I did

1. Login to kde (amarok is not started) - skype works, though fuser -m -v /dev/dsp shows that kded4 uses /dev/dsp

2. Start amarok (do not start playing music) - skype works

3. Start playback in amarok - skype stops working (problem with audio playback message)

4. Stop playback in amarok (press stop - not pause) - still skype does not work

5. Exit amarok - skype works again


I the 4th point is already a problem, and the 5th point does not solve the problem in 100% of cases - while reporting the original post, I did exit amarok and skype still did not work and that was not single occasion.


Additionaly I have got advice on another forum:

6. Running skype with "aoss skype" command solves the problem in all cases - I can even call with skype when amarok plays music in background.
Comment 4 Sergei Naumov 2009-08-16 16:13:03 UTC
I tried "aoss skype" and it does not work for me. The problem with amarok+skype stays I am afraid.
Comment 5 Bartłomiej Zimoń 2009-08-25 17:08:03 UTC
Created attachment 36441 [details]
.asoundrc file

save this file in your home dir as .asoundrc
in SystemSettings/Multimedia move "Demixer" to the top in all places.

Now you have skype and amarok and it work wonderfull.

please someone to close this bug
Comment 6 anton 2009-08-25 21:08:51 UTC
Unfortunately this did not help. I have created .asoundrc file with the specified contents, then rebooted (not sure if that was necessary). Then opened SystemSettings/Multimedia and moved new Demixer item (it did not exist before I have saved .asoundrc) on top of "HDA Intel (ALC268 Analog)" (which existed before) for "Audio output" node and all its children.

Still, skype reports "problem with audio playback" after amarok "play" button was pressed once (stopping playback does not help). Rebooting after "Demixer" were moved up also did not help.
Comment 7 Andrew Crouthamel 2018-11-02 23:02:46 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Andrew Crouthamel 2018-11-16 05:23:30 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 9 Nate Graham 2020-09-28 23:37:28 UTC
No response; assuming it was fixed since then.