View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Mar 23, 2004 6:25 pm 
Offline
Joined: Sat Mar 06, 2004 4:48 pm
Posts: 14
Location: Livonia, MI
This post details the steps I took to get my Netgear WG311 card working, how I got TV-out working with my PVR-350 in under 30 minutes, and how I got a second hard drive working without LVM.

My computer hardware:
AMD Athlon 750 MHz
512 MB RAM
Creative Labs RIVA TNT 16MB AGP
Hauppauge WinTV-PVR 350
Seagate 200GB IDE HD (hde)
Maxtor 30GB IDE HD (hda)
Sound Blaster Live!
Netgear WG311 Wireless G adapter
Creative Labs 8x DVD-ROM
Abit KA7-100 Motherboard

The following instructions are for NTSC only. I would assume there are only minor changes
that would need to be made for PAL users.

0. Download the latest madwifi drives and burn them to a CD-RW. I downloaded the following file: madwifi2003-0802.gz
1. Install R2V2 using the auto-install selection

Before I could log into X and start the MythTV setup, I needed internet access so I did the following to get my WG311 card working:

2. Before logging onto X terminal, press CTRL+ALT+F1. Log in as root. Mount /dev/cdrom to /mnt/test. Copy /mnt/test/madwifi-20030802.gz to /var/tmp. Unzip and untar madwifi-20030802.gz. Go into the madwifi-20030802 directory and do the following:
Code:
make
make install

3. Edit /etc/network/interfaces by adding the following line at the end of the file.
Code:
   iface ath0 inet dhcp

4. Edit /etc/resolv.conf by adding this line to the end of the file.
Code:
nameserver 192.168.0.1

5. Reboot
6. Log into X terminal and complete setup

I wanted TV out for X and Live TV so I did the following:

7. Press CTRL+ALT+F1. Log in as root. Rename /etc/X11/XF86Config-4 to /etc/X11/XF86Config-4.original. Copy /etc/X11/XF86Config-4.pvr350-tvout.sample to /etc/X11/XF86Config-4.
8. Edit the new /etc/X11/XF86Config-4 so your mouse will work. My XF86Config-4 is shown below. Yours may be different depending on how your mouse is hooked up.

Code:
   Section "ServerLayout"
           Identifier     "XFree86 Configured"
           Screen  0 "TV Screen"
           InputDevice    "PS/2 Mouse" "CorePointer"
           InputDevice    "Keyboard0" "CoreKeyboard"
   EndSection

   Section "ServerFlags"
           Option "AllowMouseOpenFail"  "true"

   EndSection

   Section "Files"
           RgbPath      "/usr/X11R6/lib/X11/rgb"
           ModulePath   "/usr/X11R6/lib/modules"
           FontPath     "/usr/X11R6/lib/X11/fonts/misc:unscaled"
           FontPath     "/usr/X11R6/lib/X11/fonts/misc"
           FontPath     "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
           FontPath     "/usr/X11R6/lib/X11/fonts/75dpi"
           FontPath     "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
           FontPath     "/usr/X11R6/lib/X11/fonts/100dpi"
             FontPath     "/usr/X11R6/lib/X11/fonts/Speedo"
           FontPath     "/usr/X11R6/lib/X11/fonts/PEX"
   # Additional fonts: Locale, Gimp, TTF...
           FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic"
   #       FontPath     "/usr/X11R6/lib/X11/fonts/latin2/75dpi"
   #       FontPath     "/usr/X11R6/lib/X11/fonts/latin2/100dpi"
   # True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
           FontPath     "/usr/X11R6/lib/X11/fonts/Type1"
           FontPath     "/usr/share/fonts/ttf/western"
           FontPath     "/usr/share/fonts/ttf/decoratives"
           FontPath     "/usr/share/fonts/truetype"
           FontPath     "/usr/share/fonts/truetype/openoffice"
           FontPath     "/usr/share/fonts/truetype/ttf-bitstream-vera"
           FontPath     "/usr/share/fonts/latex-ttf-fonts"
           FontPath     "/usr/X11R6/lib/X11/fonts/defoma/CID"
           FontPath     "/usr/X11R6/lib/X11/fonts/defoma/TrueType"
   EndSection

   Section "Module"
           Load  "ddc"  # ddc probing of monitor
   #       Load  "GLcore"
           Load  "dbe"
           Load  "v4l"
           Load  "extmod"
   #       Load  "glx"
           Load  "bitmap" # bitmap-fonts
           Load  "speedo"
           Load  "type1"
           Load  "freetype"
           Load  "record"
   EndSection

   Section "InputDevice"
           Identifier  "Keyboard0"
           Driver      "keyboard"
           Option      "CoreKeyboard"
           Option "XkbRules" "xfree86"
           Option "XkbModel" "pc105"
           Option "XkbLayout" "us"

   EndSection

   Section "InputDevice"
           Identifier  "Serial Mouse"
           Driver      "mouse"
           Option      "Protocol" "Microsoft"
           Option      "Device" "/dev/ttyS0"
           Option      "Emulate3Buttons" "true"
           Option      "Emulate3Timeout" "70"
           Option      "SendCoreEvents"  "true"
   EndSection

   Section "InputDevice"
           Identifier  "PS/2 Mouse"
           Driver      "mouse"
           Option      "Protocol" "auto"
      Option          "ZAxisMapping"          "4 5"
           Option      "Device" "/dev/psaux"
           Option      "Emulate3Buttons" "true"
           Option      "Emulate3Timeout" "70"
           Option      "SendCoreEvents"  "true"
   EndSection

   Section "Monitor"
           Identifier  "NTSC Monitor"
           HorizSync  30-68
           VertRefresh 50-120
           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

   Section "Device"
           Identifier  "Hauppauge PVR 350 iTVC15 Framebuffer"
           Driver      "fbdev"

           ### change fb1 to whatever number you got in the previous section
           Option      "fbdev" "/dev/fb1"

           ### change the busid to whatever is reported by lspci. Note that
           ### output of lspci is hex, so add a preceding "0x" to the BusID
           BusID "0:0x08:0"
   EndSection

   Section "Screen"
           Identifier  "TV Screen"
           Device      "Hauppauge PVR 350 iTVC15 Framebuffer"
           Monitor     "NTSC Monitor"
           DefaultDepth 24
           DefaultFbbpp 32
           Subsection "Display"
             Depth 24
             FbBpp 32
             Modes "720x480"
           EndSubsection
   EndSection

   Section "DRI"
           Mode 0666
   EndSection

9. Edit /etc/mythtv/modules/ivtv to look like the one below:
Code:
alias char-major-81 videodev
   alias char-major-61 lirc_i2c
   options ivtv debug=1
   options tuner type=2
   options msp3400 once=1 simple=1
   options saa7127 enable_output=1 output_select=0
   add below ivtv msp3400 saa7115 saa7127 tuner
   add above ivtv lirc_dev lirc_i2c ivtv-fb

10. Make the following changes to solve the black screen with sound problem:
Code:
   rm -f /dev/fb0autodetect
                rm -f /dev/fb1
   mknod /dev/fb1 c 29 1
   chmod 666 fb1
   chown root:tty /dev/fb1

11. Reboot. If everything went correctly you should have video out for X and be able to watch Live TV at the same time.

Next, I added a 200GB hard drive, which in my case became /dev/hde. I wanted to use hde for my myth partition, since it had so much space so I performed the following:

12.
Code:
fdisk /dev/hde
     <create my massive partition>
     mkfs.ext3 /dev/hde1

13.
Code:
mkdir /mnt/newdisk
     mount -t ext3 /dev/hde1 /mnt/newdisk
     cp -r -p /myth/* /mnt/newdisk
     umount /mnt/newdisk
     rm -fr /mnt/newdisk

14. Edit /etc/fstab. Change the line that defines the /myth partion as being /dev/hdaX to /dev/hde1 (or whatever your second hard drive partition is)
15. Reboot. /dev/hde1 is now mounted as /myth and I have 200GB of space for recordings.[/code]

If anyone has any hints or tips on how to setup the rest of the wireless options for the WG311 card, such as the wireless mode, wireless essid, wireless rate, etc. I would like to hear them.


Top
 Profile  
 
 Post subject: Good Instructions
PostPosted: Wed Mar 24, 2004 8:44 pm 
Offline
Joined: Mon Mar 08, 2004 9:09 pm
Posts: 30
Location: SLC, UT, USA
Thanks for the good instructions! As a Linux newbie I was actually able to follow them and get a display on my TV for the 1st time. Seems there is a lot of conflicting information about how to get the pvr350 working.

When playing video on my TV, it looked like a slideshow, though. :( I could actually see it redrawing at something like 3 frames per second. I'll be looking around the forums for a fix for this (unless you know how to fix this?). Also, no sound out of my pvr350, or should I just use the audio out from my normal sound card? Is it possible to switch the output to the SVideo instead of the composite?

Thanks again for the good instructions. All the other instructions about compiling drivers, etc. just ended in disaster for me and a lot of it was unclear since I wasn't sure where to compile things, if things had to go in specific folders and things like that.

Really excellent job. It made things much easier and I also got a larger drive for video working from your instructions.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 24, 2004 10:17 pm 
Offline
Joined: Sat Mar 06, 2004 4:48 pm
Posts: 14
Location: Livonia, MI
Make sure that in the MythTV settings for playback that you have selected the options to use the PVR-350. I'd give you exact instructions, but I don't have access to my Myth box right now.

It is possible to use the S-video out instead of composite. I think you would just have to add the following line:
Code:
Option "TVOutFormat" "SVIDEO"

to the Monitor section of /etc/X11/XF86Config-4.

My syntax may be a little off though, since I can't and have never tried to use S-Video out.

I'll try to get you more accurate directions for the choppy playback and sound issues when I get a chance to look at my Myth box.


Top
 Profile  
 
 Post subject: Mostly Working Now
PostPosted: Thu Mar 25, 2004 6:33 pm 
Offline
Joined: Mon Mar 08, 2004 9:09 pm
Posts: 30
Location: SLC, UT, USA
Thanks,

Checking the "Use PVR-350" box in MythTV options fixed the slow frame rate. I'd even seen that option before and just didn't remember that last step.

My sound output on the pvr350 started working after rebooting a few times, so that seems to have fixed itself with time and reboots.

Got the remote working with install-i686-l. MythTV looks very good. Still haven't gotten SVideo enabled, but I'm pretty happy with how good it looks. It looks much better than Tivo does to my eye. I'll post what I did to enable SVideo when I get it to happen.

Myth seems reasonably stable and very usable. What a nice free piece of software (both Myth and KnoppMyth). Thanks for your help. It actually makes the PVR-350 very friendly and fun to use (which it isn't with Hauppauge's crappy Windows software).

Hauppauge should be thanking Myth since I'm sure they wouldn't have sold nearly as many PVR250/350s if it weren't for the fact that MythTV makes having one actually usable (after setup is done).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 11, 2004 3:14 pm 
Offline
Joined: Sat May 29, 2004 1:44 am
Posts: 22
to use svideo out you do this: options saa7127 enable_output=1 output_select=1


Top
 Profile  
 
 Post subject: Re: Mostly Working Now
PostPosted: Fri Jun 11, 2004 5:24 pm 
Offline
Joined: Sat Apr 10, 2004 8:00 am
Posts: 25
skyler wrote:
...
My sound output on the pvr350 started working after rebooting a few times, so that seems to have fixed itself with time and reboots.
...


I think I might have that problem, I've set everything up and even on my old P3-500 the video looks great and keeps up just fine. My problem is there is no sound at all. I've hooked up the audio output of the pvr-350 directly to the tv. I've read that to enable other stuff, I may later want to run the audio back into my sound card instead, then hook the sound card audio out to the tv. But for right now, I'm just trying to get it to work direct out of the 350. I understand the decoder in the pvr-350 should be able to decode the audio directly. I don't know what I'm missing. Any help would be appreciated. Thanks


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 2 guests


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