How to enable sound in FreeBSD 8?

FreeBSD doesn’t enable the sound by default. However it is simple to detect and enable your sound card.

Step 1 – Detect Your Sound Cound

  1. Install all sound kernel modules by running the following command:

    FBSD# kldload snd_driver

  2. Check which kernel module was able to bind to your sound card by running this command:

    FBSD# cat /dev/sndstat

    The output will be similar to this but of course you may have a different sound card:

    FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
    Installed devices:
    pcm0: at io 0x2040 irq 16 kld snd_es137x [MPSAFE] (2p:1v/1r:1v channels duplex default)
  3. Notice on the last line after kld there is a snd_. This is you sound card kernel module.

Step 2 - Enable the kernel module for your sound card

  1. Configure your the kernel module of your sound card to load at boot by adding it to the /boot/loader.conf as follows.

    FBSD# echo 'snd_es137x_load="YES"' >> /boot/loader.conf

    (Of course when you run the command, replace "es137x_" with the letters you see in the output for your sound card.)
    Note: If you look at the /boot/default/loader.conf you can find information on proper syntax exactly for your module and other modules.

Your sound card should now be working.

27 Comments

  1. This blog was... how do I say it? Relevant!! Finally I've found something which helped me.
    Thanks a lot!

  2. Emanuel says:

    Quality content is the keyy to invite the users to visit the web site, that's what this web page is providing.

  3. momo33 says:

    "Notice on the last line after kld there is a snd_. This is you sound card kernel module. "

    After following the first steps you told us to do I merely get this output.

    ICH4 (82801DB) > Play/rec default

    And so I am now lost a to what the driver is and how to load it....

  4. [...] Step 8 – Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  5. knutselaar says:

    using sound together with Wine (for example in combination with Spotity) did not work for me.
    I resolved this by using the OSS-driver. I did pkg_add -r oss (I had the portstree installed) and after that:

    FBSD#echo 'oss_enable="YES"' >> /etc/rc.conf

  6. Guillaume says:

    I have freebsd 8 on vmware 7.x with kde4

  7. Guillaume says:

    Hi,

    I have a problem, when I run "kld_load snd_driver" and then "cat /dev/sndstat"

    I have only this :

    FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
    Installed devices:

    do you have any solution ?

    thx

  8. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  9. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  10. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  11. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  12. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  13. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  14. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  15. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  16. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  17. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  18. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  19. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  20. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  21. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  22. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  23. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

  24. [...] Step 8 - Enable your sound card I already have an article on this here and it is so very simple. How to enable sound in FreeBSD 8? [...]

Leave a Reply

How to post code in comments?