Monday, November 21, 2005

Using your Hauppauge 350 TV OUT in X Windows

After you're all done installing IVTV and you've rebooted, it's time to setup your X server to use your Hauppauge 350 card's TV out as your video card. To do this, you first need to find out which PCI bus the card is on. Do this by running the command: "lspci -v" from the command prompt (xterm). Scroll up through the output with SHIFT-PGUP until you see a section like this:

0000:02:01.0 Multimedia video controller: Internext Compression Inc iTVC15 MPEG-2 Encoder (rev 01)
Subsystem: Hauppauge computer works Inc. WinTV PVR-350
Flags: bus master, medium devsel, latency 64, IRQ 21
Memory at f0000000 (32-bit, prefetchable) [size=64M]
Capabilities: [44] Power Management version 2

This shows me that the PCI card is at address "0000:02:01.0". As far as X Windows is concerned, we're going to call this "PCI:02:01". Below is the contents of my /etc/X11/xorg.conf. Notice in the "Device" section the line:

BusID "PCI:02:01"

You'll need to format your 350's bus id in this line according to the results you got earlier by the "lspci -v" command.

# /etc/X11/xorg.conf
Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/CID"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
# paths to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"

Section "Module"
Load "GLcore"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"

# Your keyboard
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"

# Your mouse
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"

# Your TV
Section "Monitor"
Identifier "Sony TV"
HorizSync 30-50
VertRefresh 60

Mode "720x480"
DotClock 34.564
HTimings 720 752 840 928
VTimings 480 484 488 504
Flags "-HSync" "-VSync"

# Your Hauppauge 350 TV Card
Section "Device"
Identifier "ivtv"
Driver "ivtvdev"
Option "fbdev" "/dev/fb1"
# Make sure to fill in your PCI bus id for the Hauppauge 350 here
BusID "PCI:02:01"

Section "Screen"
Identifier "Screen TV ivtv"
Device "ivtv"
Monitor "Sony TV"
DefaultDepth 24
DefaultFbBpp 32

SubSection "Display"
Depth 24
FbBpp 32
Modes "720x480"
ViewPort 0 0

Section "ServerLayout"
Identifier "Default Layout"
Screen "Screen TV ivtv"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"

Section "DRI"
Mode 0666

No comments: