Sound setup – freebsd.

Sound in freebsd

Firstly check which driver is suitable for your audio card.

As it is described there [http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sound-setup.html] try to load right module: kldload snd_driver or kldload snd_hda

Information about your card can be grabbed from /dev/sndstat file or dmesg command.

cat /dev/sndstat

Installed devices:
pcm0:  (play)
pcm1:  (play/rec) default
pcm2:  (play/rec)
pcm3:  (play)
pcm4:  (play)

or

dmesg | grep pcm
 
pcm0:  at nid 3 on hdaa0
pcm1:  at nid 20 and 18 on hdaa1
pcm2:  at nid 21 and 24,25 on hdaa1
pcm3:  at nid 30 on hdaa1
pcm4:  at nid 27 on hdaa1

In my case it is Realtek ALC888 sound card and

 kldload snd_driver

works fine

To add module while system starting additional information should be added to /boot/loader.conf or /boot/defaults/loader.conf. In my case the following line should persist

snd_driver_load="YES"

Test sound card simply by command:

 cat filename > /dev/sdp

Default volume set at system boot can be set in /boot/device.hints file, for example:

hint.pcm.0.vol="50"

Although volume can also be set from command line by command mixer, example:

 mixer --without option show current volume
 mixer vol 75  --change vol to 75%
No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Free(BSD)
yt-dlp – download your data from youtube

Hi, this short article only to mention that there is a wonderful application that exists for a years for the purpose to download YOUR or maybe some other movies from youtube. I don’t want to go in to legal aspect too much, what can be downloaded from youtube, what not …

Free(BSD)
Convert pdf file to jpeg – with imagemagic

Short article just to write down not-so frequently (for me) task: remove /opt/homebrew/bin from that command where using on other system than macOs Options: cheers

Free(BSD)
Search for duplicated files

This will be short (but hopefully I will find more time to show entire process to search duplicated files together with some examples). In case you are searching for duplicated files I can recommend two software which actually rocks in openSource world