•  
     

    Configure the TV out port of various cards under Linux



     

    The details to configure a computer's TV out port is different based on the type of graphics card you have.

    Popular graphics cards

    NVIDIA based cards

    ATI based cards

    • The xfree86 drivers made by the GATOS project support enabling tv-out for ATI based cards.
    • Another option is the command line atitvout [1] tool
    • The closed source drivers by ATI [2] also support tv-out
    • If using a laptop, try simply closing the lid. Many laptop also have a key or key combination (often Fn+F6 or some other F key, check the manual) to switch the output.

    3dfx cards

    Tv-out of a Voodoo3 can be enabled by installing i2c/lm-sensors kernel drivers/modules called i2c-voodoo3 and bt869. These are included in recent kernel versions or can be downloaded from the lm-sensors website[3]. Loading them will enabled the tv-out. It can be configured by some files in /proc.

    For example:

    Disabling NTSC/Enabling PAL output:
    <tt>echo "0" > /proc/sys/dev/sensors/bt869-i2c-0-44/ntsc</tt>
    Configuring the resolution:
    <tt>echo "800 600" > /proc/sys/dev/sensors/bt869-i2c-0-44/res</tt>

    This works in the console. If you want to use it in XFree86, you'll first have to add proper modelines for your TV output type (e.g. PAL or NTSC) to your configuration. And you'll have to re-run the commands to configure the kernel modules after X has been started. (Best to put that stuff in a script and run it in your .xsession).

    MATROX cards

    Matrox cards have arguably the best quality TV out. It gives you fully TV standards compliant interlaced signal. It allows you to use SCART-RGB cable to connect to TV. To utilise this your choises are:

    1) VIDIX [4]
    + DVDMax mode for Linux!!! Picture on your X and TV simultaneously.
    + Low CPU utilization
    + Hardware OSD support

    1. mplayer your_movie.mpg -vo xvidix -vf scale=768:576
    2.  (or mplayer your_movie.mpg -vo xvidix:mga_crtc2_vid.so -vf scale=768:576)

    <small>(Note: Kernel patch required. Tested with my G550; kernel 2.6.9. Matrox TV-out kernel patches)</small>
    <small>(Note2: Your framebuffer shoul be set up with 768x576 resolution)</small>

    2) Kernel's Framebuffer (matroxfb) [5]
    + S-Video
    - No hardware acceleration
    <small>(Note: SCART-RGB requires kernel patch to work - works with my G550; kernel 2.6.9. Matrox TV-out kernel patches)</small>

    3) DirectFB [6]
    - You can not simultaneously watch video and have X with DirectFB.
    + DirectFB uses hardware acceleration.
    + S-Video, SCART-RGB.

    0) Propriatory Matrox drivers do NOT support TV out on Linux.

    Tips for matroxfb on 2.6 kernel:
    - do not forget to enable CONFIG_FRAMEBUFFER_CONSOLE into kernel when compiling your kernel[7]. Otherwise you'll end up with blank screen on boot.
    - use latest

    1. matroxset-0.4
    from [8] to edit brightness/contrast/saturation/hue
    1. matroxset -f /dev/fb0 -e
    for manual tuning
    1. matroxset -f /dev/fb0 -c 0x980901 1023
    to set contrast to maximum
    -
    1. vl4ctl
    do not work for that purpose anymore as of kernel 2.6.9

    SCART-RGB cable pinouts can be found on Matrox site here

    This work, based on content that originally appeared at wiki.linuxquestions.org/wiki/Configuring_TV_out is published here under a Creative Commons Attribution-Share Alike 2.5 Generic License

     


    No comments

    Add comment

    * - required field

    *

    CAPTCHA image for SPAM prevention
    If you can't read the word, click here.
    *
    *
     

    Netdip.com is an excellent web site that's powered by TYPO3 and other great open source software. Netdip.com is also a fat free alternative to ice cream.