From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 4 22:15:19 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 65B2416A421 for ; Mon, 4 Feb 2008 22:15:19 +0000 (UTC) (envelope-from xistence@0x58.com) Received: from mailexchange.osnn.net (1e.66.5646.static.theplanet.com [70.86.102.30]) by mx1.freebsd.org (Postfix) with SMTP id 1B19513C4E3 for ; Mon, 4 Feb 2008 22:15:19 +0000 (UTC) (envelope-from xistence@0x58.com) Received: (qmail 39579 invoked by uid 0); 4 Feb 2008 22:11:30 -0000 Received: from unknown (HELO ?168.158.222.24?) (xistence@0x58.com@168.158.222.24) by mailexchange.osnn.net with SMTP; 4 Feb 2008 22:11:30 -0000 Message-Id: <954C22ED-D865-4067-9FDE-4002EB445AED@0x58.com> From: Bert JW Regeer To: Ulrich Spoerlein In-Reply-To: <20080204215250.GA1526@roadrunner.spoerlein.net> Content-Type: multipart/signed; boundary=Apple-Mail-2-517790282; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v915) Date: Mon, 4 Feb 2008 15:14:49 -0700 References: <47A4FF5F.9010604@gmail.com> <200802041003.22658.jhb@freebsd.org> <20080204215250.GA1526@roadrunner.spoerlein.net> X-Mailer: Apple Mail (2.915) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:15:19 -0000 --Apple-Mail-2-517790282 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Feb 4, 2008, at 14:52 , Ulrich Spoerlein wrote: > 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. I just booted up my desktop machine at home, I don't have sound enabled by default, so I loaded the module that is required. Before the module was loaded: ls -lah /dev/dsp* ls: No match. After the module was loaded (I just load snd_driver). Nothing else was executed after the module was loaded. ls -lah /dev/dsp* crw-rw-rw- 1 root wheel 0, 106 Jan 26 05:24 /dev/dsp0.0 crw-rw-rw- 1 root wheel 0, 109 Jan 26 05:24 /dev/dsp0.1 crw-rw-rw- 1 root wheel 0, 112 Jan 26 05:24 /dev/dsp0.2 crw-rw-rw- 1 root wheel 0, 115 Jan 26 05:24 /dev/dsp0.3 crw-rw-rw- 1 root wheel 0, 118 Jan 26 05:24 /dev/dsp0.4 crw-rw-rw- 1 root wheel 0, 122 Jan 26 05:24 /dev/dsp0.5 crw-rw-rw- 1 root wheel 0, 107 Jan 26 05:24 /dev/dspW0.0 crw-rw-rw- 1 root wheel 0, 110 Jan 26 05:24 /dev/dspW0.1 crw-rw-rw- 1 root wheel 0, 113 Jan 26 05:24 /dev/dspW0.2 crw-rw-rw- 1 root wheel 0, 116 Jan 26 05:24 /dev/dspW0.3 crw-rw-rw- 1 root wheel 0, 119 Jan 26 05:24 /dev/dspW0.4 crw-rw-rw- 1 root wheel 0, 123 Jan 26 05:24 /dev/dspW0.5 crw-rw-rw- 1 root wheel 0, 121 Jan 26 05:24 /dev/dspr0.4 So what gives? Bert JW Regeer --Apple-Mail-2-517790282--