No sound from front headphones jack

Michael Neumann mneumann at ntecs.de
Wed Mar 4 00:43:11 PST 2020


On Mon, Mar 02, 2020 at 02:41:44PM +0530, Siju George wrote:
> On Mon, Feb 17, 2020 at 10:14 PM Michael Neumann <mneumann at ntecs.de> wrote:
> 
> >
> > Try setting:
> >
> >     sysctl hw.snd.default_unit=n
> >
> > for some number of "n".
> >
> > Maybe
> >
> >     sysctl hw.snd.default_unit=25
> >
> > or
> >
> >     sysctl hw.snd.default_unit=27
> >
> > could work. If I am not mistaken, "n" is the "nid" that you see in the
> > dmesg
> > output.
> >
> >
> Thank you so much Michael :-)
> 
> I tried but it did not work. Please see the output
> 
> # sysctl hw.snd.default_unit=25
> hw.snd.default_unit: 1
> sysctl: hw.snd.default_unit=25: Invalid argument
> # sysctl hw.snd.default_unit=2
> hw.snd.default_unit: 1 -> 2
> # sysctl hw.snd.default_unit=3
> hw.snd.default_unit: 2 -> 3
> # sysctl hw.snd.default_unit=4
> hw.snd.default_unit: 3
> sysctl: hw.snd.default_unit=4: Invalid argument
> # sysctl hw.snd.default_unit=5
> hw.snd.default_unit: 3
> sysctl: hw.snd.default_unit=5: Invalid argument
> # sysctl hw.snd.default_unit=6
> hw.snd.default_unit: 3
> sysctl: hw.snd.default_unit=6: Invalid argument
> # sysctl hw.snd.default_unit=7
> hw.snd.default_unit: 3
> sysctl: hw.snd.default_unit=7: Invalid argument

Yeah, that's my fault :)

Setting hw.snd_default_unit will "symlink" /dev/dsp to
/dev/dsp${hw.snd.default_unit}. 

Please try:

    cat /dev/sndstat

This will show something like this:

    Installed devices:
    pcm0: <NVIDIA (0x001c) (HDMI/DP 8ch)> (play)
    pcm1: <NVIDIA (0x001c) (HDMI/DP 8ch)> (play)
    pcm2: <Conexant CX20590 (Analog 2.0+HP/2.0)> (play/rec) default

To use pcm2, you have to `sysctl hw.snd_default_unit=2`. Please try the
available devices.

Hope this helps! Otherwise, "man sound" gives a quite good introduction or you
can also find helpful information in the FreeBSD manual (we might have a copy
of this as "DragonFly manual" too).

Regards,

  Michael




More information about the Users mailing list