From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 4 22:14:22 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5125D16A417 for ; Mon, 4 Feb 2008 22:14:22 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from acme.spoerlein.net (acme.spoerlein.net [217.172.44.86]) by mx1.freebsd.org (Postfix) with ESMTP id C0E4013C468 for ; Mon, 4 Feb 2008 22:14:21 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (e180166101.adsl.alicedsl.de [85.180.166.101]) by acme.spoerlein.net (8.14.1/8.14.1) with ESMTP id m14Lr38P070237 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 4 Feb 2008 22:53:04 +0100 (CET) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (localhost [127.0.0.1]) by roadrunner.spoerlein.net (8.14.2/8.14.2) with ESMTP id m14LqpRq006484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 4 Feb 2008 22:52:51 +0100 (CET) (envelope-from uspoerlein@gmail.com) Received: (from uqs@localhost) by roadrunner.spoerlein.net (8.14.2/8.14.2/Submit) id m14LqoxP006483; Mon, 4 Feb 2008 22:52:50 +0100 (CET) (envelope-from uspoerlein@gmail.com) X-Authentication-Warning: roadrunner.spoerlein.net: uqs set sender to uspoerlein@gmail.com using -f Date: Mon, 4 Feb 2008 22:52:50 +0100 From: Ulrich Spoerlein To: Bert JW Regeer Message-ID: <20080204215250.GA1526@roadrunner.spoerlein.net> Mail-Followup-To: Bert JW Regeer , FreeBSD Hackers References: <47A4FF5F.9010604@gmail.com> <200802041003.22658.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Cc: FreeBSD Hackers Subject: Re: /dev/dsp disappeared after power outage X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2008 22:14:22 -0000 On Mon, 04.02.2008 at 13:00:40 -0700, Bert JW Regeer wrote: > On Feb 4, 2008, at 08:03 , John Baldwin wrote: > > On Saturday 02 February 2008 06:40:15 pm Aryeh M. Friedman wrote: > >> I just had a power outage and when it came back /dev/dsp0.0 was > >> missing from the devices. the kern module loaded fine and detected > >> the card correctly (according to dmesg, sysctl and /dev/sndstat) but > >> neither the above or /dev/pcm exists. After rebooting the problem > >> remains. Any ideas how to fix it? > > > > Nothing to fix. This is how devfs device cloning works. > > Nothing to fix? The sound card that is correctly detected by the kernel > module is not being created in /dev, ONLY after he had a power outage. It is > not even coming back when he reboots the machine. > > I don't have any suggestions, I just don't believe "Nothing to fix" is the > right answer. Sigh, AFAIK dev cloning works by creating the device nodes when open()ed. Using 'ls /dev/dsp*' will not open() any devices, so nothing is created. He should use 'ls /dev/dsp0 /dev/dsp0.0' and then the devices should appear. Try it for yourself, do 'ls /dev/dsp*' then 'ls /dev/dsp.8' Not that anything usefull can be done with ls(1) to get sound :) Cheers, Ulrich Spoerlein -- It is better to remain silent and be thought a fool, than to speak, and remove all doubt.