From owner-freebsd-questions@FreeBSD.ORG Thu Nov 13 12:26:01 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C52E116A4CE for ; Thu, 13 Nov 2003 12:26:01 -0800 (PST) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id E547B43FBD for ; Thu, 13 Nov 2003 12:25:58 -0800 (PST) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (localhost [127.0.0.1]) by fw.farid-hajji.net (8.12.10/8.12.10) with ESMTP id hADKPLfU015966; Thu, 13 Nov 2003 21:25:22 +0100 (CET) (envelope-from cpghost@cordula.ws) Date: Thu, 13 Nov 2003 21:25:21 +0100 (CET) Message-Id: <200311132025.hADKPLfU015966@fw.farid-hajji.net> From: "Cordula's Web" To: petre@kgb.ro In-reply-to: <200311132116.56297.petre@kgb.ro> (message from Petre Bandac on Thu, 13 Nov 2003 21:16:56 +0200) X-Mailer: Emacs-21.3.1/FreeBSD-4.9-STABLE References: <200311132059.07486.petre@kgb.ro> <200311131904.hADJ4pfU015701@fw.farid-hajji.net> <200311132111.39632.petre@kgb.ro> <200311132116.56297.petre@kgb.ro> cc: freebsd-questions@freebsd.org Subject: Re: sound question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cpghost@cordula.ws List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2003 20:26:01 -0000 > > > > play: /dev/dsp: Device busy > > > Perhaps esd is running and grabbing the sound device? > > 80418 ?? Ss 2:56.38 esd -terminate -nobeeps -as 2 -spawnfd > > so if I kill -9 the esd process, icq will start emitting sounds ? > unfortunately no, it will just "mute" my xmms session 1. Who started esd? 'root' or a non-root user? (ps axu) 2. Try fiddling with esd's flags? (man esd) I don't have a solution, but it's obvious that esd is opening /dev/dsp, and some programs like xmms or other sound apps communicate directly with esd, e.g. with a unix socket. If your app uses /dev/dsp directly, it will fail, because esd has locked it for itself. When I run mpg123, esd runs with the following params: $ ps ax | grep esd 15939 ?? Rs 0:03.23 esd -terminate -nobeeps -as 2 -spawnfd 5 It also opens this unix socket: $ sockstat | grep esd cpghost mpg123 15941 4 stream esd[15939]:10 cpghost esd 15939 6 stream (none) cpghost esd 15939 7 stream /tmp/.esd/socket cpghost esd 15939 10 stream /tmp/.esd/socket You could check the permissions of /tmp/.esd/socket Perhaps your sound app doesn't know how to use esd (you'll have to kill esd for this), or it knows, but can't, for some obscure reason. Of course, this is just a wild guess. -- Cordula's Web. http://www.cordula.ws/