[mythtv-users] FOLLOWUP: Cannot tune PVR 350 on FC3

Bruce McKenzie bruce at doublepup.com
Sat Dec 11 08:09:23 UTC 2004


Semi-success, brought on by massive Googling the world:

1) Buy a video amp. (this was recommended on a list a while ago, and I had 
one sitting around. I went from mostly-no channels to mostly-all channels. 
Mine is a $20 one from Radio Shack. Once I installed this the tuning by 
channel number (ntsc-cable for me) worked correctly. Here is the very 
useful thread <http://www.gossamer-threads.com/lists/ivtv/devel/15770>

NOTE ALSO: This tells how to put explicit frequencies into MythTV for 
channels...

2) Play with the tuning. This list had a thread a while ago about SNR and 
finding channels that way. I simplified the script (attached) and used the 
output to learn about where the channels sit. They are in the right 
location, but only after the signal was amplified.  I poked around, let the 
script scan the whole range (at 50KHz increments), sensed where the real 
channels were.  This page 
<http://www.phptr.com/articles/article.asp?p=169518&seqNum=5> was 
interesting, and dump the channel tables via ptune.pl.

3) Upgrade to ivtv 0.2.0. This appears to fix (among other stuff) the "VIM 
restart" problem (check your /var/log/messages).

4) Verify your firmware versions. Check 
<http://ivtv.writeme.ch/tiki-index.php?page=FirmwareVersions> for details.

I recommend having a shell window running a tail on /var/log/messages while 
you poke around.

But I still have the following problems:

1) Can't tune below Ch 55. True under ivtv 0.1.9 and 0.2.0. Don't know why. 
The messages are in the log file, but the mplayer acts like no retune took 
place, even if I restart it.

2) mplayer hangs occasionally. Also has to be kill -KILLed sometimes in 
these cases.

3) seemingly bad messages in /v/l/m:
Dec 10 23:38:47 localhost kernel: ivtv: ENC IRQ OVERFLOW: #0 Stealing a 
Buffer, 256 currently allocated
Dec 10 23:38:47 localhost kernel: ivtv: ENC IRQ OVERFLOW: #1 Stealing a 
Buffer, 256 currently allocated
Dec 10 23:38:47 localhost kernel: ivtv: ENC IRQ OVERFLOW: #2 Stealing a 
Buffer, 256 currently allocated

4) Apparent linkages between mplayer and the X screen saver. Or a brain 
fart on my side. Problem: I do an "xset s off" and the saver still 
activates. Now, I must admit that I am ssh'd in from another machine, but I 
DID set DISPLAY to 0:0 (verified by running xclock and mplayer, and seeing 
the output in the correct place).
- How do I KILL the screen saver (prevent it from activating)? (not "xset s 
off"!!!)
- How do I make it unlock/go away from the command line (from my ssh'd 
connection)?

Hope this all helps...I'm getting closer to mything in action...

Bruce

At 12:46 PM 12/9/2004, you wrote:

>Greetings -
>
>I'm starting here, but can be persuaded to move off to the ivtv-devel list 
>if there is no solution known (here)....
>
>I've installed myth 0.16 (wow!) on FC3 with Jared's guide (wow!). I've got 
>TVout working, IR working, life is good...
>
>Except for the ubiquitous "always get static from tuner0" even with ptune 
>and mplayer.
>
>I've tried all the module options, and I get nuttin'. I just saw the 
>tuning frequency stuff, so I'll try that tonight.
>
>I'm running ivtv 0.1.10 (0.1.10-48.4_pre2_ck100zz.rhfc3.at).
>
>QUESTION: Should I upgrade to 0.2.0 ? Has that solved anyone's issue with 
>tuning problems?
>
>FOLLOWUP QUESTIONs:  If so, how do I tell apt to get that version?
>.... How can I revert to 0.1.10 should I wish to?
>
>
>TIA,
>
>Bruce
>
>
>
>Iv messages:
>Dec  7 23:50:15 localhost kernel: ivtv: version 0.1.10 
>(0.1.10-48.4_pre2_ck100zz.rhfc3.at) loading
>Dec  7 23:50:15 localhost kernel: ivtv: Linux version: 2.6.9-1.681_FC3 686 
>REGPARM 4KSTACKS gcc-3.4
>Dec  7 23:50:15 localhost kernel: ivtv: In case of problems please include 
>the debug info
>Dec  7 23:50:15 localhost kernel: ivtv: between the START INIT IVTV and 
>END INIT IVTV lines when
>Dec  7 23:50:15 localhost kernel: ivtv: mailing the ivtv-devel mailinglist.
>Dec  7 23:50:15 localhost kernel: ivtv: Autodetected WinTV PVR 350 card
>Dec  7 23:50:15 localhost kernel: ivtv: Found an iTVC15 based chip
>Dec  7 23:50:15 localhost kernel: ACPI: PCI interrupt 0000:00:08.0[A] -> 
>GSI 11(level, low) -> IRQ 11
>Dec  7 23:50:15 localhost kernel: ivtv: Unreasonably low latency timer, 
>settingto 64 (was 32)
>Dec  7 23:50:15 localhost kernel: ivtv: pci: VIA detected device: 0x3148 
>vendor: 0x1106
>Dec  7 23:50:15 localhost kernel: tveeprom: Ignoring new-style parameters 
>in presence of obsolete ones
>Dec  7 23:50:15 localhost kernel: tveeprom: Hauppauge: model = 48132, rev 
>= I123, serial# = 2867373
>Dec  7 23:50:15 localhost kernel: tveeprom: tuner = Philips FM1236 (idx = 
>23, type = 2)
>Dec  7 23:50:15 localhost kernel: tveeprom: tuner fmt = NTSC(M) (eeprom = 
>0x08,v4l2 = 0x00001000)
>Dec  7 23:50:15 localhost kernel: tveeprom: audio_processor = MSP3440 
>(type = 11)
>Dec  7 23:50:15 localhost kernel: ivtv: i2c attach [client=tveeprom[0],ok]
>Dec  7 23:50:15 localhost kernel: ivtv: Tuner Type 2, Tuner formats 
>0x00001000,Radio: yes, Model 0x00a51493, Revision 0x00000001
>Dec  7 23:50:15 localhost kernel: ivtv: NTSC tuner detected
>Dec  7 23:50:15 localhost kernel: ivtv: Radio detected
>Dec  7 23:50:15 localhost kernel: tuner: Ignoring new-style parameters in 
>presence of obsolete ones
>Dec  7 23:50:15 localhost kernel: tuner: chip found at addr 0xc2 i2c-bus 
>ivtv i2c driver #0
>Dec  7 23:50:15 localhost kernel: ivtv: i2c attach [client=(tuner unset),ok]
>Dec  7 23:50:15 localhost kernel: saa7115: Ignoring new-style parameters 
>in presence of obsolete ones
>Dec  7 23:50:15 localhost kernel: saa7115: starting probe for adapter ivtv 
>i2c driver #0 (0x10005)
>Dec  7 23:50:15 localhost kernel: saa7115: detecting saa7115 client on 
>address 0x42
>Dec  7 23:50:15 localhost kernel: saa7115: writing init values
>Dec  7 23:50:15 localhost kernel: ivtv: i2c attach [client=saa7115[0],ok]
>Dec  7 23:50:15 localhost kernel: saa7115: status: (1E) 0x48, (1F) 0xc0
>Dec  7 23:50:15 localhost kernel: saa7127: Ignoring new-style parameters 
>in presence of obsolete ones
>Dec  7 23:50:15 localhost kernel: saa7127: video encoder driver version V 
>0.3 loaded
>Dec  7 23:50:15 localhost kernel: saa7127: Selecting NTSC video Standard
>Dec  7 23:50:15 localhost kernel: saa7127: Selecting S-Video+Composite
>Dec  7 23:50:15 localhost kernel: saa7127: Turn WSS off
>Dec  7 23:50:15 localhost kernel: saa7127: Widescreen Mode 4:3 Full Format
>Dec  7 23:50:15 localhost kernel: saa7127: Selecting Normal Encoder Input
>Dec  7 23:50:15 localhost kernel: saa7127: Enable Video Output
>Dec  7 23:50:15 localhost kernel: ivtv: i2c attach [client=saa7127[0],ok]
>Dec  7 23:50:15 localhost kernel: msp3400: Ignoring new-style parameters 
>in presence of obsolete ones
>Dec  7 23:50:16 localhost kernel: msp34xx: init: chip=MSP3448W-A2 +nicam 
>+simple +simpler +radio mode=simpler
>Dec  7 23:50:16 localhost kernel: ivtv: i2c attach [client=MSP3448W-A2,ok]
>Dec  7 23:50:17 localhost kernel: ivtv: Encoder revision: 0x02040024
>Dec  7 23:50:17 localhost kernel: ivtv: Decoder revision: 0x02020023
>Dec  7 23:50:17 localhost kernel: ivtv: Configuring WinTV PVR 350 card 
>with 9 streams
>Dec  7 23:50:17 localhost kernel: ivtv: Create DMA stream 0 using 128 
>buffers of size 32768
>Dec  7 23:50:17 localhost kernel: ivtv: Create DMA stream 1 using 128 
>buffers of size 32768
>Dec  7 23:50:17 localhost kernel: ivtv: Create stream 2 using 128 buffers 
>of size 52224
>Dec  7 23:50:17 localhost kernel: ivtv: Create DMA stream 3 using 128 
>buffers of size 32768
>Dec  7 23:50:17 localhost kernel: ivtv: Create stream 4
>Dec  7 23:50:17 localhost kernel: ivtv: Create DMA stream 5 using 16 
>buffers ofsize 32768
>Dec  7 23:50:17 localhost kernel: ivtv: Create stream 6 using 128 buffers 
>of size 4096
>Dec  7 23:50:17 localhost kernel: ivtv: Create stream 7
>Dec  7 23:50:17 localhost kernel: ivtv: Create DMA stream 8 using 16 
>buffers ofsize 32768
>Dec  7 23:50:17 localhost kernel: ivtv: Setting Tuner 2
>Dec  7 23:50:17 localhost kernel: tuner: type set to 2 (Philips NTSC 
>(FI1236,FM1236 and compatibles)) by ivtv i2c driver #0
>Dec  7 23:50:17 localhost kernel: ivtv: Setting audio matrix to input 3, 
>output1
>Dec  7 23:50:17 localhost kernel: ivtv: Switching standard to NTSC.
>Dec  7 23:50:17 localhost kernel: saa7115: decoder set norm NTSC
>Dec  7 23:50:17 localhost kernel: saa7115: set audio: 0x01
>Dec  7 23:50:17 localhost kernel: saa7127: Setting Encoder Video Standard
>Dec  7 23:50:17 localhost kernel: saa7127: Set NTSC Video Mode
>Dec  7 23:50:17 localhost kernel: saa7127: Selecting NTSC video Standard
>Dec  7 23:50:17 localhost kernel: ivtv: Initialized WinTV PVR 350, card #0
>Dec  7 23:50:17 localhost kernel: ivtv: ====================  END INIT 
>IVTV  ===
>---
>Bruce J. McKenzie    |   bruce at doublepup.com    |   DoublePup Enterprises, 
>Inc.
>http://www.doublepup.com    |    Consulting Services for Systems Development
>
>
>
>_______________________________________________
>mythtv-users mailing list
>mythtv-users at mythtv.org
>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
-------------- next part --------------
#!/usr/bin/perl

use strict;

my $freq=400_000;
my $increment=50;

while ($freq<1_500_000)
{
	system ("/usr/lib/ivtv/ptune.pl -F $freq &>/dev/null");
	select undef,undef,undef,1.0;
	my $status= `ivtvctl -I`;
	
	# note the quality state of the signal: Bad, Vcr, Sat/DVD, etc.
	my $vidStat;
	($vidStat) = $status =~ /VIDEO_STATUS = ([^\n]*)/;

        # capture the signal strength. It's in hex.
	if ( $status=~/SAA7115 reg\[STATUS#1 - 0x1E\] = (.*)\n/)
        {
		print "freq $freq qual $1 vid $vidStat\n";
       }
	else 
	{
		print "freq $freq noqual vid $vidStat\n";
	}
	 $freq=$freq+$increment;
}
-------------- next part --------------
---
Bruce J. McKenzie    |   bruce at doublepup.com    |   DoublePup Enterprises, Inc.
http://www.doublepup.com    |    Consulting Services for Systems Development


More information about the mythtv-users mailing list