LinHES Forums
http://forum.linhes.org/

Green&Purple PVR350 TVout [Solved]
http://forum.linhes.org/viewtopic.php?f=2&t=2995
Page 1 of 3

Author:  xm301 [ Thu Dec 02, 2004 11:34 am ]
Post subject:  Green&Purple PVR350 TVout [Solved]

I get TV output with sound, but the picture is green & purple.

the insmod saa7127 image_test=1
provides a correctly colored test pattern

config files:

ivtv file
alias char-major-81 videodev
alias char-major-61 lirc_i2c
alias char-major-81-0 ivtv
options ivtv debug=1
options tuner type=39
options saa7127 enable_output=1 output_select=1
options msp3400 once=1 simple=1
add below ivtv msp3400 saa7115 saa7127 tuner
add above ivtv lirc_dev lirc_i2c ivtv-fb
post-install ivtv /usr/local/bin/ivtvctl -d /dev/video0 -u 0x3000
post-install ivtv /usr/local/bin/ivtvctl -d /dev/video16 -u 0x3000
post-install ivtv /usr/local/bin/ivtvctl -d /dev/video32 -u 0x3000
post-install ivtv /usr/local/bin/ivtvctl -d /dev/video224 -u 0x3000

XF86Config-4
Driver "fbdev"
Option "fbdev" "/dev/fb1"
BusID "0x02:0x09:0x00"

I would appreciate any help.

Author:  ruhlmcu [ Thu Dec 02, 2004 1:13 pm ]
Post subject: 

I had a similar problem with a 'colorized' look when I mistakenly loaded 'glx' in the Modules sectoin of XF86Config-4

Hope this helps...

Author:  xm301 [ Thu Dec 02, 2004 3:52 pm ]
Post subject: 

Quote:
I had a similar problem with a 'colorized' look when I mistakenly loaded 'glx' in the Modules sectoin of XF86Config-4


Thanks for the quick reply. My XF86Config-4 had the 'glx' section commented out. So I don't think that was it.

Just for fun I un-commented the 'glx' section, but no noticable change.

I should add that the card captured and displays to my monitor with the correct color. So it is limited to the tvout section.

thanks again.

Author:  xm301 [ Thu Dec 02, 2004 6:53 pm ]
Post subject:  Update...

I found this possible solution, but it didn't work for me:

Code:
ivtvctl -j reg=0x6c,val=0x9a -d /dev/video0


I recently purchased the card, but I think it had been on the shelf for awhile. So I'm not sure if it uses the new tuner or not. Does anyone know of a way to test for what "model" PVR350 you have?

Author:  rod821 [ Sat Dec 04, 2004 10:09 am ]
Post subject: 

XM301

No, it sounds like you have one of the newer PVR-350 cards and will need the SAA7127 register mods if your screen is bright green and purple... You selected the wrong device in your ivtvctl command, video0 is the input,; video16 is the tv-out port.
Try: "ivtvctl -j reg=0x6c, val=0xfa -d /dev/video16"

What version of IVTV are you using? I had to use one of the newer versions as I had no luck with the version that came with KnoppMyth R4V5. The one I am currently running with no problems is "ivtv.0.3.1x"

If you use the 0.3.1x version use this for your /etc/mythtv/modules/ivtv

alias char-major-61 lirc_i2c
alias char-major-81 videodev
options ivtv debug=1
options tuner type=39
# output_select 0==> composite, 1==> svideo [modify for your setup]
options saa7127 enable_output=1 output_select=0
options msp3400 modprobe
add below ivtv msp3400 saa7115 saa7127 tuner
add above ivtv lirc_dev lirc_i2c ivtv-fb

For firmware use Version 2.04.024 - pvr_1.18.21.22168_inf.zip
See http://ivtv.writeme.ch/tiki-index.php?p ... reVersions
Copy the inf file into the ivtv util directory and run the ivtvfwextract.pl script to install.

To install the X11 ivtvdev binary driver copy “ivtvdev_drv_o” to /usr/X11R6/lib/modules/drivers/ then rename it to "ivtvdev_drv.o"

Follow the usual steps to get your framebuffer working with the PVR-350 and change your XF86Config-4 config file:

Driver "ivtvdev"
Option "fbdev" "/dev/fb1"
BusID "0x02:0x09:0x00"


:)

Author:  xm301 [ Sat Dec 04, 2004 1:35 pm ]
Post subject: 

Quote:
You selected the wrong device in your ivtvctl command, video0 is the input,; video16 is the tv-out port. Try: "ivtvctl -j reg=0x6c, val=0xfa -d /dev/video16"


You familar with the phrase 'A little knowledge is dangerous'... I tried video0, video16, video32, & video224. :?

I did try it again with just video16 and I get the following results:

ioctl: IVTV_IOC_S_SAA7127_REG
set SAA7127 register 0x6c to 0xFA
ivtv: ivtv-api.c: unknown ioctl 0x400240d1
ioctl: IVTV_IOC_S_SAA7127_REG failed

I took me awhile to find what version of ivtv I have, but dmesg shows it as: 0.1.9

I'm off to try your other suggestions.
thanks

Author:  jgaedke [ Sun Dec 05, 2004 1:31 am ]
Post subject: 

I'm getting the same thing. New PVR 350 card. GLX section is commented out. Also tried the ivtvctl and didn't work... ? Still receiving green and purple screen.
Thanks,
Jeffro

Author:  rod821 [ Sun Dec 05, 2004 9:10 am ]
Post subject: 

Here is the output from my box:
# ivtvctl -j reg=0x6c,val=0xfa -d /dev/video16
ioctl: IVTV_IOC_S_SAA7127_REG
set SAA7127 register 0x6C to 0xFA
ioctl: IVTV_IOC_S_SAA7127_REG ok

My guess is that you need the newer drivers...

Also don't forget to first determine which framebuffer you are using:
$ cat /var/log/messages | grep "iTVC"

Some other items after you install the new ivtv driver, you may need to redo the /dev/fb0 or /dev/fb1 device, I kept getting errors in Xwindows that the fbdev was not available.
su
rm -f /dev/fb0
mknod /dev/fb0 c 29 0
chmod 666 /dev/fb0
chown mythtv /dev/fb0

Search for the many topics that cover the PVR-350 TV-out problems... Read through the KnoppMyth Wiki how-to sections at http://knoppmythwiki.homelinux.org/

Hang in there as the KnoppMyth/PVR-350 combo does work. It took me many weeks to put it all together but it is worth it in the end. KnoppMyth Rocks!!!
:D

Author:  jgaedke [ Sun Dec 05, 2004 6:06 pm ]
Post subject: 

I'm also running ivtv0.1.9. I found the following for 0.1.9a, but not 0.3x :

cd /usr/src
tar xvfj linux-2.4.25-chw.tar.bz2
cd /usr/local/lib
wget -nd http://membres.lycos.fr/badzzzz/ivtv-0.1.9a.tar.gz
tar xzvf ivtv-0.1.9a.tar.gz
cd ivtv/driver
make clean
make install
cd ..
cd utils
make clean
make install

Thanks.

Author:  xm301 [ Mon Dec 06, 2004 8:41 am ]
Post subject: 

Thanks to rod821 for the detailed instructions

This fixes the problem with the green & purple TVout on the new PVR-350 tuner.

Start here:

#Get the driver
cd /usr/src
wget http://205.209.168.201/~ckennedy/ivtv/i ... 0.3.1x.tgz
tar -zxvf ivtv-0.3.1x.tgz

#Get the firmware
cd ivtv-0.3.1x/utils
wget ftp://ftp.shspvr.com/download/wintv-pvr ... 68_inf.zip
ivtvfwextract.pl pvr_1.18.21.22168_inf.zip

#Compile the new driver
cp videodev2.h ../driver
cd ../driver
make
make install
cd ../utils
make
make install

#edit your /etc/mythtv/modules/ivtv
alias char-major-61 lirc_i2c
alias char-major-81 videodev
options ivtv debug=1
options tuner type=39
# output_select 0==> composite, 1==> svideo [modify for your setup]
options saa7127 enable_output=1 output_select=0
options msp3400 modprobe
add below ivtv msp3400 saa7115 saa7127 tuner
add above ivtv lirc_dev lirc_i2c ivtv-fb

update-modules

#copy & rename driver
cd /usr/X11R6/lib/modules/drivers/
cp /usr/src/ivtv-0.3.1x/utils/ivtvdev_drv_o ivtvdev_drv.o

#Edit /etc/X11/XF86Config-4
Driver "ivtvdev"

#remove and recreate fb0 & fb1
rm -f /dev/fb0
mknod /dev/fb0 c 29 0
chmod 666 /dev/fb0
chown mythtv /dev/fb0

rm -f /dev/fb1
mknod /dev/fb1 c 29 1
chmod 666 /dev/fb1
chown mythtv /dev/fb1

#Edit /etc/init.d/bootmisc.sh
#add this line to the botom of the file
ivtvctl -j reg=0x6c,val=0xfa -d /dev/video16

#Note: this didn't work for me. I added the line:
exec ivtvctl -j reg=0x6c,val=0xfa -d /dev/video16
# to the /home/mythtv/.fvwm/.fvwm2rc file


#Cross your fingers
reboot

Author:  jgaedke [ Tue Dec 07, 2004 2:00 pm ]
Post subject: 

Most excellent! It worked for me. I did have to change one section as the file wasn't at the web site. (I put the update below.) I'm amazed at how well the video looks on the TV! Thanks for all the help and a special thanks to Knoppmyth!

#Get the driver
cd /usr/src
wget http://205.209.168.201/~ckennedy/ivtv/i ... 0.3.1z.tgz
tar -zxvf ivtv-0.3.1x.tgz

#I needed to change the file name: ivtv-0.3.1x.tgz to ivtv-0.3.1z.tgz

Author:  xm301 [ Tue Dec 07, 2004 5:03 pm ]
Post subject: 

I also had to change the tuner type in the ivtv to '44' in order to get channels above 61.

Author:  rod821 [ Fri Dec 10, 2004 6:38 am ]
Post subject:  Problem with the ivtv X11 driver included with ivtv-0.3.1

Just as a side note... I found that there is a problem with the ivtvdev_drv_o X11 driver that is included with the ivtv driver package. I was having terrible video image issues and frame drops when playing from mplayer or xine with this driver. I found another version on my system and replaced the 0-3.1 version of ivtvdev_drv.o and now it works almost perfect.

I am not sure where this version came from but the size is 17902 bytes. It could have come from the ivtv-0.2 drivers that I had tried in the past. Search for this driver and post the location if you find it.

Author:  mccoyn [ Fri Dec 10, 2004 7:58 am ]
Post subject: 

I'm having the green and purple problem with my PVR-350 I bought a week ago. I followed the steps that rod821 posted, but it doesn't fix the problem. Any ideas on what else I can try?

I've tried both ivtv-0.3.1x.tgz and ivtv-0.3.1z.tgz with the same results on both.

I'm not certain if I've got the right BusID. I have "0:0x0c:0" which comes from lspci. Also I don't have the post-install lines in ivtv since I understand they arn't needed. When I call update-modules it always fails since I changed the driver, so I've just stuck the the settings I've had at that time. Is this a problem?

Author:  brendan [ Fri Dec 10, 2004 8:14 am ]
Post subject: 

xm301 wrote:
Thanks to rod821 for the detailed instructions

This fixes the problem with the green & purple TVout on the new PVR-350 tuner.

Start here:

#Get the driver
cd /usr/src
wget http://205.209.168.201/~ckennedy/ivtv/i ... 0.3.1x.tgz
tar -zxvf ivtv-0.3.1x.tgz

.......................


#Cross your fingers
reboot


Thanks! I'd nearly given up on my PVR-350.

The mostly worked for me, though I ended up using the now available ivtv-0.3.1z.tgz and newer versions of the PVR-250/350 firmware archive ( pvr_1.18.21.22301_inf.zip ) and a couple of other tweaks. I also switched to type '44' as you recommended later.

I skipped the modifications to X's config, since I'm not yet using the s-video/composite out on the 350.

Note that for a bit of time after your recommended modificaions I thought it wasn't working since Live TV would do a quick blue-screen, then give black-screen every time. A few frustrated reboots later, I was at the black-screen and hit up-arrow. Suddenly it tuned to a channel. I suppose that, by default after install, it was tuned to no-channel? Heh.

-brendan

Page 1 of 3 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/