Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2004 06:49:22 +0100
From:      Melvyn Sopacua <freebsd-questions@webteckies.org>
To:        freebsd-questions@FreeBSD.org
Subject:   Re: /dev/dsp "device busy" - one possible solution
Message-ID:  <200402090649.22746.freebsd-questions@webteckies.org>
In-Reply-To: <20040209003742.5FE0C5434@netcom1.netcom.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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     
root@sarevok.lan.webteckies.org:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG  
i386
=======================================================

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAJx9iOv9JNmfFN5URAvC9AJ9j5LD07SlKBZpG2Q3ghBwteB2HCQCcCE3e
zsC704CMTXDtvs0kg2cbdPI=
=7KNK
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402090649.22746.freebsd-questions>