From owner-freebsd-questions@FreeBSD.ORG Tue Dec 28 05:51:21 2004 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 A5B9C16A4CE for ; Tue, 28 Dec 2004 05:51:21 +0000 (GMT) Received: from pemaquid.safeport.com (pemaquid.safeport.com [204.156.12.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EF5343D2D for ; Tue, 28 Dec 2004 05:51:21 +0000 (GMT) (envelope-from doug@safeport.com) Received: from pemaquid.safeport.com (localhost [127.0.0.1]) iBS5pKlQ014574 for ; Tue, 28 Dec 2004 00:51:20 -0500 (EST) (envelope-from doug@safeport.com) Received: from localhost (doug@localhost)iBS5pJ64014571 for ; Tue, 28 Dec 2004 00:51:20 -0500 (EST) (envelope-from doug@safeport.com) X-Authentication-Warning: pemaquid.safeport.com: doug owned process doing -bs Date: Tue, 28 Dec 2004 00:51:19 -0500 (EST) From: doug@safeport.com To: freebsd-questions@freebsd.org In-Reply-To: <20041128235808.B17504@pemaquid.safeport.com> Message-ID: <20041227211714.L7651@pemaquid.safeport.com> References: <20041128162838.V8270@pemaquid.safeport.com> <41AA768F.2080606@gldis.ca> <20041128235808.B17504@pemaquid.safeport.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: /dev/dsp busy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2004 05:51:21 -0000 A suggestion from a Jan 2004 thread worked for me: Date: Sun, 25 Jan 2004 08:42:07 -0500 (EST) From: Stephen Martin To: geert.hendrickx@ua.ac.be Cc: freebsd-questions@freebsd.org Subject: Re: /dev/dsp: Device busy 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. In my case a reboot was required after changing the setting. This thread was describing FreeBSD 4.9 and kde 3.2. I am running 5.3R and kde 3.3.0. The /dev/dsp busy condition seems to occur across a number of PCs and sound cards. I had also added the following to /boot/device.hints: hint.pcm.0.at="isa" hint.pcm.0.irq="5" hint.pcm.0.drq="1" hint.pcm.0.flags="0x0" I have since removed these statements and have no evidence they had any effect. Other than the kde setting the only change related to sound is hw.snd.verbose=3 in /etc/sysctl.conf. On Mon, 29 Nov 2004 doug@safeport.com wrote: > Alas no - thank you for the suggestion. Following your lead I tried a number of > variations including turning ACPI off, any some other sysctl setting I found via > google. All with the same result. > > Next I removed load command from loader.conf and rebooted. No kde, no X server. > I then loaded and tried to unload the sound modules. sound.ko would not unload > presenting as busy. Is this a problem? It was suggested to me interrupt problem > at startup could cause this. I get the same result in single user mode. > > My commands: > > # kldstat > Id Refs Address Size Name > 1 7 0xc0400000 5cdad0 kernel > 2 14 0xc09ce000 537f0 acpi.ko > 3 1 0xc1675000 17000 linux.ko > > # kldload snd_maestro > pcm0: port 0x1400-0x14ff irq 5 at device 8.0 on pci0 > > pcm0: > pcm0: [GIANT-LOCKED] > > root@mneme:~# kldunload snd_maestro > pcm0: detached > # kldunload sound > kldunload: attempt to unload file that was loaded by the kernel > kldunload: can't unload file: Device busy > > > On Sun, 28 Nov 2004, Jeremy Faulkner wrote: > > > doug@safeport.com wrote: > > > I need help in finding the reason for the /dev/dsp busy message. fstat does not > > > show any process using /dev/dsp. > > > > > > I am running 5.3 with xorg, kde 3.3. When KDE starts, /dev/dsp tests busy which > > > directs arts to /dev/null. There are no processes using /dev/dsp. I can play > > > CDs using either kcd or 'cdcontrol -f /dev/acd0 play 1', so I think the sound > > > card is setup okay. > > > > > > However something is wrong since 'cat filename > /dev/dsp' produces no sound. > > I am assuming that the above means this is not a KDE problem. Is this correct? > > > > My configuration: > [cut] > > > Thanks for any pointers. > > > > > > > try as root: > > sysctl -w hw.snd.maxautovchans=4 > > > > -- > > Jeremy Faulkner > > Resume: http://www.gldis.ca/gldisater/resume.html > > > > _____ > Douglas Denault > http://www.safeport.com > doug@safeport.com > Voice: 301-469-8766 > Fax: 301-469-0601 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > _____ Douglas Denault http://www.safeport.com doug@safeport.com Voice: 301-469-8766 Fax: 301-469-0601