[PC-BSD Testing] Sound on and off randomly and inconsistently

N V VaNs9 at yandex.ru
Thu May 3 06:08:22 PDT 2012


Hi Sam.

Let's try some simple test in both cases ;)
cat /dev/random > /dev/dsp

There should be noise...

Regards,
Vans.

29.04.2012, 08:54, "Sam Lin" <semin2006 at gmail.com>:
> Hi Ian,
> Thank you for your input.
> I do have looked at those forums before, but I don't think it's these settings that are causing the problems because if the settings are incorrect there should be no sound at all all the time but not something like my situation in which sometimes make sound and some other times no sound.
> For your information below are the configurations (/dev/sndstat and /etc/sysctl.conf) in my system (also attached in this email along with my /dev.pcm should you are interested):
> ========== /dev/sndstat ==========
> FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
> Installed devices:
> pcm0: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
> pcm1: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
> pcm2: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
> pcm3: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
> pcm4: <CMedia CMI8738> (play/rec) default
> ==================================
> ========== /etc/sysctl.conf ==============
> # $FreeBSD: src/etc/sysctl.conf,v 1.8 2003/03/13 18:43:50 mux Exp $
> #
> # 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
>
> # Disable coredump
> kern.coredump=0
>
> # Up the maxfiles to 4x default
> kern.maxfiles=49312
>
> # Allow users to mount CD's
> vfs.usermount=1
>
> # Enable more sound channels
> dev.pcm.0.play.vchans=4
> dev.pcm.0.rec.vchans=4
>
> # Autodetect the most recent sound card. Uncomment for Digital output / USB
> #hw.snd.default_auto=1
> hw.snd.default_unit=4
>
> # Allow pinging in jails
> security.jail.allow_raw_sockets=1
>
> # Required for postgres
> security.jail.sysvipc_allowed=1
>
> # Required for smb
> security.jail.mount_allowed=1
>
> # Solves permission problems for some ports
> security.jail.chflags_allowed=1
>
> # Disable the system speaker
> #hw.syscons.bell=0
> hw.syscons.bell=1
>
> # Tune for desktop usage
> kern.sched.preempt_thresh=224
>
> # Enable for proper lagg failover
> #net.link.lagg.failover_rx_all=1
>
> # Enable shm_allow_removed
> kern.ipc.shm_allow_removed=1
> ==========================================
> I am not sure if it's rational but could it be simply because the speaker built in my monitor is not working properly e.g. need some time to "warm up" before it makes sound? As for the last few days I noted that when I first start the machine there is no sound, and then I just leave it alone and away to take shower and then when I come back and try any youtube it now makes sound. Also another thing I noted is that when I first start the machine (and no sound of course) and then switch the monitor to TV mode to watch TV (the monitor is Asus MT276 and it's got YPbPr cables connected for satellite TV) for awhile, and then switch back to PCBSD mode (on HDMI cable) and then now the sound works.
> Perhaps I should get a cheapy speaker an try it out?
> Regards,
> Sam
>
> On 22 April 2012 07:00, <testing-request at lists.pcbsd.org> wrote:
>> Message: 1
>> Date: Sat, 21 Apr 2012 09:13:11 -0400
>> From: Ian Robinson <fitchkendall at gmail.com>
>> To: testing at lists.pcbsd.org
>> Subject: Re: [PC-BSD Testing] Testing Digest, Vol 63, Issue 24
>> Message-ID:
>>        <CAHe1Fg8i7PYM1idREe4bq4T3DF5jJ_fsrj05ZnVfwZww8HPs4A at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> On Fri, Apr 20, 2012 at 7:17 PM,
>>
>> Dear Sam,
>>
>> It's great to have you back.  You do not need to buy another sound card.
>> You already have enough of them that will work.  Your nVidia GT440 card has
>> four high definition audio controllers on hdac0 using pcm0, pcm1, pcm2,
>> pcm3.  Your C-Media card is using pcm4.  It is likely that your software is
>> not always selecting the correct pcm device.
>>
>> You can list pcm devices from a root terminal with # cat /dev/sndstat
>>
>> You can list more specs about the pcm devices with # sysctl dev.pcm
>>
>> Check what sound card is selected by your system by looking in
>> /etc/sysctl.conf and find the line with hw.snd.default_unit=x, where "x" is
>> a number from 0 to 4 corresponding with which pcm device is being used.
>> Change the unit # to set which pcm device you want to use as the default.
>>
>> It is also possible that the volume settings for the playback may not be
>> set high enough.
>>
>> See:
>>
>> http://forums.freebsd.org/showthread.php?t=9413
>>
>> http://forums.freebsd.org/showthread.php?t=27667
>>
>> See also the PCBSD Multimedia Wiki at:
>>
>> http://wiki.pcbsd.org/index.php/Multimedia
>>
>> Ian Robinson
>> Salem, OH
>
> FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
> Installed devices:
> pcm0: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
> pcm1: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
> pcm2: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
> pcm3: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
> pcm4: <CMedia CMI8738> (play/rec) default
>
> # $FreeBSD: src/etc/sysctl.conf,v 1.8 2003/03/13 18:43:50 mux Exp $
> #
> #  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
>
> # Disable coredump
> kern.coredump=0
>
> # Up the maxfiles to 4x default
> kern.maxfiles=49312
>
> # Allow users to mount CD's
> vfs.usermount=1
>
> # Enable more sound channels
> dev.pcm.0.play.vchans=4
> dev.pcm.0.rec.vchans=4
>
> # Autodetect the most recent sound card. Uncomment for Digital output / USB
> #hw.snd.default_auto=1
> hw.snd.default_unit=4
>
> # Allow pinging in jails
> security.jail.allow_raw_sockets=1
>
> # Required for postgres
> security.jail.sysvipc_allowed=1
>
> # Required for smb
> security.jail.mount_allowed=1
>
> # Solves permission problems for some ports
> security.jail.chflags_allowed=1
>
> # Disable the system speaker
> #hw.syscons.bell=0
> hw.syscons.bell=1
>
> # Tune for desktop usage
> kern.sched.preempt_thresh=224
>
> # Enable for proper lagg failover
> #net.link.lagg.failover_rx_all=1
>
> # Enable shm_allow_removed
> kern.ipc.shm_allow_removed=1
>
> dev.pcm.0.%desc: HDA NVidia (Unknown) PCM #0 DisplayPort
> dev.pcm.0.%driver: pcm
> dev.pcm.0.%parent: hdac0
> dev.pcm.0.play.vchans: 4
> dev.pcm.0.play.vchanmode: passthrough
> dev.pcm.0.play.vchanrate: 48000
> dev.pcm.0.play.vchanformat: s16le:2.0
> dev.pcm.0.buffersize: 16384
> dev.pcm.0.bitperfect: 0
> dev.pcm.1.%desc: HDA NVidia (Unknown) PCM #0 DisplayPort
> dev.pcm.1.%driver: pcm
> dev.pcm.1.%parent: hdac0
> 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.buffersize: 16384
> dev.pcm.1.bitperfect: 0
> dev.pcm.2.%desc: HDA NVidia (Unknown) PCM #0 DisplayPort
> dev.pcm.2.%driver: pcm
> dev.pcm.2.%parent: hdac0
> dev.pcm.2.play.vchans: 1
> dev.pcm.2.play.vchanmode: passthrough
> dev.pcm.2.play.vchanrate: 48000
> dev.pcm.2.play.vchanformat: s16le:2.0
> dev.pcm.2.buffersize: 16384
> dev.pcm.2.bitperfect: 0
> dev.pcm.3.%desc: HDA NVidia (Unknown) PCM #0 DisplayPort
> dev.pcm.3.%driver: pcm
> dev.pcm.3.%parent: hdac0
> dev.pcm.3.play.vchans: 1
> dev.pcm.3.play.vchanmode: passthrough
> dev.pcm.3.play.vchanrate: 48000
> dev.pcm.3.play.vchanformat: s16le:2.0
> dev.pcm.3.buffersize: 16384
> dev.pcm.3.bitperfect: 0
> dev.pcm.4.%desc: CMedia CMI8738
> dev.pcm.4.%driver: pcm
> dev.pcm.4.%location: slot=5 function=0
> dev.pcm.4.%pnpinfo: vendor=0x13f6 device=0x0111 subvendor=0x13f6 subdevice=0x0111 class=0x040100
> dev.pcm.4.%parent: pci4
> dev.pcm.4.play.vchans: 3
> dev.pcm.4.play.vchanmode: fixed
> dev.pcm.4.play.vchanrate: 48000
> dev.pcm.4.play.vchanformat: s16le:2.0
> dev.pcm.4.rec.vchans: 1
> dev.pcm.4.rec.vchanmode: fixed
> dev.pcm.4.rec.vchanrate: 48000
> dev.pcm.4.rec.vchanformat: s16le:2.0
> dev.pcm.4.buffersize: 16384
> dev.pcm.4.bitperfect: 0
> dev.pcm.4.spdif_enabled: 0
>
> _______________________________________________
> Testing mailing list
> Testing at lists.pcbsd.org
> http://lists.pcbsd.org/mailman/listinfo/testing


More information about the Testing mailing list