pavement

Sound card

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
m
(de-weirdifying)
Line 1: Line 1:
In order to get sound out of your FreeBSD box, you'll need to either load your sound driver module or compile sound support in your kernel -- it's not installed by default. For this you need to use [[kldload]] to load your sound driver. If you don't know which sound card you have -- and therefore don't know which driver to use -- you can load the generic [[snd_driver]] module (in 5.x systems -- in 4.x you need to load the [[snd]] module) like so:
+
In order to get sound out of your FreeBSD box, you'll need to either load your sound driver module or compile sound support in your kernel -- it's not installed by default. For this you need to use [[kldload]] to load your sound driver. If you don't know which sound card you have -- and therefore don't know which driver to use -- you can load the generic [[snd_driver]] module (in 5.x systems -- in 4.x you need to load the [[snd]] module), which works for most cards, like so:
 
  samizdata# kldload snd_driver  
 
  samizdata# kldload snd_driver  
  
[[snd_driver]] will work for most cards.
+
If that works, you'll probably want it to load automatically at boot time.  To do so, you'll want to append a line about snd_driver to your loader.conf:
  
== That's great, but I'm always going to want sound on ==
+
samizdata# echo snd_driver_load="YES" >> /boot/loader.conf
  
So you don't want to have to run kldload as root before logging into X. Understandable. To fix this, edit your /boot/loader.conf and drop this line in it:
+
And presto, when booting, your system will always try to load snd_driver.
 
+
snd_driver_load="YES"
+
 
+
Presto, when booting, your system will always try to load snd_driver.
+
  
 
== External Links ==
 
== External Links ==

Revision as of 00:20, 24 July 2005

In order to get sound out of your FreeBSD box, you'll need to either load your sound driver module or compile sound support in your kernel -- it's not installed by default. For this you need to use kldload to load your sound driver. If you don't know which sound card you have -- and therefore don't know which driver to use -- you can load the generic snd_driver module (in 5.x systems -- in 4.x you need to load the snd module), which works for most cards, like so:

samizdata# kldload snd_driver 

If that works, you'll probably want it to load automatically at boot time. To do so, you'll want to append a line about snd_driver to your loader.conf:

samizdata# echo snd_driver_load="YES" >> /boot/loader.conf

And presto, when booting, your system will always try to load snd_driver.

External Links

FreeBSD Handbook

Personal tools