|
SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Where is my 2nd Capture Card?
I've been running Sage on Linux for about 3 months now with 2 Haupauge HVR 1600 tuners. About 2 weeks ago, I started skipping recording opportunities and sure enough, when I check the "Setup Video Sources" menu, only 1 card is shown. If I try to add the second, Sage cannot seem to see the other card. But it worked fine a couple of weeks ago! What happened, and how can I fix it?
Here is some of the output of lspci. Looks to me like both cards are properly attached to thePCI bus. 03:0d.0 Multimedia video controller: Conexant Systems, Inc. CX23418 Single-Chip MPEG-2 Encoder with Integrated Analog Video/Broadcast Audio Decoder 03:0f.0 Multimedia video controller: Conexant Systems, Inc. CX23418 Single-Chip MPEG-2 Encoder with Integrated Analog Video/Broadcast Audio Decoder |
#2
|
|||
|
|||
Can you provide the dmesg output? Also, what are you using for linux distro?
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#3
|
|||
|
|||
Sure. Is there any particular thing that I should grep? In the meantime, here are lots of lines from dmesg that could be important. Thanks.
Code:
[ 11.900447] Linux video capture interface: v2.00 [ 11.984139] cx18: Start initialization, version 1.0.0 [ 11.984197] cx18-0: Initializing card #0 [ 11.984201] cx18-0: Autodetected Hauppauge card [ 11.984222] cx18 0000:03:0d.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22 [ 11.984233] cx18-0: Unreasonably low latency timer, setting to 64 (was 32) [ 11.986370] cx18-0: cx23418 revision 01010000 (B) [ 12.287414] tveeprom 0-0050: Huh, no eeprom present (err=-6)? [ 12.287420] tveeprom 0-0050: Encountered bad packet header [94]. Corrupt or not a Hauppauge eeprom. [ 12.287423] cx18-0: Invalid EEPROM [ 12.287428] cx18-0: VBI is not yet supported [ 12.303767] input: PC Speaker as /devices/platform/pcspkr/input/input5 [ 12.704443] tuner 1-0043: chip found @ 0x86 (cx18 i2c driver #0-1) [ 12.750592] tda9887 1-0043: creating new instance [ 12.750596] tda9887 1-0043: tda988[5/6/7] found [ 12.868797] tuner 1-0061: chip found @ 0xc2 (cx18 i2c driver #0-1) [ 12.868854] cs5345 0-004c: chip found @ 0x98 (cx18 i2c driver #0-0) [ 12.969038] cx18-0: Disabled encoder IDX device [ 12.969296] cx18-0: Registered device video0 for encoder MPEG (2 MB) [ 12.969300] DVB: registering new adapter (cx18) [ 13.067830] s5h1409_readreg: readreg error (ret == -6) [ 13.067935] cx18-0: frontend initialization failed [ 13.068916] cx18-0: DVB failed to register [ 13.069054] cx18-0: Registered device video32 for encoder YUV (2 MB) [ 13.069121] cx18-0: Registered device video24 for encoder PCM audio (1 MB) [ 13.069192] cx18-0: Registered device radio0 for encoder radio [ 13.069582] cx18-0: Error -12 registering devices [ 13.070021] tda9887 1-0043: destroying instance [ 13.071000] cx18-0: Error -12 on initialization [ 13.071010] cx18: probe of 0000:03:0d.0 failed with error -12 [ 13.071067] Intel ICH 0000:00:1f.5: PCI INT B -> GSI 17 (level, low) -> IRQ 17 [ 13.071091] Intel ICH 0000:00:1f.5: setting latency timer to 64 [ 13.071147] cx18-1: Initializing card #1 [ 13.071151] cx18-1: Autodetected Hauppauge card [ 13.071161] cx18 0000:03:0f.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18 [ 13.071169] cx18-1: Unreasonably low latency timer, setting to 64 (was 32) [ 13.073243] cx18-1: cx23418 revision 01010000 (B) [ 13.299744] tveeprom 0-0050: Hauppauge model 74551, rev C1A3, serial# 1473722 [ 13.299749] tveeprom 0-0050: MAC address is 00-0D-FE-16-7C-BA [ 13.299753] tveeprom 0-0050: tuner model is TCL MFNM05-4 (idx 103, type 43) [ 13.299756] tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08) [ 13.299759] tveeprom 0-0050: audio processor is CX23418 (idx 38) [ 13.299762] tveeprom 0-0050: decoder processor is CX23418 (idx 31) [ 13.299764] tveeprom 0-0050: has radio [ 13.299767] cx18-1: Autodetected Hauppauge HVR-1600 [ 13.299769] cx18-1: VBI is not yet supported [ 13.389207] tuner 1-0043: chip found @ 0x86 (cx18 i2c driver #1-1) [ 13.389300] tda9887 1-0043: creating new instance [ 13.389303] tda9887 1-0043: tda988[5/6/7] found [ 13.390404] tuner 1-0061: chip found @ 0xc2 (cx18 i2c driver #1-1) [ 13.390453] cs5345 0-004c: chip found @ 0x98 (cx18 i2c driver #1-0) [ 13.420889] tuner-simple 1-0061: creating new instance [ 13.420894] tuner-simple 1-0061: type set to 43 (Philips NTSC MK3 (FM1236MK3 or FM1236/F)) [ 13.422787] cx18-1: Disabled encoder IDX device [ 13.422973] cx18-1: Registered device video1 for encoder MPEG (2 MB) [ 13.422977] DVB: registering new adapter (cx18) [ 13.492031] intel8x0_measure_ac97_clock: measured 53810 usecs [ 13.492036] intel8x0: clocking to 48000 [ 13.518296] MXL5005S: Attached at address 0x63 [ 13.518305] DVB: registering frontend 0 (Samsung S5H1409 QAM/8VSB Frontend)... [ 13.518519] cx18-1: DVB Frontend registered [ 13.518563] cx18-1: Registered device video33 for encoder YUV (2 MB) [ 13.518600] cx18-1: Registered device video25 for encoder PCM audio (1 MB) [ 13.518637] cx18-1: Registered device radio1 for encoder radio [ 13.518640] cx18-1: Initialized card #1: Hauppauge HVR-1600 [ 13.519346] cx18: End initialization [ 16.156267] lp0: using parport0 (interrupt-driven). [ 16.285974] Adding 995988k swap on /dev/sda5. Priority:-1 extents:1 across:995988k [ 16.856086] EXT3 FS on sda3, internal journal [ 18.150735] type=1505 audit(1241235761.128:2): operation="profile_load" name="/usr/lib/cups/backend/cups-pdf" name2="default" pid=3860 [ 18.151146] type=1505 audit(1241235761.128:3): operation="profile_load" name="/usr/sbin/cupsd" name2="default" pid=3860 [ 18.312105] ip_tables: (C) 2000-2006 Netfilter Core Team [ 18.923213] ACPI: WMI: Mapper loaded [ 20.074034] warning: `avahi-daemon' uses 32-bit capabilities (legacy support in use) [ 20.186100] apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac) [ 20.186108] apm: overridden by ACPI. [ 20.461602] ppdev: user-space parallel port driver [ 22.528039] firmware: requesting v4l-cx23418-apu.fw [ 22.680501] cx18-1: loaded v4l-cx23418-apu.fw firmware V00120000 (141200 bytes) [ 23.229325] firmware: requesting v4l-cx23418-cpu.fw [ 23.340394] cx18-1: loaded v4l-cx23418-cpu.fw firmware (158332 bytes) [ 23.346725] cx18-1: FW version: 0.0.74.0 (Release 2007/03/12) [ 23.544018] firmware: requesting v4l-cx23418-apu.fw [ 24.096022] firmware: requesting v4l-cx23418-cpu.fw [ 24.356030] firmware: requesting v4l-cx23418-dig.fw [ 24.565353] cx18-1: loaded v4l-cx23418-dig.fw firmware (16382 bytes) |
#4
|
|||
|
|||
Quote:
B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#5
|
|||
|
|||
Well, there was a normal Ubuntu 8.10 update that took the kernel from 2.6.27-7 to 2.6.27-11. I had some unrelated issues with it, so I went back to -7. As for weather, just spring storms in CO.
Are you thinking that a power surge may have fried one of my capture cards? If so, I tried an experiment to test the theory. I connected each card individually, cycled power, and watched some live tv in Sage. Both cards seem to work, I just can't see both of them at the same time from within Sage. |
#6
|
|||
|
|||
If I were you, I would upgrade the drivers to v4l-dvb mercurial current snapshot.
Do you know how to do that? B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#7
|
|||
|
|||
I had a problem like this.
It turned out SageTV had decided to "turn off" one of my tuners. If I remember I had to edit a line in SageTV properties. http://forums.sagetv.com/forums/showthread.php?t=26242 |
#8
|
|||
|
|||
I don't think that applies given the errors in his boot log.
B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#9
|
|||
|
|||
Hello all, let me respond to both suggestions
1) on the subject of mmc/ignore_encoders, I saw michaeldjcox's post when I was searching the forums. You mentioned "that did the trick" but did not mention the specifics (e.g., what exactly did you set the property to?). So I added that line to my Sage.properties file as mmc/ignore_encoders=false, and mmc/ignore_encoders=true. Neither choice helped. Is that the proper way, or should I use that line to list specific recorders to ignore? Since I don't want to ignore any encoders, it seems appropriate that the property does not exist in my Sage.properties file. 2) I do have a bunch of errors in dmesg, so it seems like I have another problem. Three months ago when I brought my server online, I found bcjenkins blog while googling. Following advice there, I installed mercurial. I thought that I had installed the drivers correctly because a) I could see live tv on both capture cards and b) I was able to record two shows simultaneously. That was my first attempt using mercurial, so maybe I made a mistake. If you have an example or tutorial, please post the link. On a completely different topic ... what a coincidence that I read both of your suggestion before ... and then you both responded to my post! I guess the world isn't so big after all |
#10
|
|||
|
|||
Here's my method:
Code:
hg clone http://linuxtv.org/hg/v4l-dvb/ cd v4l-dvb make sudo rm /lib/modules/`uname -r`/kernel/drivers/media #Remove old modules as some names have changed sudo make install sudo reboot B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#11
|
|||
|
|||
carpie,
Did you recompile your drivers when you changed your kernel? I know whenever I have upgraded the kernel I have had to update the drivers. What I do is run the following commands after I have cleaned the modules from /lib/modules/`uname -r`/kernel/drivers/media cd v4l-dvb make clean make distclean make make install if you want to update the drivers before building them again just run hg pull -u before running make. Hope this helps Jayson
__________________
ESXi Host Intel Xeon x3440 on Intel S3420PLX, 4GB RAM, 80GB Primary Server:2 CPU's and 2GB memory Allocated, 15GB Virtual Primary, 1.5 TB RDM Physical Disk, A180 using VMDirectPath, 1 xHDHR Headless ArchLinux 2.6.34 64-bit, SageTV 7.0.15 Sun JRE 1.6.0_20 Comskip&PlayonWindows XP 2CPU and 1GB Ram Allocated Clients: 1 Media MVP and 2 STX-HD100 |
#12
|
|||
|
|||
OK, everything is working now. Thanks to all for helping out. Let me post the results in case somebody else reads this thread in the future.
1. updated/rebuilt the drivers as mentioned in this thread twice 2. reboot 3. my card 0 loaded, no problem. But I got the following error in dmesg for card 1 [ 13.250634] cx18-1: Initializing card 1 [ 13.250638] cx18-1: Autodetected Hauppauge card [ 13.250896] cx18 0000:03:0f.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18 [ 13.250906] cx18-1: Unreasonably low latency timer, setting to 64 (was 32) [ 13.251618] allocation failed: out of vmalloc space - use vmalloc=<size> to increase size. [ 13.251621] cx18-1: ioremap failed, perhaps increasing __VMALLOC_RESERVE in page.h [ 13.251625] cx18-1: or disabling CONFIG_HIGHMEM4G into the kernel would help [ 13.251655] cx18-1: Error -12 on initialization [ 13.251670] cx18: probe of 0000:03:0f.0 failed with error -12 [ 13.251701] cx18: End initialization 4. googled the vmalloc error. It turns out that there are lots of people with similar problems. The solution is to add this string without quotes "vmalloc=256M" (or any other number of megabytes, default is 128) to /boot/grub/menu.lst. The string should be appended to the line that starts with "root= ". 5. reboot one more time. 6. find the remote and start watching Sage Note: I presume that you will have to add the string to the new kernel entry in menu.lst every time the kernel is updated. Some sources suggest that you can also add the string to the line that begins "# kopt=root=UUID", but I'm not sure how to test that w/o updating kernels. |
#13
|
|||
|
|||
In grub, the line:
Code:
#kopt=....
__________________
Current Server: Sage v7.1.9.1 beta w/ Diamond UI on Ubuntu 11.10 x86_64 | Storage: Linux md's raid10,f2 | Client: HD300 extender | Tuner: HDHomeRun for QAM |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Want to buy 2nd capture card .. recomendations ??? | Tones | Hardware Support | 3 | 09-03-2008 08:36 AM |
Installed 2nd Haupaugge PVR card and now ERROR: ( -4, 0x80040217) on First Card | webdad | Hardware Support | 0 | 11-12-2006 04:43 PM |
No sound on 2nd card | Grey_Goose | Hardware Support | 3 | 06-13-2004 06:03 PM |
2nd Tuner Card | Karen0302 | SageTV Software | 7 | 05-28-2004 10:44 PM |
Video Card - Capture card question | Succorso | Hardware Support | 3 | 10-10-2003 06:02 AM |