From owner-freebsd-questions@FreeBSD.ORG Mon Aug 26 21:48:42 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3524068B for ; Mon, 26 Aug 2013 21:48:42 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-ob0-x22d.google.com (mail-ob0-x22d.google.com [IPv6:2607:f8b0:4003:c01::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E598D2359 for ; Mon, 26 Aug 2013 21:48:41 +0000 (UTC) Received: by mail-ob0-f173.google.com with SMTP id ta17so3877390obb.32 for ; Mon, 26 Aug 2013 14:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xN0KyV21ycZiTksz+2jtjF/P5iiBs4wdD+aZDp80nnk=; b=my7bcYQjkj0J7F+4gUtX12ScuRNZgRhGdKhVETSSwmFHGsOfuUFuzacHI3FrWyI83k SWxJEvOHZ1u00mKxP7pyMm+Sk1Fgb2E3dlgdCYKGYLeu6Xq4qZUqGxnSq1qWsfI1xvzZ PxykLJ4B31Oi+tytBJk5kuVscjB+LQQxqw/7cjM9jfEGPCLdez62o+gjVKxo/si1otJT yUqAh48th1uSGcb4vjBxffwfacbUwYFPJ72tKRBlHmD3ifCgo9o4+QAAaAASTQB6NLRX N6753llp8ZGK/RtAab7TdP99sb9299Hw1ypNeXRZ8+B1twpGFy8qhEaG6w7vaTcQGcJR /Zmg== MIME-Version: 1.0 X-Received: by 10.60.94.39 with SMTP id cz7mr15924621oeb.17.1377553721024; Mon, 26 Aug 2013 14:48:41 -0700 (PDT) Received: by 10.76.156.8 with HTTP; Mon, 26 Aug 2013 14:48:40 -0700 (PDT) In-Reply-To: References: Date: Mon, 26 Aug 2013 16:48:40 -0500 Message-ID: Subject: Re: had sound working, updated machine now lost sound From: Antonio Olivares To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Aug 2013 21:48:42 -0000 Dear all, Following advice from thread(s) : http://forums.pcbsd.org/showthread.php?t=13976 http://forums.freebsd.org/showthread.php?t=5136 root@grullahighschool:~ # sysctl hw.snd.default_unit=0 hw.snd.default_unit: 1 -> 0 Got the sound working like it was. How do I get it to stick across reboots? Which would be the preferred way? ie, use file root@grullahighschool:~ # cat /etc/sysctl.conf # $FreeBSD: release/8.4.0/etc/sysctl.conf 112200 2003-03-13 18:43:50Z mux $ # # This file is read when going to multi-user and its contents piped thru # ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details. # # Uncomment this to prevent users from seeing information about processes that # are being run under another UID. #security.bsd.see_other_uids=0 vfs.usermount=1 hw.snd.vpc_autoreset=0 kern.module_path=/boot/kernel;/boot/modules;/usr/local/modules You have new mail. root@grullahighschool:~ # or place in /boot/loader.conf the line: hw.snd.default_unit="0" ? Thanks for helping figure things out. I had working sound but maybe updating to 8.4-RELEASE changed things around? Best Regards, Antonio On Mon, Aug 26, 2013 at 11:08 AM, Antonio Olivares wrote: > Dear folks, > > I have a machine recently updated to 8.4-RELEASE-p3 and ports tree > updated from 05/27 to Friday of last week. I had sound, but now have > lost sound. I had the usual snd_hda_ in /boot/loader.conf > > root@grullahighschool:~ # uname -a > FreeBSD grullahighschool.rgccisd.org 8.4-RELEASE-p3 FreeBSD > 8.4-RELEASE-p3 #0: Wed Aug 21 19:23:44 UTC 2013 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > root@grullahighschool:~ # cat /dev/sndstat > FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) > Installed devices: > pcm0: (play) > pcm1: (play/rec) default > root@grullahighschool:~ # clear > > root@grullahighschool:~ # cat /boot/loader.conf > loader_logo="beastie" > snd_hda_load="YES" > sem_load="YES" > atapicam_load="YES" > > root@grullahighschool:~ # cat /boot/device.hints > # $FreeBSD: release/8.4.0/sys/amd64/conf/GENERIC.hints 235947 > 2012-05-24 23:55:08Z bz $ > hint.fdc.0.at="isa" > hint.fdc.0.port="0x3F0" > hint.fdc.0.irq="6" > hint.fdc.0.drq="2" > hint.fd.0.at="fdc0" > hint.fd.0.drive="0" > hint.fd.1.at="fdc0" > hint.fd.1.drive="1" > hint.atkbdc.0.at="isa" > hint.atkbdc.0.port="0x060" > hint.atkbd.0.at="atkbdc" > hint.atkbd.0.irq="1" > hint.psm.0.at="atkbdc" > hint.psm.0.irq="12" > hint.sc.0.at="isa" > hint.sc.0.flags="0x100" > hint.uart.0.at="isa" > hint.uart.0.port="0x3F8" > hint.uart.0.flags="0x10" > hint.uart.0.irq="4" > hint.uart.1.at="isa" > hint.uart.1.port="0x2F8" > hint.uart.1.irq="3" > hint.ppc.0.at="isa" > hint.ppc.0.irq="7" > hint.atrtc.0.at="isa" > hint.atrtc.0.port="0x70" > hint.atrtc.0.irq="8" > hint.pcm.0.vol="100" > hint.pcm.1.vol="100" > hint.pcm.0.pcm="100" > hint.pcm.1.pcm="100" > hint.hdac.0.cad0.nid27.config="as=1 seq=15 device=Headphones" > hint.hdac.0.cad0.nid25.config="as=4 seq=0" > hint.wbwd.0.at="isa" > > root@grullahighschool:~ # > > Here's some information from Sound Page at FreeBSD Wiki : > > root@grullahighschool:~ # cat /dev/sndstat > FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) > Installed devices: > pcm0: (play) > pcm1: (play/rec) default > root@grullahighschool:~ # dmesg | grep 'pcm[0-9]' > pcm0: at nid 20,27 on hdaa0 > pcm1: at nid 30 and 31 on hdaa0 > root@grullahighschool:~ # sysctl dev.pcm > dev.pcm.0.%desc: Realtek ALC888 (Analog 2.0+HP) > dev.pcm.0.%driver: pcm > dev.pcm.0.%location: nid=20,27 > dev.pcm.0.%parent: hdaa0 > dev.pcm.0.play.vchans: 1 > dev.pcm.0.play.vchanmode: fixed > dev.pcm.0.play.vchanrate: 48000 > dev.pcm.0.play.vchanformat: s16le:2.0 > dev.pcm.0.play.32bit: 24 > dev.pcm.0.buffersize: 65536 > dev.pcm.0.bitperfect: 0 > dev.pcm.1.%desc: Realtek ALC888 (Rear Digital) > dev.pcm.1.%driver: pcm > dev.pcm.1.%location: nid=30,31 > dev.pcm.1.%parent: hdaa0 > dev.pcm.1.play.vchans: 1 > dev.pcm.1.play.vchanmode: passthrough > dev.pcm.1.play.vchanrate: 48000 > dev.pcm.1.play.vchanformat: s16le:2.0 > dev.pcm.1.play.32bit: 24 > dev.pcm.1.rec.vchans: 1 > dev.pcm.1.rec.vchanmode: passthrough > dev.pcm.1.rec.vchanrate: 48000 > dev.pcm.1.rec.vchanformat: s16le:2.0 > dev.pcm.1.rec.32bit: 24 > dev.pcm.1.rec.autosrc: 2 > dev.pcm.1.buffersize: 65536 > dev.pcm.1.bitperfect: 0 > root@grullahighschool:~ # sysctl hw.sn > sysctl: unknown oid 'hw.sn' > root@grullahighschool:~ # sysctl hw.snd > hw.snd.feeder_rate_quality: 1 > hw.snd.feeder_rate_round: 25 > hw.snd.feeder_rate_max: 2016000 > hw.snd.feeder_rate_min: 1 > hw.snd.feeder_rate_polyphase_max: 183040 > hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97 > hw.snd.feeder_eq_exact_rate: 0 > hw.snd.feeder_eq_presets: > PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000 > hw.snd.vpc_reset: 0 > hw.snd.vpc_0db: 45 > hw.snd.vpc_autoreset: 0 > hw.snd.latency_profile: 1 > hw.snd.latency: 5 > hw.snd.report_soft_matrix: 1 > hw.snd.report_soft_formats: 1 > hw.snd.compat_linux_mmap: 0 > hw.snd.vpc_mixer_bypass: 1 > hw.snd.verbose: 0 > hw.snd.maxautovchans: 16 > hw.snd.default_unit: 1 > hw.snd.version: 2009061500/amd64 > hw.snd.default_auto: 1 > root@grullahighschool:~ # mixer > Mixer vol is currently set to 100:100 > Mixer pcm is currently set to 100:100 > Recording source: dig1 > root@grullahighschool:~ # uname -a > FreeBSD grullahighschool.rgccisd.org 8.4-RELEASE-p3 FreeBSD > 8.4-RELEASE-p3 #0: Wed Aug 21 19:23:44 UTC 2013 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > root@grullahighschool:~ # cat /dev/sndstat > FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) > Installed devices: > pcm0: (play) > pcm1: (play/rec) default > root@grullahighschool:~ # > > When I send > # cat /dev/sndstat > /dev/pcm0 > > I get: > > root@grullahighschool:~ # cat /dev/sndstat > FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) > Installed devices: > pcm0: (play) > pcm1: (play/rec) default > root@grullahighschool:~ # cat /dev/random > /dev/pcm0 > /dev/pcm0: Operation not supported. > root@grullahighschool:~ # cat /dev/random > /dev/dsp0 > ^C > root@grullahighschool:~ # > > When I do last command cat /dev/random > /dev/dsp0 I hear the sound, > how can I redirect it to have sound. The headphones used to work, but > now also have no sound. > > Thanks for any advice and suggestions to fix this issue. > > Best Regards, > > > Antonio