View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 32 posts ] 
Go to page 1, 2, 3  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: PVR 500 R5A12 HOWTO!
PostPosted: Tue Apr 05, 2005 1:31 pm 
Offline
Joined: Wed Mar 23, 2005 2:33 pm
Posts: 12
Location: Ohio
Just thought I'd share my experience getting my pvr 500 working in Knoppmyth R5A12. I only have mythtv working on my computer using the cable coax to the pvr 500 input. Enjoy!

Install Knoppmyth R5A12 following directions here: http://www.mysettopbox.tv/doc.html

Downlad latest drivers here: http://www.ivtv.tv/releases/ivtv-0.3/
(I used ivtv-0.3.2r.tgz but also had it working with 0.3.2q)

Code:
mkdir /lib/modules/old
mv /lib/modules/2.6.9-chw-4/extra/msp3400.ko /lib/modules/old

(not sure if this is needed or not, but I wanted to make sure the correct msp3400.ko was being used)

Note: if you followed the Pamphlet of Knoppmyth howto then you'll already have unpacked the kernel source tarball in /usr/src, which is needed before the next step.

Unpack ivtv tarball
Code:
cd ivtv-0.3.2r/driver
make
make install
cd ../utils
make
make install


Download firmware:
Code:
cd ivtv-0.3.2r/utils
wget ftp://ftp.shspvr.com/download/wintv-pvr_250-350/win9x-2k-xp_mpeg_wdm_drv/pvr48wdm_1.8.22037.exe
./ivtvfwextract.pl pvr48wdm_1.8.22037.exe

This replaces ivtv-fw-dec.bin and ivtv-fw-enc.bin in /lib/modules

mount the driver cd that came with the pvr 500 to /cdrom
mount /dev/hdx /cdrom (replace x with your current device)
Code:
cp /cdrom/WinTV-PVR-150500MCE_2.0.18.22316_WHQL_signed/HcwMakoA.ROM /lib/modules


edit /etc/mythtv/modules/ivtv to look like this:
Code:
alias char-major-61 lirc_i2c
alias char-major-81 videodev
alias char-major-81-0 ivtv
options cx25840 no_black_magic=1
options ivtv ivtv_std=0 tuner=57,57 tda9887=0,0 ivtv_debug=1
 
options cx25840 i2c_enable=1
options saa7127 i2c_enable=-1


Note: there are other options if you have more than just a pvr 500 in your box in ivtv-0.3.2r/doc/README.cx25840.

The line "options ivtv ivtv_std=0"
0=NTSC
1=PAL
2=SECAM

Next go to /etc/init.d
Open the file called: set_ivtv_params
Comment everything out and place in the file:

ivtvctl -d /dev/video0 -u 1 -f width=720,height=480 -p 6
ivtvctl -d /dev/video1 -u 1 -f width=720,height=480 -p 6

Reboot and enjoy!
Hope this helps!

Ralph


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 23, 2005 8:37 pm 
Offline
Joined: Fri Mar 26, 2004 9:00 am
Posts: 239
I followed the above docs with the edits required for a single tuner system and got my PVR-150 (PVR 150) (the one with the silver remote) working just fine. Note the tuner type I used. I used the dmesg | grep tuner method to find the tuner type, once the new ivtv driver was loaded on.

Here is my /etc/mythtv/modules/ivtv file:

Code:
alias char-major-61 lirc_i2c
alias char-major-81 videodev
alias char-major-81-0 ivtv
options cx25840 no_black_magic=1
options ivtv ivtv_std=0 tuner=50 tda9887=0 ivtv_debug=1

options cx25840 i2c_enable=1
options saa7127 i2c_enable=-1

install ivtv /sbin/modprobe tuner; /sbin/modprobe msp3400; /sbin/modprobe saa7115;  /sbin/modprobe --ignore-install  ivtv
remove ivtv /sbin/modprobe -r --ignore-remove ivtv && /sbin/modprobe -r saa7115 && /sbin/modprobe -r msp3400 && /sbin/modprobe -r tuner


Off to figure out how to make the silver remote work. :)

-Jeff


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 23, 2005 9:43 pm 
Offline
Joined: Fri Mar 26, 2004 9:00 am
Posts: 239
Wow, without much trouble, thanks to the work of many before me, I got the silver remote that came with the PVR-150 working.

I'll paste in the info from the wiki page and edit to simplify:

Code:
LIRC

1.) Download the following:

# This is the patch to make the 150 work with lirc
http://www.pjd.nu/lirc/lirc-0.7.0_pvr150.patch.gz

# This is the file that goes in /etc/lircd.conf to interpret the remote
http://www.pjd.nu/lirc/lircd_pvr150.conf

# This is the actual source for lircd that we're going to patch and compile
http://prdownloads.sourceforge.net/lirc/lirc-0.7.0.tar.bz2

(I had to use lynx to get the last file as it is mirrored, I used wget for the other two)

2.) unpack lirc and the patch. Put the patch in the lirc directory.
(bunzip2 for the bz2 file)

3.) cd lirc-0.7.0

4.) patch -p1 -i lirc-0.7.0_pvr150.patch

5.) ./setup.sh
Select Driver Configuration (1)
Select TV Card (5)
Select Hauppauge TV Card (f)
Select Save Configuration & Run Configure

# You want to be root to install this, might as well do that now

6.) make

7.) make install

# Move the original out of the way

8.) mv /etc/lircd.conf /etc/lircd.conf.old

# Move the correct conf in place

9.) mv lircd_pvr150.conf /etc/lircd.conf

# I did not have to do this, as I addressed it in my posting above
# in /etc/mythtv/modules/ivtv

## 10.) nano /etc/modprobe.d/lirc

## alias char-major-61 lirc_i2c

# This was not necesarry either

## 11.) nano /etc/modules

## add to bottom "lirc_i2c"

Don't forget this, or the daemon won't start after a reboot:

12.) nano /etc/init.d/bootmisc.sh

add to bottom "/usr/local/sbin/lircd"

13.) To test:

(I recommend two windows, one doing a tail-f /var/log/messages so you can see the lirc_i2c register.  Also, you may have to "rmmod lirc_i2c" first to remove the original one.  Then do the following:)

modprobe lirc_i2c
lircd
irw


Point the remote at the reciever and press the buttons and you should get output.

14.) To map the buttons to myth functions edit /home/mythtv/.mythtv/lircrc. The following file, courtesy of Jarod Wilson and Brad Templeton, is a good start: http://wilsonet.com/mythtv/lircrc-haupgrey-g3.txt

--Al Heinen



(Heh, I even got a mention in that for the remote work I did back in Myth .08 :) I'm going to go through it in more detail and edit it for my own use, but the basics are there. --JAC)

-Jeff


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 23, 2005 10:41 pm 
Offline
Joined: Fri Mar 26, 2004 9:00 am
Posts: 239
A quick update.

My tuner is working but I appear to be missing a large portion of the right hand side of the screen. Looking in to that now.

Also, the onboard audio on my MSI KM4M-V motherboard appears to be non-functioning. Don't have another sound card right now to test, but I can't make anything come out of it. Have confirmed speakers work with another PC and also confirmed tuner recorded files have audio in them.

-Jeff


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 23, 2005 11:40 pm 
Offline
Joined: Fri Mar 26, 2004 9:00 am
Posts: 239
The problem with the missing RH side of the screen has to do with the resolution used with the PVR-150. Go in to your Setup from the main menu and set all your TV profiles, live and for recordings to 720X480 and you should get the whole screen back.

Also, I had some driver instability with very current unstable revs so I decided to try the "back ported" stable version. I followed the docs from above but just got the stable version. I left my configs unchanged and everything seems to be working fine.

Now I need to find a new audio card as I think the onboard is toast.

-Jeff

PS - The remote config could use some re-work and improvement, so I hope to complete that in the spirit of my original for the old remote, and re-post it here.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 01, 2005 7:57 pm 
Offline
Joined: Sat Apr 23, 2005 10:18 pm
Posts: 7
hello i am trying to install the remote and this is the output that i get when i try to run the setup.sh file

[root@localhost lirc-0.7.0]# ./setup.sh
which: no dialog in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/mythtv/bin)
dialog not found!


p.s. i am running fedora linux


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 01, 2005 9:35 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
You need to install 'dialog' as I don't use Fedora, I cannot tell you where to locate it... odds are, it is probably on the Fedora CDs.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 03, 2005 1:00 pm 
Offline
Joined: Tue Dec 14, 2004 2:00 pm
Posts: 43
A couple of questions.

The IVTV drivers are now up to 0.3.4a I'm going to assume its safe to use those?

Should we use the firmware as noted or get whatever is currently the latest (currently 2.0.22280.exe)?

I notice there is a 150-500 folder should we not use anything in there?

Is this applicable to the latest knoppmyth release?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 03, 2005 2:37 pm 
Offline
Joined: Tue Dec 07, 2004 12:04 pm
Posts: 369
Nnyan wrote:
The IVTV drivers are now up to 0.3.4a I'm going to assume its safe to use those?


I'll answer the question I know about. The 0.3.4a driver came out this afternoon. Last I read on the ivtv-dev list, there was one positive response. Unlike the earlier 0.3.4 (no letter) driver which caused more problems than it fixed in 0.3.3z.

Basically, any 0.3.x driver you use means you are beta testing and, by definition, that's not safe. If you want to know which driver is 'best', subscribe the ivtv-dev mailing list, or keep up with it on http://gossamer-threads.com/lists/ivtv/devel/

-brendan


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 03, 2005 4:11 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Nice response! :)

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 04, 2005 6:12 am 
Offline
Joined: Fri Mar 26, 2004 9:00 am
Posts: 239
Further, if you are following docs and they use a specific version of the source, if you want the same results, use that version. This is especially true when using unstable branch code.

In my case, I tried a number of different versions and only when I used the one that Ralph mentioned, did the PVR-150 I documented above, come up nicely.

-Jeff


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 12:18 am 
Offline
Joined: Tue Dec 14, 2004 2:00 pm
Posts: 43
Ok I'm making some progress! I'm to the stage where you need to edit the set_ivtv_params file. Just to double check when you say comment everything do you mean the entire file?

If so mine is going to look like this:


#!/bin/bash
# Set the ivtv Parameters
########################################################################
ivtvctl -d /dev/video0 -u 1 -f width=720,height=480 -p 6
ivtvctl -d /dev/video1 -u 1 -f width=720,height=480 -p 6
#IVTVCTL='ivtvctl'
#IVTVDIR='/etc/sysconfig/ivtv'
#----------------------------------------------------------------------#
# Default values, if not specified in $IVTVDIR/cfg-*
#IVTV_DT='0' # Tuner input,
#IVTV_DF='NTSC' # tuner format [NTSC|PAL]
########################################################################
#[ -d "$IVTVDIR" ] || exit 1

#PATH="$PATH:/usr/local/bin"
# See how we were called:
#case $1 in
# (start)
# cd $IVTVDIR || exit 2
# for g in $(echo cfg-*) ; do
# f=${g#cfg-}
# unset IVTV_TUNER IVTV_RATE IVTV_PEAK IVTV_TYPE
# source cfg-$f
# case $IVTV_TYPE in
# ("") IVTV_TYPE=0x3000 ;;
# (NTSC) IVTV_TYPE=0x3000 ;;
# (PAL) IVTV_TYPE=0xff ;;
# esac
# $IVTVCTL -d /dev/video$f -u $IVTV_TYPE
# $IVTVCTL -d /dev/video$f -p ${IVTV_TUNER:-${IVTV_DT}}
# $IVTVCTL -d /dev/video$f -f width=720,height=480
# $IVTVCTL -d /dev/video$f -c dnr_mode=0,dnr_temporal=0
# done
# ;;
# (stop) # don't do anything on stop.
# ;;
# *)
# echo "Usage: /etc/init.d/set_ivtv_params {start|stop}"
# exit 1
# ;;
#esac
########################################################################
# End


Or do you mean just the top part leaving everything alone starting with this line and below:

[ -d "$IVTVDIR" ] || exit 1


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 8:23 am 
Offline
Joined: Tue Dec 07, 2004 12:04 pm
Posts: 369
I simply renamed the original file as a backup and recreated it with just the two ivtvctl lines I needed.

-brendan


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 9:00 am 
Offline
Joined: Tue Dec 14, 2004 2:00 pm
Posts: 43
cool, thanks thats what I'll do.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 9:55 am 
Offline
Joined: Tue Dec 07, 2004 12:04 pm
Posts: 369
Nnyan wrote:
cool, thanks thats what I'll do.


Correction: the file needs the #!/bin/bash on the first line, of course, and chmod +x to make it executable. Really, what I did was to copy the original file to set_ivtv_params.OLD, then edit the current file leaving the first two lines as is (the shell invocation and the blank line), and adding my own after that.

So really, for the simplest case with one tuner, it was 4 lines, one of which was blank.

As it stands currently, mine is a bit longer, but the comments explain why:

Code:
#!/bin/bash

#PVR-350 - NTSC, 1:1 scaling, tuner input (4 on 350)
#Turn off VBI in MPEG2 embedding
/usr/local/bin/ivtvctl -d /dev/video0 -u 0x3000 -f width=720,height=480 -p 4
/usr/local/bin/ivtvctl -d /dev/video0 -c dnr_mode=0,dnr_temporal=4,dnr_spatial=4
/usr/local/bin/ivtvctl -d /dev/video0 -x 0

#PVR-500 tuner 1 - NTSC, 1:1 scaling, tuner input (6 on 500), good DNR
#Turn off VBI in MPEG2 embedding
/usr/local/bin/ivtvctl -d /dev/video1 -u 0x3000 -f width=720,height=480 -p 6
/usr/local/bin/ivtvctl -d /dev/video1 -c dnr_mode=0,dnr_temporal=4,dnr_spatial=4
/usr/local/bin/ivtvctl -d /dev/video1 -x 0

#PVR-500 tuner2 - NTSC, 1:1 scaling, tuner input (6 on 500), good DNR
#Turn off VBI in MPEG2 embedding
/usr/local/bin/ivtvctl -d /dev/video2 -u 0x3000 -f width=720,height=480 -p 6
/usr/local/bin/ivtvctl -d /dev/video2 -c dnr_mode=0,dnr_temporal=4,dnr_spatial=4
/usr/local/bin/ivtvctl -d /dev/video2 -x 0


-brendan

[edit: spaces removed in -c's arguments]


Last edited by brendan on Thu May 05, 2005 11:07 am, edited 2 times in total.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ] 
Go to page 1, 2, 3  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu