LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-24-2008, 07:55 AM   #16
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Original Poster
Rep: Reputation: 47

Quote:
Originally Posted by pljvaldez View Post
Okay, looking at my modules it looks like they reside in the /lib/modules/2.6.18-6-686/contrib/ivtv/ directory.

Here is ls /lib/firmware
Code:
v4l-cx2341x-dec.fw
v4l-cx2341x-enc.fw
v4l-cx25840.fw
v4l-pvrusb2-24xxx-01.fw
v4l-pvrusb2-29xxx-01.fw
You might see what all is installed if you do a dpkg --get-selections |grep -i ivtv. Also, I found all my ivtv related stuff with locate ivtv. I'm a bit at a loss for where to go from here...
I just learned something I never knew before: not all options are available in the kernel by default. I untarred a new one and didn't use my .config file but started from scratch to try to find the modules, and there were even fewer video options, like only 2 or 3. Then I selected some other things and went back, and then there were like 4 or 5 more.

So I guess I am supposed to hunt through the entire kernel and guess what prerequisites are needed for the proper prvr-150 modules in multimedia/video to even show up?? that is quite absurd!

Something is obviously wrong with my kernel though, because ivtv.ko never gets installed even with m-a, only ivtvfb.ko. I wonder if it has to do with debian naming conventions, because I just untar to the name of the kernel (2.6.22 for example), and not 2.6.22-686-deb or however debian names it. I also don't build it by any debian method, but just make && make modules_install, then copy the kernel & sysmap to /boot, change grub and reboot. It must have something to do with that, because otherwise I don't see why ivtv.ko wouldn't even install or show up anywhere.

So I suppose I'll have to forgo a custom kernel and use one of debian's premade >=2.6.22 ones. Off to find out how to do that, thanks for all the input.

>>btw, dpkg --get-selections |grep -i ivtv says this, and locating ivtv grep ko only shows the ivtvfb module, as I said:
Code:
ivtv-modules-2.6.22				install
ivtv-modules-2.6.24.2				install
ivtv-modules-2.6.24.4				install
ivtv-source					install
ivtv-utils					install
libvideo-ivtv-perl				install
 
Old 04-24-2008, 10:36 AM   #17
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Original Poster
Rep: Reputation: 47
okay, I think I've got something! I learned something else: if you type forward slash (/) in the kernel make menuconfig, it will allow you to search for modules. So I entered ivtv, and it told me everything it depends on. then I went through and searched for all of those, got the locations, and enabled them. Then I did the same for the other required modules, and then they appeared in the menus. I *think* I got all of them, except for one related to bt848, but I don't think that one is needed for my card or was digital or something.

Anyway, here are the modules now listed:
Code:
Module                  Size  Used by
ppdev                   6788  0 
lp                      7308  0 
nfs                   101856  0 
af_packet              13828  2 
w83627hf               17940  0 
hwmon_vid               2304  1 w83627hf
wm8775                  4620  0 
cx25840                21776  0 
tuner                  36640  0 
tea5767                 4868  1 tuner
tda8290                10116  1 tuner
tuner_simple            7176  1 tuner
mt20xx                 10632  1 tuner
tea5761                 4100  1 tuner
parport_pc             19604  1 
parport                18112  3 ppdev,lp,parport_pc
i2c_viapro              7316  0 
floppy                 45616  0 
ivtv                  114324  0 
i2c_algo_bit            7044  1 ivtv
cx2341x                10116  1 ivtv
tveeprom               13328  1 ivtv
i2c_core               19088  12 wm8775,cx25840,tuner,tea5767,tda8290,tuner_simple,mt20xx,tea5761,i2c_viapro,ivtv,i2c_algo_bit,tveeprom
videodev               23296  1 ivtv
v4l2_common            14464  6 wm8775,cx25840,tuner,ivtv,cx2341x,videodev
v4l1_compat            11396  2 ivtv,videodev
rtc                     8604  0 
8139too                19072  0 
unix                   19220  52
ls shows that there is a /dev/video0, but when I enter mpeg-2 encoder and the /dev/video0 location in the mythtv-setup, it says it could not open /dev/video0 to probe its inputs (myth-backend is stopped).

lspci lists the card, and dmesg says this:

Code:
ivtv:  Start initialization, version 1.1.0
ivtv0: Initializing card #0
ivtv0: Autodetected Hauppauge card (cx23416 based)
ACPI: PCI Interrupt 0000:00:0b.0[A] -> Link [LNKD] -> GSI 5 (level, low) -> IRQ 5
ivtv0: Unreasonably low latency timer, setting to 64 (was 32) ### <-- ???

### and then later: 

Registered device video0 for encoder MPG (4096 kB)
ivtv0: Registered device video32 for encoder YUV (2048 kB)
ivtv0: Registered device vbi0 for encoder VBI (1024 kB)
ivtv0: Registered device video24 for encoder PCM (320 kB)
ivtv0: Initialized card #0: Hauppauge WinTV PVR-150
ivtv:  End initialization
I'll go through the setup doc again for any clues. I think the firmware is okay, i removed everything and reloaded it into /lib/firmware.

Code:
root@moe:~ # ll /lib/firmware/
total 936
-rw-r--r-- 1 root root 124478 2007-02-18 13:23 firmware.tar.gz
-rw-r--r-- 1  505  502 262144 2006-05-26 05:35 v4l-cx2341x-dec.fw
-rw-r--r-- 1  505  502 376836 2007-02-17 09:32 v4l-cx2341x-enc.fw
-rw-r--r-- 1  505  502 155648 2006-05-26 05:52 v4l-cx2341x-init.mpg
-rw-r--r-- 1  505  502  16382 2006-05-26 05:35 v4l-cx25840.fw
-rw-r--r-- 1  505  502   8192 2006-10-06 13:48 v4l-pvrusb2-24xxx-01.fw
-rw-r--r-- 1  505  502   8192 2006-07-01 17:18 v4l-pvrusb2-29xxx-01.fw
btw, I was curious, so I checked the firmware site again, and supposedly it is okay to leave it all in there even if your card doesn't need it. So i figured it was a safer bet just to leave it. Now just to figure out why myth setup can't probe the card. searching...
 
Old 04-24-2008, 11:07 AM   #18
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
Well, if you just want to check that the driver is working, you can cat /dev/video0 > test.mpg and then view the mpg.

I feel like there was some part of the setup, either in the backend options or the mythtv-setup program that was not intuitive. Sorry, I'm not at home anymore, so I'll have to check tonight.

But I'm glad to see you found the options you needed to get ivtv to load.
 
Old 04-24-2008, 05:14 PM   #19
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by pljvaldez View Post
Well, if you just want to check that the driver is working, you can cat /dev/video0 > test.mpg and then view the mpg.

I feel like there was some part of the setup, either in the backend options or the mythtv-setup program that was not intuitive. Sorry, I'm not at home anymore, so I'll have to check tonight.

But I'm glad to see you found the options you needed to get ivtv to load.
got it all working, thanks. the last problem was just permissions, with udev writing /dev/video0 as root:video 660. I haven't figured out what I need to change in the rules yet, but for now it's working just by changing the permissions manually (and in rc.local for reboot).

thanks for all the help. even if someone doesn't have the exact answer, it sometimes helps just having someone hang in there with you while you work it out. appreciate it!
 
Old 04-24-2008, 05:19 PM   #20
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
Congratulations! Enjoy your MythTV experience.
 
  


Reply

Tags
ivtv, mythtv


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian ivtv guide sureshot324 Linux - Software 1 08-19-2007 06:33 AM
mythtv no ivtv-firmware-audio tshontikidis Fedora 1 11-02-2005 08:31 AM
can't get ivtv to work w/ my pvr-150 using jarod's mythtv howto. thewhippingboy Linux - Software 1 07-27-2005 08:11 AM
Nvidia and ivtv modules have to be loaded manually. Fail on boot Pcghost Debian 2 03-16-2005 09:00 AM
Error building MythTV installing ivtv Perrin7 Linux - Newbie 1 10-01-2004 09:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration