Re: /dev/dsp device busy - one possible solution

2004-02-08 Thread Melvyn Sopacua
On Monday 09 February 2004 01:37, Mike Harding wrote:

 I was playing around with kde 3.2 and a crashing artsd was locking up
 my sound system - any further attempts to use sound from gnome or xmms
 or anything failed with

 /dev/dsp - device busy

 messages.  fstat and lsof showed nothing holding the device.  A reboot
 would fix it, but why reboot FreeBSD?

 I then remembered from a while ago that if I did the following...

 # cat /dev/dsp

 and then of course cntl-C to stop the output

 the device was no longer busy!

What would be interesting to know, if that output stops sometime. Try:
cat /dev/dsp  /var/tmp/out.wav

That would mean, that arts has something written to the device upon crash and 
the device blocks, waiting for somebody to unload it.
-- 
Melvyn

===
FreeBSD sarevok.webteckies.org 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Jan 28 
18:01:18 CET 2004 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG  
i386
===


pgp0.pgp
Description: signature


Re: /dev/dsp: Device busy

2004-01-27 Thread Melvyn Sopacua
On Sunday 25 January 2004 15:25, Geert Hendrickx wrote:

 Unfortunately, when I click Ok, KDE wants to restart the Arts daemon, and
 then, tragically, it complains dat /dev/dsp is busy...  I think artsd just
 doesn't free the device when it is killed manually, and therefore it
 won't restart either.  But I'll try it again on my next reboot, I think
 this may solve the problem!

Just recode your mp3's to ogg files and use `ogg123 -d arts' or Noatun, use 
kmplayer for movies and then think hard what you need esd/oss for again -:).

I can say that the autosuspend feature works for me(tm) on -CURRENT and KDE 
3.2-CVS, which will be released real soon now. Just make sure you disable a 
lot of unneeded sounds in the desktop, like 'shwoosh' on window resize, 
'whammm' on window closure and so on, as these add to the 5 seconds.
-- 
Melvyn

===
FreeBSD sarevok.webteckies.org 5.2-CURRENT FreeBSD 5.2-CURRENT #3: Tue Dec 30 
14:31:47 CET 2003 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG  i386
===


pgp0.pgp
Description: signature


Re: /dev/dsp: Device busy

2004-01-26 Thread anubis
On Sat, 24 Jan 2004 11:54 pm, Geert Hendrickx wrote:
 Hello,

 I have a problem playing sounds in FreeBSD.  Sometimes it works, sometimes
 it doesn't, and then I get the following error message:

 /dev/dsp: Device busy

 but lsof | grep dsp yields nothing.

 Can anyone help me with this mystery?  :-)

 Thanks in advance,

 GH

I dont know if this is the problem but it sounds similar to one I had 
recently.  Sound was working then I portupgraded some things.  Sound was a 
bit iffy for a while until I updated a bunch of other stuff, actually 
everything.  It worked ok after that.  Now running 5.2. 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: Device busy

2004-01-25 Thread Geert Hendrickx
On Sunday 25 January 2004 02:46, George Vagner wrote:
 if your dual booting i found you must turn off power before you boot into
 bsd
 something with windows on a restart dont fully reset the soundcard on
 mine.
 toshiba satellite S2805-401 P3 700 with yamaha 741 soundcard.

No Windows involved here.  :-) 

Besides, it works fine when I reboot, it only stops working after a while.  

GH

-- 
powered by FreeBSD

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: Device busy

2004-01-25 Thread Daniela
On Sunday 25 January 2004 09:51, Geert Hendrickx wrote:
 On Sunday 25 January 2004 02:46, George Vagner wrote:
  if your dual booting i found you must turn off power before you boot into
  bsd
  something with windows on a restart dont fully reset the soundcard on
  mine.
  toshiba satellite S2805-401 P3 700 with yamaha 741 soundcard.

 No Windows involved here.  :-)

 Besides, it works fine when I reboot, it only stops working after a while.

Check out sysctl:
hw.snd.maxautovchans
hw.snd.pcm0.vchans

That way, you can give every app its own channel. No more busy soundcards.
There is one drawback: If you want just one app to be able to play sound at a 
time, you can only remove write permission for the other channels.

Daniela


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: Device busy

2004-01-25 Thread Stephen Martin
Geert,

I was having this specific problem when trying to use mplayer. What I did
was change the Autosuspend if idle for setting. It can be found in
Control Center - Sounds  Multimedia - Sound System - aRTs tab (feels
vaguely like describing a windows problem :). I set mine at 5 seconds.
Your's will of coarse depend.

Stephen L. Martin

 Hello,

 I have a problem playing sounds in FreeBSD.  Sometimes it works, sometimes
 it
 doesn't, and then I get the following error message:

 /dev/dsp: Device busy

 but lsof | grep dsp yields nothing.

 Can anyone help me with this mystery?  :-)

 Thanks in advance,

 GH
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: Device busy

2004-01-25 Thread Geert Hendrickx
On Sunday 25 January 2004 14:42, Stephen Martin wrote:
 Geert,

 I was having this specific problem when trying to use mplayer. What I did
 was change the Autosuspend if idle for setting. It can be found in
 Control Center - Sounds  Multimedia - Sound System - aRTs tab (feels
 vaguely like describing a windows problem :). I set mine at 5 seconds.
 Your's will of coarse depend.

 Stephen L. Martin

That looks like the solution!  :-)  

Unfortunately, when I click Ok, KDE wants to restart the Arts daemon, and 
then, tragically, it complains dat /dev/dsp is busy...  I think artsd just 
doesn't free the device when it is killed manually, and therefore it won't 
restart either.  But I'll try it again on my next reboot, I think this may 
solve the problem!  

Thanks!  

GH

-- 
powered by FreeBSD

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: Device busy

2004-01-24 Thread Cordula's Web
 /dev/dsp: Device busy

esd is the culprit.

-- 
Cordula's Web. http://www.cordula.ws/

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: Device busy

2004-01-24 Thread Geert Hendrickx
On Saturday 24 January 2004 16:00, Cordula's Web wrote:
  /dev/dsp: Device busy

 esd is the culprit.

But esd is not running...  I checked it with ps.  

Besides, esdplay foo.wav gives the same error.  

GH

-- 
powered by FreeBSD/Postfix/KMail

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: Device busy

2004-01-24 Thread Geert Hendrickx
On Saturday 24 January 2004 16:15, Michael Clark wrote:
 Do you have a onboard sound card as well as a pci sound card?

 I use to run into this when I forgot to disable my onboard sound in bios.

I don't think so.  It's a laptop (Toshiba), and I doubt they'd put a second 
sound card in it.  

I really don't think it's a hardware problem, since it sometimes works under 
FreeBSD, and it always worked under Linux, without any problems.  

I guess arts has something to do with it, because I use KDE now, and I didn't 
use it with Linux.  However, as said, lsof | grep dsp yields no results.  

GH

-- 
powered by FreeBSD/Postfix/KMail

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: Device busy

2004-01-24 Thread Cordula's Web
   /dev/dsp: Device busy
  esd is the culprit.
 But esd is not running...  I checked it with ps.  

I'm having the same problem with mpg123, which uses esd:

$ ps ax|grep esd
$ mpg123 somefile.mp3
/dev/dsp: Device busy
audio: Device busy
$ ps ax|grep esd
11041  ??  Ss 0:00.14 esd -terminate -nobeeps -as 2 -spawnfd 5
$ kill 11041
$ ps ax|grep esd
$ mpg123 somefile.mp3

This happens every time. It's definitively esd that doesn't let
go of /dev/dsp, and for some reason, can't accept connections
on its unix socket /tmp/.esd/socket. It's perhaps related to
permissions (who starts esd)? I dunno exactly.

I'm using a brute-force work-around here:

#!/bin/sh
# playmp3.sh -- brute force mpg123 (Bug: /dev/dsp: Device busy)
until (mpg123 $1)
do
  sleep 1;
done

Ugly, but better than nothing.

-- 
Cordula's Web. http://www.cordula.ws/

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: Device busy

2004-01-24 Thread Dorin H.

--- Geert Hendrickx [EMAIL PROTECTED] wrote:
 Hello, 
 
 I have a problem playing sounds in FreeBSD. 
 Sometimes it works, sometimes it 
 doesn't, and then I get the following error message:
 
 
 /dev/dsp: Device busy
 
 but lsof | grep dsp yields nothing.  
 
 Can anyone help me with this mystery?  :-)
 
 Thanks in advance, 
 
 GH
 

Same here. Toshiba laptop. FBSD 4.9. KDE 3.1.4.  
/dev/dsp is from time to time hold by artsd.

  Problem is, it is hold even when nothing is played.
fstat /dev/dsp shows the problem.
If anyone find a solution, pls. let me know.
TIA,
/Dorin.


 -- 
 powered by FreeBSD/Postfix/KMail
 
 ___
 [EMAIL PROTECTED] mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: Device busy

2004-01-24 Thread George Vagner
if your dual booting i found you must turn off power before you boot into
bsd
something with windows on a restart dont fully reset the soundcard on
mine.
toshiba satellite S2805-401 P3 700 with yamaha 741 soundcard.

- Original Message - 
From: Dorin H. [EMAIL PROTECTED]
To: Geert Hendrickx [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, January 24, 2004 8:19 PM
Subject: Re: /dev/dsp: Device busy



 --- Geert Hendrickx [EMAIL PROTECTED] wrote:
  Hello,
 
  I have a problem playing sounds in FreeBSD.
  Sometimes it works, sometimes it
  doesn't, and then I get the following error message:
 
 
  /dev/dsp: Device busy
 
  but lsof | grep dsp yields nothing.
 
  Can anyone help me with this mystery?  :-)
 
  Thanks in advance,
 
  GH
 

 Same here. Toshiba laptop. FBSD 4.9. KDE 3.1.4.
 /dev/dsp is from time to time hold by artsd.

   Problem is, it is hold even when nothing is played.
 fstat /dev/dsp shows the problem.
 If anyone find a solution, pls. let me know.
 TIA,
 /Dorin.


  -- 
  powered by FreeBSD/Postfix/KMail
 
  ___
  [EMAIL PROTECTED] mailing list
 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
[EMAIL PROTECTED]

 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free web site building tool. Try it!
 http://webhosting.yahoo.com/ps/sb/
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: Device busy

2004-01-24 Thread Jeff Elkins
On Saturday 24 January 2004 8:19 pm, Dorin H. wrote:
--- Geert Hendrickx [EMAIL PROTECTED] wrote:
 Hello,

 I have a problem playing sounds in FreeBSD.
 Sometimes it works, sometimes it
 doesn't, and then I get the following error message:


 /dev/dsp: Device busy

 but lsof | grep dsp yields nothing.

 Can anyone help me with this mystery?  :-)

 Thanks in advance,

 GH

Same here. Toshiba laptop. FBSD 4.9. KDE 3.1.4.
/dev/dsp is from time to time hold by artsd.

  Problem is, it is hold even when nothing is played.
fstat /dev/dsp shows the problem.
If anyone find a solution, pls. let me know.
TIA,
/Dorin.

While it's not a real solution, I told KDE not to start arts. Most of the 
sound apps I use are non-KDE, so thus far, I don't miss it.

Oddly enough, this isn't a problem with debian. I'm too new to bsd to have 
figured out why one OS works and one doesn't.

Jeff

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: device busy

2003-09-01 Thread Alexander Farber
Do you maybe run KDE and arts which blocks /dev/dsp?

On Mon, Sep 01, 2003 at 09:54:34AM -0400, Monah Baki wrote:
 I'm using Freebsd 4.8 and mozilla 1.4. Whenever I go to google.com or yahoo.com to 
 search for 
 something, I get /dev/dsp: Device busy. I can get to any url, but can't seem to 
 search for 
 anything (cnn.com, in the dialog box to getting my home town weather, will not work).
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: device busy

2003-09-01 Thread Monah Baki
I'm running windowmaker


On Mon, 1 Sep 2003 13:46:52 +, Alexander Farber wrote
 Do you maybe run KDE and arts which blocks /dev/dsp?
 
 On Mon, Sep 01, 2003 at 09:54:34AM -0400, Monah Baki wrote:
  I'm using Freebsd 4.8 and mozilla 1.4. Whenever I go to google.com or yahoo.com to 
search for 
  something, I get /dev/dsp: Device busy. I can get to any url, but can't seem to 
  search for 
  anything (cnn.com, in the dialog box to getting my home town weather, will not 
  work).
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/dsp: device busy

2003-09-01 Thread mpd
On Mon, Sep 01, 2003 at 10:39:59AM -0400, Monah Baki wrote:
 I'm running windowmaker

Try installing the sysutils/lsof port, and run lsof | grep dsp


 
 
 On Mon, 1 Sep 2003 13:46:52 +, Alexander Farber wrote
  Do you maybe run KDE and arts which blocks /dev/dsp?
  
  On Mon, Sep 01, 2003 at 09:54:34AM -0400, Monah Baki wrote:
   I'm using Freebsd 4.8 and mozilla 1.4. Whenever I go to google.com or yahoo.com 
   to 
 search for 
   something, I get /dev/dsp: Device busy. I can get to any url, but can't seem to 
   search for 
   anything (cnn.com, in the dialog box to getting my home town weather, will not 
   work).

-- 
___
 
ONE TURPENTINE FOR THE MAN, COMING RIGHT UP!
- Mr. Nutty from ONE GLASS OF TURPENTINE
COMING RIGHT UP
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]