Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2016 09:57:43 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Jens <mailinglists@927589452.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Sound Problems [Noob Question]
Message-ID:  <20161108095743.1b5c46ed.freebsd@edvax.de>
In-Reply-To: <20161108084122.GB1197@bsd.lan>
References:  <20161108084122.GB1197@bsd.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 8 Nov 2016 09:41:22 +0100, Jens wrote:
> Hi Guys,
> 
> the solution to my problem is probably easy but i can't find it.
> 
> The only sound i get from my 
> 
> \code
> # uname -a
> 
> FreeBSD bsd.lan 11.0-RELEASE-p1 FreeBSD
> 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 01:43:23 UTC 2016
> root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
> \endcode
> 
> other then some garbled static or a feedback loop when i begin closing
> my notebook ( a ASUS F751M ).

Have you checked your mixer settings? The command "mixer" provided
by the OS can do this. Example:

	% mixer
	Mixer vol      is currently set to  75:75
	Mixer pcm      is currently set to  75:75
	Mixer line     is currently set to   0:0
	Mixer mic      is currently set to   0:0
	Mixer cd       is currently set to   0:0
	Mixer rec      is currently set to   0:0
	Mixer igain    is currently set to   0:0
	Mixer monitor  is currently set to   0:0
	Recording source: mic

If the system exposes more than one mixer to the OS, the -f flag
can be used to query and set the various mixers. See "man mixer"
for details.



> I tested the speaker system itself by booting a live linux and it worked
> out of the box, but i would like to stick with FreeBSD.

Maybe Linux defaults to a different audio unit? Modern hardware
often does have more than one "sound card" (similar to mixers).
The sysctl "hw.snd.default_unit" can control which unit will be
used.



> I included my /etc/rc.conf and my /boot/loader.conf .

Allow me to quote the relevant entries:

[rc.conf  text/plain (911B)]

	pulseaudio_enable="YES"
	#oss_enable="YES"

Do you have the playback problem from inside a IDE, or does the
problem also appear when you test audio "on bare metal"? How do
you test audio?

[loader.conf  text/plain (1.3KB)]

	#snd_hda_load="YES"
	#snd_driver_load="YES"

It's okay to comment those entries because the GENERIC kernel
(which you are using as per "uname -a") does already include
the sound driver.



> If you have any ideas what i can try or which configs you need, i will
> try to answer ASAP.

Always check the output of the following commands:

	% dmesg | grep ^pcm
	% cat /dev/sndstat

Verify that the correct sound driver has successfully been loaded.



Also have a look at the handbook section about sound:

https://www.freebsd.org/doc/handbook/sound-setup.html


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161108095743.1b5c46ed.freebsd>