Hardware Configuration, Audio/Video
(→Multiple Monitors) |
|||
Line 2: | Line 2: | ||
==Audio Selection== | ==Audio Selection== | ||
− | + | Check [[Sound card]] for initial set up. To check the information on which sound output is used, type: | |
− | To check the information on which sound output is used, type: | + | % cat /dev/sndstat |
− | cat /dev/sndstat | + | |
− | Example of command to choose the soundcard, that can also be inserted into | + | Example of command to choose the soundcard, that can also be inserted into {{file|/etc/sysctl.conf}}: |
sysctl hw.snd.default_unit=0 | sysctl hw.snd.default_unit=0 | ||
Line 12: | Line 11: | ||
Partially supported Radeon video cards, linked to in the section "GPU Hardware" below, usually don't support HDMI audio out. Other Radeon cards require extra configuration. | Partially supported Radeon video cards, linked to in the section "GPU Hardware" below, usually don't support HDMI audio out. Other Radeon cards require extra configuration. | ||
− | To do this, edit the line | + | To do this, edit the line {{code|int radeon_audio}} in {{file|/usr/src/sys/dev/drm2/radeon/radeon_drv.c}} to: |
int radeon_audio=1 | int radeon_audio=1 | ||
Line 39: | Line 38: | ||
Use the program [http://www.freebsd.org/cgi/man.cgi?query=xrandr&apropos=0&sektion=0&manpath=FreeBSD+10.1-RELEASE+and+Ports&arch=default&format=html xrandr] to be able to use and configure multiple monitors. With this program, a basic video card can use both of it's HDMI and DVI outputs for dual configured monitors, as in different outputs for each monitor. | Use the program [http://www.freebsd.org/cgi/man.cgi?query=xrandr&apropos=0&sektion=0&manpath=FreeBSD+10.1-RELEASE+and+Ports&arch=default&format=html xrandr] to be able to use and configure multiple monitors. With this program, a basic video card can use both of it's HDMI and DVI outputs for dual configured monitors, as in different outputs for each monitor. | ||
− | Example of command line that can be used in the file | + | Example of command line that can be used in the file {{file|.xinitrc}}: |
xrandr --output DVI-0 --right-of HDMI-0 | xrandr --output DVI-0 --right-of HDMI-0 | ||
− | Using the gui | + | Using the gui {{port|x11/arandr}} is another option. |
To see the obsolete way of configuring dual monitors for Nvidia cards, see [[Dual Screen]] | To see the obsolete way of configuring dual monitors for Nvidia cards, see [[Dual Screen]] |
Revision as of 06:33, 30 October 2015
Information on audio and video configuration of hardware.
Contents |
Audio Selection
Check Sound card for initial set up. To check the information on which sound output is used, type:
% cat /dev/sndstat
Example of command to choose the soundcard, that can also be inserted into /etc/sysctl.conf:
sysctl hw.snd.default_unit=0
Radeon HDMI audio out
Partially supported Radeon video cards, linked to in the section "GPU Hardware" below, usually don't support HDMI audio out. Other Radeon cards require extra configuration.
To do this, edit the line int radeon_audio in /usr/src/sys/dev/drm2/radeon/radeon_drv.c to:
int radeon_audio=1
After this, you may rebuild the modules only or whole kernel as typical:
/usr/src/sys/modules/make clean; make; make install
See the previous section for selecting HDMI audio out.
- Note: Enabling audio on HDMI may alter the tv setting. Nothing is wrong with the software implementation, just adjust the resolution or scan settings on the tv.
GPU Hardware
Here is a list of FreeBSD supported video cards, https://wiki.freebsd.org/Graphics#Tested_hardware_matrix . There is also hardware compatibility information at FreeBSD's "Hardware Notes" pages under http://www.freebsd.org/releases/. As of this writting, select Intel, Nvidia and Radeon cards work with FreeBSD. Check for the latest compatibility information before purchasing a card. Different brands of video cards generally don't work well together, but with newer software or implementation of this software, this may change.
AMD
Many Radeon cards are compatible with FreeBSD. As of this writing, Radeon cards generally only work when the modules are auto-loaded: loading the modules won't work by loading it through /boot/loader.conf nor compiling it into the kernel configuration file. Not all outputs or functions may work on partially supported video cards.
Intel
Many Intel video cards work for FreeBSD 9.1 and later.
For status on the currently unsupported Haswell (Xeon E3 V3 and i[357]-4xxx processors) cards, see https://wiki.freebsd.org/Graphics/Update%20i915%20GPU%20driver%20to%20Linux%203.8
Nvidia
Nvidia cards haven't always been compatible with FreeBSD, but recently they are and have video card support.
Multiple Monitors
Use the program xrandr to be able to use and configure multiple monitors. With this program, a basic video card can use both of it's HDMI and DVI outputs for dual configured monitors, as in different outputs for each monitor.
Example of command line that can be used in the file .xinitrc:
xrandr --output DVI-0 --right-of HDMI-0
Using the gui x11/arandr is another option.
To see the obsolete way of configuring dual monitors for Nvidia cards, see Dual Screen
References
- FreeBSD related forums and documentation