Red Antigua Logo
Yet another piece of web.
Search this site (by Google)
Tools    (top)
Check a site for broken links
(W3C)

Perl modules    (top)
Tree::Numbered::Tools
(CPAN)
Perl tutorials    (top)
Perl modules
HTML::Template
CGI::Application
Cookies with CGI::Application
Upload files with CGI::Application
Download files with CGI::Application
Redirect with CGI::Application
CPAN shell
Install DBD::mysql from the CPAN shell
Perl trim function
Validate an IP with Perl
Run suid Perl scripts under Apache
Perl taint mode
Perl date functions with Date::Calc

In Spanish
Curso de Perl

C tutorials    (top)
C - Introduction
C - Absolute beginner's Emacs
C - Examples for beginners
C - Makefile examples
C - Autotools examples
Server configurations    (top)
DNS
Apache
Apache Authentication and Access Control
mod_perl on FreeBSD
MySQL
MySQL add account
phpMyAdmin
Squid
DHCP

UNIX on Windows    (top)
MSYS2 - UNIX environment for MS Windows 32/64 bits
Apache setup on Windows
MySQL setup on Windows
PHP setup on Windows
Perl setup on Windows
Emacs setup on Windows
PuTTY
WinSCP
GIMP on Windows
MinGW - gcc on Windows
MSYS - UNIX-styled shell on Windows
msysDTK - autotools on Windows
GDB for MinGW on Windows

Misc. FreeBSD/UNIX    (top)
'portupgrade' on FreeBSD
'ipf' on FreeBSD
'pf' on FreeBSD
'su' on FreeBSD
Mount an ISO image under FreeBSD
Load the correct sound driver under FreeBSD without knowing what sound card you are using
Simultaneous sound channels on FreeBSD
FreeBSD network stuff
DOS-to-UNIX file conversion
favicon.ico on UNIX
Emacs tips
Command Line Calculator
Save multimedia streams with 'mplayer'
xargs - solution to 'Argument list too long'
Process multiple images from the command line using 'ImageMagick'
Turn the system bell off under X Windows
Process each line in an input file from the command line (or in a shell script)
How to keep a program running in the background using 'nohup'
How to remove symbolic links in the current directory using 'find' and 'rm'
How to remove Emacs backup files in the current directory and all subdirectories using 'find' and 'rm'
How to execute .profile without logging in
Configure X to handle non-English characters
How to move /var to /usr/var

Redirect a web page    (top)
Redirect to another web page
Apache redirect
C redirect
Perl redirect
PHP redirect
HTML redirect
JavaScript redirect

Javascript    (top)
Trim function
Login form
Register form
Popup window

Load the correct sound driver under FreeBSD without knowing what sound card you are using
Load the correct sound driver under FreeBSD without knowing what sound card you are using
This has been tested on several FreeBSD releases, from 5.x to 11.x

If you are not sure which sound driver to use, you may try to load the snd_driver module.
As root, load the metadriver snd_driver:
# kldload snd_driver
and then check with 'cat /dev/sndstat' which driver was loaded:
bash-2.05b$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: >Intel ICH2 (82801BA)> at io 0x2000, 0x2400 irq 11 bufsz 16384 kld snd_ich (1p/1r/0v channels duplex default)
In the example above, the driver snd_ich was loaded.
You should now be able to use the sound card.
To load the driver automatically when booting, add the following line to /boot/loader.conf:
snd_ich_load="YES"
(Remember to replace the driver with the one displayed by 'cat /dev/sndstat'.)


Only if things still aren't working:
If, for some reason, there is a problem to load the sound kernel module, a fix is to enable sound support in the kernel:
# cd /sys/i386/conf
echo 'device          sound' >> YOURKERNELCONFIGFILE (default is GENERIC)
/usr/sbin/config YOURKERNELCONFIGFILE
cd ../YOURKERNELCONFIGFILE
make depend
make
make install
reboot
Read more at:
https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sound-setup.html
https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html

Last modified: Wed Sep 7 06:36:35 EDT 2016