Howto:XDriver

From IVTV

Jump to: navigation, search

XDriver is an xorg framebuffer driver for the TV-Out of the PVR-350. It includes XVideo extensions for scaling video and other operations.

Installing XDriver

Installation is pretty simple in the recent releases. Unless you are experiencing issues it is recommended to use the XDriver packaged by your distro.

Get the latest version from the download section. Unpack and run:

./configure
make
make install

This should compile and install the driver in the correct places. If for some reason the module can not be found check if the module is in /usr/lib/xorg/modules/drivers.


If you're trying to use xorg 7.1 note that the download version (binary) of the XDriver above won't work - you'll get errors like:

	
(EE) IVTVDEV_TST(0)Framebuffer id from dev /dev/fb0 is 0	

Distribution-Specific How-To

Configuring X (xorg.conf) (all distributions)

This section describes the changes you will need to make to your XF86Config / xorg.conf file in order to enable the X driver.

  • Edit your xorg.conf (or XF86Config) file to contain the following. Replace with your own fbdev and BusID as appropriate (see below):
Section "Device"
Identifier "Hauppauge PVR 350 iTVC15 Framebuffer"
Driver "ivtv"
Option "fbdev" "/dev/fb2"
Option "VideoOverlay" "on"
Option "XVideo" "1"
BusID "PCI:0:10:0"
EndSection
  • Get your appropriate BusID (for your PVR-350, not your video card) by executing the below command. Look for the line with iTVC15 MPEG-2 Encoder, and you may need to kill X first.
X -scanpci
  • Get the appropriate fb device from /proc/fb:
cat /proc/fb
  • VideoOverlay and XVideo are for enabling XVideo extensions - the driver should work without them.
  • Add a monitor to your xorg.conf

Pal

Section "Monitor"
Identifier "PAL Monitor"
HorizSync 30-68
VertRefresh 50-120
Mode "720x576"
DotClock 42.6
HTimings 720 760 832 944
VTimings 576 577 580 602
Flags "-HSync" "-VSync"
EndMode
EndSection

NTSC

Section "Monitor"
Identifier "NTSC Monitor"
HorizSync 30-68
VertRefresh 50-120
DisplaySize 183 122
Mode "720x480"
# D: 34.563 MHz, H: 37.244 kHz, V: 73.897 Hz
DotClock 34.564	
HTimings 720 752 840 928
VTimings 480 484 488 504
Flags "-HSync" "-VSync"
EndMode
EndSection
  • You will also want to add a television screen (This is NTSC, reverse the commented lines for PAL):
Section "Screen"
Identifier "TV"
Device "Hauppauge PVR 350 iTVC15 Framebuffer"
Monitor "NTSC Monitor"
# Monitor "PAL Monitor"
DefaultDepth 24
DefaultFbbpp 32
Subsection "Display"
Depth 24
FbBpp 32
Modes "720x480"
# Modes "720x576"
EndSubsection
EndSection
  • You can now start X by typing X -screen TV
Personal tools
development