Home arrow Journal arrow Configure Audio USB Headsets in FreeBSD 9.x
Configure Audio USB Headsets in FreeBSD 9.x PDF
Tuesday, 08 May 2012
Using default installed FreeBSD 9.x, sound should work automaticaly on most sound hardware but it will output sound to speakers on motherboard audio jack. If you are using an USB headset (for example Logitech) you must change a sysctl variable in order change default output for audio:

Run from command line:

  sysctl -w hw.snd.default_unit=2

Or if you want to make it permanent in case you will only listen on USB headset add hw.snd.default_unit=2 to /etc/sysctl.conf.

If value 2 will not work for you try 0 and 1 too.

In order for this to work your USB headset must be detected by kernel when pluged in. To see if your headset was detected run dmesg after you've pluged it your headsets.

You should get something like this:

dmesg dectection for USB headsets (logitech in this case)
ugen3.2: <Logitech> at usbus3
uaudio0: <Logitech Logitech USB Headset, class 0/0, rev 1.10/1.30, addr 2> on usbus3
uaudio0: Play: 32000 Hz, 2 ch, 16-bit S-LE PCM format
uaudio0: Record: 32000 Hz, 2 ch, 16-bit S-LE PCM format
uaudio0: No midi sequencer
pcm2: <USB audio> on uaudio0

Right after changing the sysctl value you must play the audio again in order for this to work. If you are using mplayer just skipping foward or backward on the video should be enough to hear audio.

 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?