LinHES Forums http://forums.linhes.org/ |
|
UDEV sucks!!!!! http://forums.linhes.org/viewtopic.php?f=2&t=13882 |
Page 2 of 4 |
Author: | bruce_s01 [ Thu Feb 01, 2007 8:39 am ] |
Post subject: | |
That's not the point I'm making, MythTV works great with multiple tuners/sources, I've got 2 Nova-Ts picking up UK DVB transmissions and a PVR350 connected up to a cable STB. If had the money/more free slots on the motherboard, I would add more cards. It's udev that will cause problems here, because, with the cards moving around and the lineup fixed to a card number so it ends up with your backend stalling (if you use different cards) or recording static, if one is connected to an STB and the other. Bruce S. |
Author: | alexvd [ Fri Feb 09, 2007 3:02 pm ] |
Post subject: | |
Saw this post over on the mythtv users list. Would this work easier than mucking with udev? for ivtv cards do this. options ivtv <other stuff> ivtv_first_minor=1 I have these in my /etc/modprobe.d/misc file. Your system will be different. I think this is more straight forward that mucking with udev rules. |
Author: | alexvd [ Sat Mar 10, 2007 1:30 pm ] |
Post subject: | |
I think I screwed something up now.. I followed your instructions and did the following: created a file called local.rules in /etc/udev/ file contained the following: DRIVERS=="ivtv", SYSFS{name}=="ivtv? encoder MPEG", ID=="0000:02:0b.0", NAME="video3", SYMLINK+="pvr_250", GROUP="video3" DRIVERS=="ivtv", SYSFS{name}=="ivtv? encoder MPEG", ID=="0000:02:0e.0", NAME="video4", SYMLINK+="pvr_250", GROUP="video4" then i did a ln -s ../local.rules z99_local.rules I rebooted the box. Then I went into mythtv-setup deleted all the capture cards but I could not add back any of the pvr-250 cards. I had no option and it failed. So i looked into the logs. Now I am getting two errors which I dont think are related. One is a mysql error the other is relevant to the udev changes. Here is output from logs Note the following: 2007-03-10 14:09:26.765 Channel(/dev/video3)::Open(): Can't open video device, er ror "Permission denied" 2007-03-10 14:09:26.772 mythbackend: Problem with capture cards: Card 4failed ini t Full logs starting here. 2007-03-10 14:07:45.560 DB Error (Error in JobQueue::GetJobs(), Unable to query l ist of Jobs in Queue.): Query was: SELECT j.id, j.chanid, j.starttime, j.inserttime, j.type, j.cmds, j.flags, j.stat us, j.statustime, j.hostname, j.args, j.comment, r.endtime FROM jobqueue j, recor ded r WHERE j.chanid = r.chanid AND j.starttime = r.starttime ORDER BY j.insertti me, j.chanid, j.id; Driver error was [2/2006]: QMYSQL3: Unable to execute query Database error was: MySQL server has gone away 2007-03-10 14:09:25.591 Using runtime prefix = /usr 2007-03-10 14:09:25.834 New DB connection, total: 1 2007-03-10 14:09:25.893 Connected to database 'mythconverg' at host: 192.168.11.5 0 2007-03-10 14:09:25.959 Current Schema Version: 1160 Starting up as the master server. 2007-03-10 14:09:26.062 New DB connection, total: 2 2007-03-10 14:09:26.091 Connected to database 'mythconverg' at host: 192.168.11.5 0 2007-03-10 14:09:26.095 mythbackend: MythBackend started as master server 2007-03-10 14:09:26.357 EITHelper: localtime offset -5:00:00 2007-03-10 14:09:26.469 New DB connection, total: 3 2007-03-10 14:09:26.505 Connected to database 'mythconverg' at host: 192.168.11.5 0 2007-03-10 14:09:26.589 EITHelper: localtime offset -5:00:00 2007-03-10 14:09:26.693 EITHelper: localtime offset -5:00:00 2007-03-10 14:09:26.749 EITHelper: localtime offset -5:00:00 2007-03-10 14:09:26.765 Channel(/dev/video3)::Open(): Can't open video device, er ror "Permission denied" 2007-03-10 14:09:26.772 mythbackend: Problem with capture cards: Card 4failed ini t 2007-03-10 14:09:42.399 mythbackend: Running housekeeping thread |
Author: | alexvd [ Sat Mar 10, 2007 8:20 pm ] |
Post subject: | |
Hi the exact error I am getting when I go into mythtv-setup and try to add capture cards for the happauge pvr x50 is "failed to open" I must have incorrectly wrote the udev role. What am I doing wrong. |
Author: | bruce_s01 [ Sun Mar 11, 2007 8:08 am ] |
Post subject: | |
From your 2 lines I can see you are trying to set the video inputs to nonexistant groups (The 'GROUP="video3"' bit). If you do an ls -l /dev/vid* I'll WAG that the group info will be incorrect, if you change your both of your lines to GROUP="video" hopefully you should see the group entries in the directory list, change on reboot. Bruce S. |
Author: | alexvd [ Sun Mar 11, 2007 9:28 am ] |
Post subject: | |
THANKS!!!!! That worked. I can now add the cards in the setup. Now I have a permissions issue with my serial ports aaarggghhhhh!!! |
Author: | alexvd [ Sun Mar 11, 2007 9:55 am ] |
Post subject: | |
Hi I spoke to soon. I guess the udev rules did not work. I am still having the same issue. Look at the logs 2007-03-11 11:52:26.952 Started recording: The Tim McCarver Show "Cal Ripken, Jr.": c hannel 2002 on cardid 1, sourceid 2 2007-03-11 11:52:26.967 scheduler: Started recording: The Tim McCarver Show "Cal Ripk en, Jr.": channel 2002 on cardid 1, sourceid 2 2007-03-11 11:52:27.138 MPEGRec(/dev/video4) Warning: MPEG Layer1 does not work prope rly with ivtv driver. Using MPEG layer 2 audio instead. 2007-03-11 11:52:27.141 MPEGRec(/dev/video4) Error: Could not set MPEG controls 2 thr ough 0. eno: Numerical result out of range (34) 2007-03-11 11:52:43.474 MainServer::HandleAnnounce Monitor 2007-03-11 11:52:43.477 adding: mythtvmasterbackend as a client (events: 0) 2007-03-11 11:52:56.592 MainServer::HandleAnnounce Monitor 2007-03-11 11:52:56.594 adding: mythtvmasterbackend as a client (events: 0) 2007-03-11 11:53:10.168 MainServer::HandleAnnounce Monitor 2007-03-11 11:53:10.171 adding: mythtvmasterbackend as a client (events: 0) 2007-03-11 11:53:16.850 MainServer::HandleAnnounce Monitor 2007-03-11 11:53:16.853 adding: mythtvmasterbackend as a client (events: 0) 2007-03-11 11:53:16.978 Preview Error: Previewer file '/myth/tv/2002_20070311115200.m pg' is not valid. 2007-03-11 11:53:16.981 MainServer: Failed to make preview image. 2007-03-11 11:53:16.984 MainServer::HandleAnnounce FileTransfer 2007-03-11 11:53:16.985 adding: mythtvmasterbackend as a remote file transfer 2007-03-11 11:53:23.487 RingBuf(/myth/tv/2002_20070311115200.mpg.png): Could not open /myth/tv/2002_20070311115200.mpg.png. 2007-03-11 11:53:36.253 MainServer::HandleAnnounce Monitor 2007-03-11 11:53:36.255 adding: mythtvmasterbackend as a client (events: 0) 2007-03-11 11:53:36.463 TVRec(1): Changing from RecordingOnly to None 2007-03-11 11:53:36.485 Finished recording The Tim McCarver Show "Cal Ripken, Jr.": c hannel 2002 2007-03-11 11:53:36.500 New DB connection, total: 4 2007-03-11 11:53:36.504 Reschedule requested for id 0. 2007-03-11 11:53:36.635 Scheduled 5 items in 0.1 = 0.09 match + 0.03 place 2007-03-11 11:53:36.645 New DB connection, total: 5 2007-03-11 11:53:36.651 Connected to database 'mythconverg' at host: 192.168.11.50 2007-03-11 11:53:36.655 scheduler: Finished recording: The Tim McCarver Show "Cal Rip ken, Jr.": channel 2002 |
Author: | alexvd [ Sun Mar 11, 2007 1:27 pm ] |
Post subject: | |
I can't figure out what I am doing wrong? Looking at ivtv logs shows that they are correctly setup for /dev/video3 and /dev/video4 / root@mythtvmasterbackend:~# dmesg |grep ivtv ivtv: ==================== START INIT IVTV ==================== ivtv: version 0.8.2 (tagged release) loading ivtv: Linux version: 2.6.18-chw-13 SMP preempt mod_unload 586 gcc-4.1 ivtv: In case of problems please include the debug info between ivtv: the START INIT IVTV and END INIT IVTV lines, along with ivtv: any module options, when mailing the ivtv-users mailinglist. ivtv0: Autodetected Hauppauge card (cx23416 based) ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes) tuner 4-0061: chip found @ 0xc2 (ivtv i2c driver #0) msp3400 4-0040: MSP4448G-A2 found @ 0x80 (ivtv i2c driver #0) saa7115 4-0021: saa7115 found @ 0x42 (ivtv i2c driver #0) ivtv0: Autodetected Hauppauge WinTV PVR-250 ivtv0: Encoder revision: 0x02050032 ivtv0: Registered device video3 for encoder MPEG ivtv0: Registered device video32 for encoder YUV ivtv0: Registered device vbi3 for encoder VBI ivtv0: Registered device video24 for encoder PCM audio ivtv0: Initialized Hauppauge WinTV PVR-250, card #0 ivtv: ====================== NEXT CARD ====================== ivtv1: Autodetected Hauppauge card (cx23416 based) ivtv1: loaded v4l-cx2341x-enc.fw firmware (262144 bytes) tuner 5-0061: chip found @ 0xc2 (ivtv i2c driver #1) msp3400 5-0040: MSP4448G-A2 found @ 0x80 (ivtv i2c driver #1) saa7115 5-0021: saa7115 found @ 0x42 (ivtv i2c driver #1) ivtv1: Autodetected Hauppauge WinTV PVR-250 ivtv1: Encoder revision: 0x02050032 ivtv1: Registered device video4 for encoder MPEG ivtv1: Registered device video33 for encoder YUV ivtv1: Registered device vbi4 for encoder VBI ivtv1: Registered device video25 for encoder PCM audio ivtv1: Initialized Hauppauge WinTV PVR-250, card #1 ivtv: ==================== END INIT IVTV ==================== Is it possible that the rule is somehow not executing. |
Author: | bruce_s01 [ Sun Mar 11, 2007 2:20 pm ] |
Post subject: | |
It might be worthwhile trying out decreasing the number for the symlink, so it would be triggered earlier in the udev initialisation sequence. So instead of z99 it'll be 99 on it's own or 70 or something else. I'm not guaranteeing this will work, as this is at limit of my knowledge. Bruce S. |
Author: | tjc [ Sun Mar 11, 2007 2:37 pm ] |
Post subject: | |
alexvd wrote: Looking at ivtv logs shows that they are correctly setup for /dev/video3 and /dev/video4 /
root@mythtvmasterbackend:~# dmesg |grep ivtv You're only looking at part of the information, for example the tveeprom info is completely absent there. What does the recommended command from the CheckingLogFiles page on the wiki show? Code: dmesg | sed -n '/= START INIT IVTV/,/= *END INIT IVTV/p'
http://www.knoppmythwiki.org/index.php? ... ngLogFiles |
Author: | alexvd [ Sun Mar 11, 2007 2:42 pm ] |
Post subject: | |
alexvd@mythtvmasterbackend:/etc$ dmesg | sed -n '/= START INIT IVTV/,/= *END INIT IVTV/p' ivtv: ==================== START INIT IVTV ==================== ivtv: version 0.8.2 (tagged release) loading ivtv: Linux version: 2.6.18-chw-13 SMP preempt mod_unload 586 gcc-4.1 ivtv: In case of problems please include the debug info between ivtv: the START INIT IVTV and END INIT IVTV lines, along with ivtv: any module options, when mailing the ivtv-users mailinglist. cx88[0]/0: found at 0000:02:08.0, rev: 5, irq: 11, latency: 64, mmio: 0xe9000000 cx88[0]/0: registered device video0 [v4l2] cx88[0]/0: registered device vbi0 cx88[0]/0: registered device radio0 PCI: Enabling device 0000:02:08.2 (0014 -> 0016) PCI: Found IRQ 11 for device 0000:02:08.2 PCI: Sharing IRQ 11 with 0000:01:00.0 PCI: Sharing IRQ 11 with 0000:02:08.0 cx88[0]/2: found at 0000:02:08.2, rev: 5, irq: 11, latency: 64, mmio: 0xe8000000 cx88[0]/2: cx2388x based dvb card DVB: registering new adapter (cx88[0]). DVB: registering frontend 0 (Oren OR51132 VSB/QAM Frontend)... CORE cx88[1]: subsystem: 7063:3000, board: pcHDTV HD3000 HDTV [card=22,autodetected] TV tuner 60 at 0x1fe, Radio tuner -1 at 0x1fe tveeprom 2-0050: Huh, no eeprom present (err=-121)? PCI: Enabling device 0000:02:09.2 (0014 -> 0016) PCI: Found IRQ 10 for device 0000:02:09.2 PCI: Sharing IRQ 10 with 0000:00:1f.3 PCI: Sharing IRQ 10 with 0000:02:09.0 cx88[1]/2: found at 0000:02:09.2, rev: 5, irq: 10, latency: 64, mmio: 0xe6000000 cx88[1]/2: cx2388x based dvb card DVB: registering new adapter (cx88[1]). DVB: registering frontend 1 (Oren OR51132 VSB/QAM Frontend)... ivtv0: Autodetected Hauppauge card (cx23416 based) PCI: Enabling device 0000:02:0b.0 (0014 -> 0016) PCI: Found IRQ 7 for device 0000:02:0b.0 ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes) tuner 3-0061: chip found @ 0xc2 (ivtv i2c driver #0) msp3400 3-0040: MSP4448G-A2 found @ 0x80 (ivtv i2c driver #0) msp3400 3-0040: MSP4448G-A2 supports radio, mode is autodetect and autoselect saa7115 3-0021: saa7115 found @ 0x42 (ivtv i2c driver #0) tveeprom 3-0050: Hauppauge model 32032, rev B310, serial# 6985383 tveeprom 3-0050: tuner model is Philips FI1236 MK2 (idx 10, type 2) tveeprom 3-0050: TV standards NTSC(M) (eeprom 0x08) tveeprom 3-0050: audio processor is MSP4448 (idx 27) tveeprom 3-0050: decoder processor is SAA7115 (idx 19) tveeprom 3-0050: has no radio, has IR remote ivtv0: Autodetected Hauppauge WinTV PVR-250 ivtv0: Encoder revision: 0x02050032 ivtv0: Registered device video1 for encoder MPEG ivtv0: Registered device video32 for encoder YUV ivtv0: Registered device vbi1 for encoder VBI ivtv0: Registered device video24 for encoder PCM audio tuner 3-0061: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles)) ivtv0: Initialized Hauppauge WinTV PVR-250, card #0 PCI: Enabling device 0000:02:09.0 (0014 -> 0016) PCI: Found IRQ 10 for device 0000:02:09.0 PCI: Sharing IRQ 10 with 0000:00:1f.3 PCI: Sharing IRQ 10 with 0000:02:09.2 cx88[1]/0: found at 0000:02:09.0, rev: 5, irq: 10, latency: 64, mmio: 0xe7000000 cx88[1]/0: registered device video2 [v4l2] cx88[1]/0: registered device vbi2 cx88[1]/0: registered device radio1 PCI: Enabling device 0000:02:0a.0 (0014 -> 0016) PCI: Found IRQ 12 for device 0000:02:0a.0 PCI: Sharing IRQ 12 with 0000:02:02.0 PCI: Sharing IRQ 12 with 0000:02:0a.2 PCI: Sharing IRQ 12 with 0000:02:0e.0 CORE cx88[2]: subsystem: 7063:3000, board: pcHDTV HD3000 HDTV [card=22,autodetected] TV tuner 60 at 0x1fe, Radio tuner -1 at 0x1fe tuner 4-0043: chip found @ 0x86 (cx88[2]) tda9887 4-0043: tda988[5/6/7] found @ 0x43 (tuner) tuner 4-0061: chip found @ 0xc2 (cx88[2]) tuner 4-0061: type set to 60 (Thomson DTT 761X (ATSC/NTSC)) cx88[2]/0: found at 0000:02:0a.0, rev: 5, irq: 12, latency: 64, mmio: 0xe5000000 cx88[2]/0: registered device video3 [v4l2] cx88[2]/0: registered device vbi3 cx88[2]/0: registered device radio2 PCI: Enabling device 0000:02:0a.2 (0014 -> 0016) PCI: Found IRQ 12 for device 0000:02:0a.2 PCI: Sharing IRQ 12 with 0000:02:02.0 PCI: Sharing IRQ 12 with 0000:02:0a.0 PCI: Sharing IRQ 12 with 0000:02:0e.0 cx88[2]/2: found at 0000:02:0a.2, rev: 5, irq: 12, latency: 64, mmio: 0xe4000000 cx88[2]/2: cx2388x based dvb card DVB: registering new adapter (cx88[2]). DVB: registering frontend 2 (Oren OR51132 VSB/QAM Frontend)... ivtv: ====================== NEXT CARD ====================== ivtv1: Autodetected Hauppauge card (cx23416 based) PCI: Enabling device 0000:02:0e.0 (0014 -> 0016) PCI: Found IRQ 12 for device 0000:02:0e.0 PCI: Sharing IRQ 12 with 0000:02:02.0 PCI: Sharing IRQ 12 with 0000:02:0a.0 PCI: Sharing IRQ 12 with 0000:02:0a.2 ivtv1: loaded v4l-cx2341x-enc.fw firmware (262144 bytes) tuner 5-0061: chip found @ 0xc2 (ivtv i2c driver #1) msp3400 5-0040: MSP4448G-A2 found @ 0x80 (ivtv i2c driver #1) msp3400 5-0040: MSP4448G-A2 supports radio, mode is autodetect and autoselect saa7115 5-0021: saa7115 found @ 0x42 (ivtv i2c driver #1) tveeprom 5-0050: Hauppauge model 32032, rev B310, serial# 6984990 tveeprom 5-0050: tuner model is Philips FI1236 MK2 (idx 10, type 2) tveeprom 5-0050: TV standards NTSC(M) (eeprom 0x08) tveeprom 5-0050: audio processor is MSP4448 (idx 27) tveeprom 5-0050: decoder processor is SAA7115 (idx 19) tveeprom 5-0050: has no radio, has IR remote ivtv1: Autodetected Hauppauge WinTV PVR-250 ivtv1: Encoder revision: 0x02050032 ivtv1: Registered device video4 for encoder MPEG ivtv1: Registered device video33 for encoder YUV ivtv1: Registered device vbi4 for encoder VBI ivtv1: Registered device video25 for encoder PCM audio tuner 5-0061: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles)) ivtv1: Initialized Hauppauge WinTV PVR-250, card #1 cx2388x blackbird driver version 0.0.6 loaded ivtv: ==================== END INIT IVTV ==================== |
Author: | alexvd [ Sun Mar 11, 2007 2:47 pm ] |
Post subject: | |
I have seen posts on the main mythtv mailing list to blacklist the analog tuners by putting entries in modprobe.conf . That should work for me as I dont use the analog tuners in the HDTV cards. I just use them for OTA. I have a question when I go into the mythtv-setup I select the pvr x50 cards. Should I see the symlinks? I only have option for /dev/video3 or /dev/video4 |
Author: | bruce_s01 [ Sun Mar 11, 2007 4:32 pm ] |
Post subject: | |
It looks like you are still clashing with the DVB card, If I may suggest changing your udev lines from videoN (where N is 3 or 4) to video0N, this should hopefully result in two different values and stop a clash. BTW for the serial port problem you need to add the mythtv user to the dialout group. Bruce S. |
Author: | alexvd [ Sun Mar 11, 2007 6:52 pm ] |
Post subject: | |
Ok making the change did work. I was able to go into mythtv-setup and now select the symlink /dev/video03 or /dev/video04. i rebooted and got the permission error. I changed the permission for /dev/ttyS0 and /dev/ttyS1 by logging in as regular user than su and then doing a chmod 777 /dev/ttyS0 etc. However this allowed me to record but I still have the same issue. This is really sapping my energy. Do I need to delete my sources too. I have been deleting my capture cards and redoing the input connections but not deleting the sources. Also I am getting some mysql error. Here are backend logs. 2007-03-11 20:46:28.707 TVRec(1): Changing from None to RecordingOnly 2007-03-11 20:46:28.732 TVRec(1): HW Tuner: 1->1 2007-03-11 20:46:29.939 ret_pid(2949) child(2949) status(0x0) 2007-03-11 20:46:29.942 External Tuning program exited with no error 2007-03-11 20:46:30.274 Started recording: Great Performances "South Pacific in Concert From Carnegie Hall": channel 2013 on cardid 1, sourceid 2 2007-03-11 20:46:30.297 scheduler: Started recording: Great Performances "South Pacific in Concert From Carnegie Hall": channel 2013 on cardid 1, sourceid 2 2007-03-11 20:46:30.305 MPEGRec(/dev/video04) Warning: MPEG Layer1 does not work properly with ivtv driver. Using MPEG layer 2 audio instead. 2007-03-11 20:46:30.307 MPEGRec(/dev/video04) Error: Could not set MPEG controls 2 through 0. eno: Numerical result out of range (34) 2007-03-11 20:46:30.961 MainServer::HandleAnnounce Monitor 2007-03-11 20:46:30.965 adding: mythtvmasterbackend as a client (events: 0) 2007-03-11 20:46:34.877 MainServer::HandleAnnounce Monitor 2007-03-11 20:46:34.881 adding: mythtvmasterbackend as a client (events: 0) 2007-03-11 20:46:35.062 Preview Error: Previewer file '/myth/tv/2013_20070311204 600.mpg' is not valid. 2007-03-11 20:46:35.065 MainServer: Failed to make preview image. 2007-03-11 20:46:35.067 MainServer::HandleAnnounce FileTransfer 2007-03-11 20:46:35.068 adding: mythtvmasterbackend as a remote file transfer 2007-03-11 20:46:41.569 RingBuf(/myth/tv/2013_20070311204600.mpg.png): Could not open /myth/tv/2013_20070311204600.mpg.png. |
Author: | alexvd [ Sun Mar 11, 2007 6:57 pm ] |
Post subject: | |
Bruce, You stated earlier. It might be worthwhile trying out decreasing the number for the symlink, so it would be triggered earlier in the udev initialisation sequence. So instead of z99 it'll be 99 on it's own or 70 or something else. I'm not guaranteeing this will work, as this is at limit of my knowledge How would I do this? |
Page 2 of 4 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |