X-Out on a PVR-350

Install the ivtv driver as described here http://www.willmer.com/kb/2005/02/installing-ivtv-driver-for-pvr-350-card/

Then, following the instructions in utils/README.X11,

install -c -m 0444 ivtvdev_drv_o /usr/X11R6/lib/modules/drivers/ivtvdev_drv.o

Then, set your default kernel to use a frame buffer.

Add
vga=791

to your kernel line

Add this to the line starting # kopt… in /boot/grub/menu.lst

vga=791

Identify the PCD ID of the PVR-350 card.

lspci

and look for the line relating to the PVR card. Mine says this…


0000:02:06.0 Multimedia video controller: Internext Compression Inc iTVC15 MPEG-2 Encoder (rev 01)

The first column gives you the bus, slot, function. You’ll need this for the xorg.conf.

Then add this to /etc/X11/xorg.conf

# add this as the first ServerLayout if you want it load automatically
Section "ServerLayout"
Identifier "TV"
Screen 0 "TV"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

Section "Device"
Identifier "Hauppauge PVR350"
Driver "ivtvdev"
Option "fbdev" "/dev/fb1"
BusID "0:02:06" # this is the PCI ID you got earlier.
EndSection

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

Section "Screen"
Identifier "TV"
Device "Hauppauge PVR350"
Monitor "PAL Monitor"
DefaultDepth 24
DefaultFbbpp 32
Subsection "Display"
Depth 24
FbBpp 32
EndSubsection
EndSection

You can see the entire xorg.conf file here.

Reboot and see if it works…

Not working? You may need to rebuild the kernel to get it going

Follow the instructions at http://www.ubuntulinux.org/wiki/KernelHowto

9 Responses to “X-Out on a PVR-350”

  1. Dave Says:

    Using kubuntu, I found that I needed to (re)install the x windows system otherwise fonts were missing and the X wouldn’t start.

    apt-get install x-window-system

    solved this problem.

  2. jMi Says:

    I’ve followed the instructions and got it ‘working’ - thank you very much. However, the picture is “too big” for my television (i.e. I’m missing most of the top and bottom menu bars, and a little bit off both sides).

    All the posts I’ve found suggest that 720×576 is indeed the right size, but I can’t figure out why I’m missing the edges of the picture. Do you have any suggestions as to what to try? I’m using a Sony widescreen TV and I’ve got NTL digital cable.

  3. Rachel Says:

    I have the same problem. A quick google came up with this link <a>this link</a> which suggests you can move the X display around by twiddling the SAA7127 chip’s register bits. I might have a play with this if I have a spare hour sometime…

  4. Denis Says:

    i want to thank you for your adwises here but i still can’t get it to work. i made all the changes to xorg.conf and copied the binary driver ivtvdev to specified folder.
    i start my xserver with:
    $startx — :1 -layout TV
    this is what i get
    (II) IVTVDEV: driver for framebuffer: PVR-350
    (II) Primary Device is: PCI 01:00:0
    (WW) ivtvdev: No matching Device section for instance (BusID PCI:0:17:0) found
    (EE) No devices detected.

    this is my device section
    Section “Device”
    Identifier “Hauppauge PVR350″
    Driver “ivtvdev”
    Option “ivtv” “/dev/fb1″
    BusID “0:0×11:00″
    EndSection

    $cat /proc/fb
    0 VESA VGA
    1 iTVC15 TV out

    i don’t know why the BusID in the configfile differs from BusID in the logfile. what about the primary device listed in the logfile. this is obviously my agpcard, but it wasn’t specified in my “screen section” of xorg.conf.
    do i have to recompile the Xserver as sugested in ivtv-drivers-readme with the delivered patch?
    Thanx

  5. Denis Says:

    (WW) ivtvdev: No matching Device section for instance (BusID PCI:0:17:0)

    why don’t i follow the advise from logfile. It has to be the result of scancpi from X or something like that. Putting this BusID in my xorg.conf and not the one from lspci the xserver comes up properly, and i am now able to watch tv with mythtv while my monitor shows a gnome desktop. *smile*

    thanx

  6. Antoine Says:

    Hi,

    I’ve followed instructions above and I’ve no signal on my tv (nor on my console). XWindows seems not to complain but there is nothing to see. I’ve checked the pvr card with console commands (trying to redirect /dev/video0 stream to a mpeg file).

    Here’s is my X configuration.

    regards

    X11 Configuration file

    ———————————

    Section “ServerLayout”
    Identifier “XFree86 Configured”
    Screen 0 “TV Screen” 0 0
    #Screen 0 “Screen 1″ # : integer, : float, : “True”/”False”,
    ### : “String”, : ” Hz/kHz/MHz”
    ### [arg]: arg optional
    #Option “ShadowFB” # []
    #Option “DefaultRefresh” # []
    Identifier “Hauppauge PVR 350 iTVC15 Framebuffer”
    Driver “ivtvdev”
    Option “fbdev” “/dev/fb0″ #

  7. Errol Siegel Says:

    I feel like I am very close to having this working. I had everything looking good just viewing on my monitor. I used the info from the sample xorg.conf and now it almost works.

    First problem: Once X starts, I get output to the TV only — no my monitor.

    Second problem: The menu screens are cut off around the edges. You referred to a link, but your post didn’t actually have the link in it.

    Third problem: When I watch TV, it only shows the top 2/3 of the image (the bottom part of the screen still shows the background from the menu).

    I appreciate any help you can offer.

    Thanks,
    Errol

  8. Errol Siegel Says:

    I solved the third problem listed above (I needed to be using NTSC not PAL) but I am still very interested in solving problems #2 and #3. I would appreciate any suggestions…

    Thanks,
    Errol

  9. Pedro Pessoa Says:

    Errol,

    I’m having your third problem. Exactly what and where did you set to NTSC? I’m also using PAL, supposely everywhere because I’m in Europe.

Leave a Reply