From owner-freebsd-questions@FreeBSD.ORG Tue Mar 2 15:24:57 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D38EC106566C for ; Tue, 2 Mar 2010 15:24:57 +0000 (UTC) (envelope-from npapke@acm.org) Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 9E4448FC08 for ; Tue, 2 Mar 2010 15:24:57 +0000 (UTC) Received: from pd3ml3so-ssvc.prod.shaw.ca ([10.0.141.149]) by pd2mo1so-svcs.prod.shaw.ca with ESMTP; 02 Mar 2010 08:24:57 -0700 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=1 a=3E9INaMoOeYA:10 a=VF9RaR9bft6c8SsOr3WyFg==:17 a=N54-gffFAAAA:8 a=lvbMJxvVAAAA:8 a=qb8heqiDX22YMuFm4CcA:9 a=ZWfKBw5P0smc9tjnQHfLoKN4avwA:4 a=nAPXUAfsBmEA:10 Received: from unknown (HELO proven.lan.provenpath.ca) ([24.85.241.34]) by pd3ml3so-dmz.prod.shaw.ca with ESMTP; 02 Mar 2010 08:24:57 -0700 Received: from proven.lan.provenpath.ca (localhost [127.0.0.1]) by proven.lan.provenpath.ca (8.14.4/8.14.4) with ESMTP id o22FOuYB006296 for ; Tue, 2 Mar 2010 07:24:56 -0800 (PST) (envelope-from npapke@acm.org) Received: (from npapke@localhost) by proven.lan.provenpath.ca (8.14.4/8.14.4/Submit) id o22FOuH8006293 for freebsd-questions@freebsd.org; Tue, 2 Mar 2010 07:24:56 -0800 (PST) (envelope-from npapke@acm.org) X-Authentication-Warning: proven.lan.provenpath.ca: npapke set sender to npapke@acm.org using -f From: Norbert Papke To: freebsd-questions@freebsd.org Date: Tue, 2 Mar 2010 07:24:56 -0800 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.5; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201003020724.56200.npapke@acm.org> Subject: Re: Lost audio after new Video card installation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 15:24:58 -0000 On March 1, 2010, Carmel wrote: > I was attempting to upgrade a Gateway GT5220 PC. The machine was > running FreeBSD-7.2 successfully. The sound system was functioning > correctly and gMplayer and Mplayer worked fine. The machine was using a > nVidia GeForce 6150 LE on-board card. I installed a nVidia GeForce GT > 220 card. The old on-board card did not support DVI. > > Now, the video is fine; however, there is no audio. Mplayer and > gMplayer both freeze when attempting to play or view anything. > > I have no idea how to debug this. Since I did not touch the audio, I > cannot figure it out. > > I did have a script that ran upon boot-up: > > /sbin/sysctl hw.snd.pcm0.vchans=4 > /sbin/sysctl dev.pcm.0.play.vchans=4 > /sbin/sysctl dev.pcm.0.rec.vchans=4 > /sbin/sysctl hw.snd.maxautovchans=16 > mixer vol 100:100 pcm 100:100 speaker 100:100 line 100:100 mic 0:0 cd > 100:100 =rec mic > > Previously, it ran without incident. Now, it produces this output: > > sysctl: unknown oid 'hw.snd.pcm0.vchans' > dev.pcm.0.play.vchans: 4 -> 4 > sysctl: dev.pcm.0.rec.vchans: Operation not supported by device > hw.snd.maxautovchans: 16 -> 16 > mixer: unknown device: vol > usage: mixer [-f device] [-s | -S] [dev [+|-][voll[:[+|-]volr]] ... > mixer [-f device] [-s | -S] recsrc ... > mixer [-f device] [-s | -S] {^|+|-|=}rec rdev ... > > This is from 'dmesg' > > dmesg -a|grep -i -A8 -B2 220 > pci3: on pcib3 > vgapci0: port 0xbc00-0xbc7f mem > 0xfb000000-0xfbffffff,0xd0000000-0xdfffffff,0xee000000-0xefffffff irq 16 > at device 0.0 on pci3 nvidia0: on vgapci0 > vgapci0: child nvidia0 requested pci_enable_busmaster > vgapci0: child nvidia0 requested pci_enable_io > vgapci0: child nvidia0 requested pci_enable_io > nvidia0: [GIANT-LOCKED] > nvidia0: [ITHREAD] > hdac0: mem > 0xfcffc000-0xfcffffff irq 16 at device 0.1 on pci3 hdac0: HDA Driver > Revision: 20090624_0136 > hdac0: [ITHREAD] > > I would really appreciate any assistance I could get. I really would > like the audio to work on this machine again. Try setting the folllowing sysctl knob: hw.snd.default_unit=1 You will also have to change the "dev.pcm.0" to "dev.pcm.1" in your script. If "1" doesn't work, try "2". -- Norbert Papke. npapke@acm.org http://saveournet.ca Protecting your Internet's level playing field