Feature #145
openAdd possibility to turn plugin on/off with svdrp
Added by Anonymous over 15 years ago. Updated over 15 years ago.
100%
Description
This feature allows releasing the dxr3 device for another program.
It's already implemented in patch found in this thread http://forum.mymediasystem.org/viewtopic.php?f=2&t=526
This is really useful with htpc menu application like MMS where you need to give access to dxr3 to other software than vdr also, but have vdr running in background for recording.
Updated by SPAM over 15 years ago
- Assignee set to austriancoder
This is already implemented in dxr3 plugin version 0.2.9.
However, Christian removed it in git:
http://projects.vdr-developer.org/repositories/revision/plg-dxr3/ecc3dd09be579348e8a17e968415fecaaed47d84
From the commit message:
"If somebody who needs them give me an example usage for these commands, I will bring them back."
So, Christian, here you go ;)
Updated by austriancoder over 15 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Fixed in commit 8b908afb77842c60ca02c3fe3dfda3c3845fb4a9 - see http://projects.vdr-developer.org/git/?p=vdr-plugin-dxr3.git;a=commitdiff;h=8b908afb77842c60ca02c3fe3dfda3c3845fb4a9
Waiting for responses :)
Updated by Seben over 15 years ago
I downloaded the 0.2.9 version, I assumed the code is the same there as the one you put back to version control.
It works ok most of the time, like the patch from mms forum that I used before. It's just occasionally I get crashes with both this and the patch. And it's pretty annoying when watching dvd. Im not sure the problem is in vdr / dxr3 plugin but it looks like dxr3 plugin would try to access em8300 even though the plugin is turned off (could this be possible?). I will attach some log I if you could get any ideas:
---- LOG START ----
Jul 13 15:04:57 KONE2 vdr: [7943] buffer usage: 0% (tid=7942)
Jul 13 15:05:01 KONE2 /USR/SBIN/CRON8384: (root) CMD (/etc/mms/mmsvdrtest)
Jul 13 15:05:02 KONE2 vdr: [7943] buffer usage: 70% (tid=7942)
Jul 13 15:05:02 KONE2 vdr: [7943] buffer usage: 80% (tid=7942)
Jul 13 15:05:03 KONE2 vdr: [7943] buffer usage: 90% (tid=7942)
Jul 13 15:05:03 KONE2 vdr: [7942] clearing transfer buffer to avoid overflows
Jul 13 15:05:03 KONE2 vdr: [7943] buffer usage: 0% (tid=7942)
Jul 13 15:05:07 KONE2 vdr: [7943] buffer usage: 70% (tid=7942)
Jul 13 15:05:08 KONE2 vdr: [7943] buffer usage: 80% (tid=7942)
Jul 13 15:05:08 KONE2 vdr: [7943] buffer usage: 90% (tid=7942)
Jul 13 15:05:08 KONE2 vdr: [7942] clearing transfer buffer to avoid overflows
Jul 13 15:05:08 KONE2 vdr: [7943] buffer usage: 0% (tid=7942)
Jul 13 15:05:10 KONE2 vdr: [7918] channel 1 (YLE TV1) event Ma 13.07.2009 15:05-15:51 'Is? Dowlingin mysteerit' status 4
Jul 13 15:05:14 KONE2 vdr: [7943] buffer usage: 70% (tid=7942)
Jul 13 15:05:14 KONE2 vdr: [7943] buffer usage: 80% (tid=7942)
Jul 13 15:05:15 KONE2 vdr: [7943] buffer usage: 90% (tid=7942)
Jul 13 15:05:15 KONE2 vdr: [7942] clearing transfer buffer to avoid overflows
Jul 13 15:05:15 KONE2 vdr: [7943] buffer usage: 0% (tid=7942)
Jul 13 15:05:15 KONE2 vdr: [7918] changing pids of channel 1 from 512+512:650=fin:1027=fin:2321 to 512+512:650=eng,651=dut:1027=fin:2321
Jul 13 15:05:16 KONE2 vdr: [7913] retuning due to modification of channel 1
Jul 13 15:05:16 KONE2 vdr: [7913] switching to channel 1
Jul 13 15:05:16 KONE2 vdr: [7942] transfer thread ended (pid=7913, tid=7942)
Jul 13 15:05:22 KONE2 vdr: [7913] dxr3: unable to open /dev/em8300_mv-0: Laite tai resurssi varattu
Jul 13 15:05:22 KONE2 vdr: [7913] dxr3: unable to open /dev/em8300_ma-0: Laite tai resurssi varattu
Jul 13 15:05:22 KONE2 vdr: [7913] dxr3: unable to open /dev/em8300_sp-0: Laite tai resurssi varattu
Jul 13 15:05:22 KONE2 vdr: [7913] dxr3: resuscitation: device failure or user initiated reset
Jul 13 15:05:22 KONE2 kernel: [ 2562.654989] em8300-0: Fifo still full, trying stop
Jul 13 15:05:22 KONE2 vdr: [7944] buffer usage: 90% (tid=7943)
Jul 13 15:05:22 KONE2 vdr: [7944] buffer usage: 10% (tid=7943)
Jul 13 15:05:22 KONE2 vdr: [7931] CAM 2: module reset
Jul 13 15:05:22 KONE2 vdr: [7932] CAM 3: module reset
Jul 13 15:05:22 KONE2 vdr: [7930] CAM 1: module reset
Jul 13 15:05:22 KONE2 vdr: [7931] CAM 2: module ready
Jul 13 15:05:22 KONE2 vdr: [7932] CAM 3: module ready
Jul 13 15:05:22 KONE2 vdr: [7930] CAM 1: module ready
Jul 13 15:05:24 KONE2 vdr: [7931] CAM 2: replies to QUERY - multi channel decryption possible
Jul 13 15:05:24 KONE2 vdr: [7932] CAM 3: replies to QUERY - multi channel decryption possible
Jul 13 15:05:24 KONE2 vdr: [7930] CAM 1: replies to QUERY - multi channel decryption possible
Jul 13 15:05:25 KONE2 kernel: [ 2568.726016] em8300-0: Microcode version 0x29 loaded
Jul 13 15:05:25 KONE2 vdr: [7913] dxr3: unable to open /dev/em8300_mv-0: Laite tai resurssi varattu
Jul 13 15:05:25 KONE2 vdr: [7913] dxr3: unable to open /dev/em8300_ma-0: Laite tai resurssi varattu
Jul 13 15:05:25 KONE2 vdr: [7913] dxr3: unable to open /dev/em8300_sp-0: Laite tai resurssi varattu
Jul 13 15:05:25 KONE2 vdr: [7913] dxr3: fatal: unable to open some em8300 devices
Jul 13 15:05:25 KONE2 vdr: [7913] buffer stats: 0 (0%) used
Jul 13 15:06:01 KONE2 /USR/SBIN/CRON8392: (root) CMD (/etc/mms/mmsvdrtest)
Jul 13 15:06:05 KONE2 vdr: [8429] cTimeMs: using monotonic clock (resolution is 1 ns)
Jul 13 15:06:05 KONE2 vdr: [8431] VDR version 1.6.0 started
Jul 13 15:06:05 KONE2 vdr: [8431] running as daemon (tid=8431)
Jul 13 15:06:05 KONE2 vdr: [8431] codeset is 'ISO-8859-1' - known
Jul 13 15:06:05 KONE2 vdr: [8431] found 23 locales in /usr/src/vdr-1.6.0/locale
---- LOG END ----
1. 15:05:01 mmsvdrtest runs (checks both mms and vdr are running) and seems both are.
2. 15:05:10, 15:05:15 and 15:05:16 something happens in vdr
3. 15:05:22 dxr3 plugin tries to access the em8300 device.
4. 15:06:01 mmsvdrtest fails and vdr re-starts.
Updated by austriancoder over 15 years ago
Seben wrote:
I downloaded the 0.2.9 version, I assumed the code is the same there as the one you put back to version control.
No its a rewrite... so check out current git and give us again feedback.
Updated by Seben over 15 years ago
Ok, I tried running the snapshot but now it crashes immediately after the svdrp command switching the plugin off:
Jul 14 07:20:31 KONE2 vdr: [14121] connect from 127.0.0.1, port 60367 - accepted
Jul 14 07:20:34 KONE2 vdr: [14133] dxr3: resuscitation: device failure or user initiated reset
Jul 14 07:20:36 KONE2 vdr: [14150] buffer usage: 80% (tid=14149)
Jul 14 07:20:36 KONE2 vdr: [14150] buffer usage: 30% (tid=14149)
Jul 14 07:20:36 KONE2 vdr: [14138] CAM 3: module reset
Jul 14 07:20:36 KONE2 vdr: [14136] CAM 1: module reset
Jul 14 07:20:36 KONE2 vdr: [14137] CAM 2: module reset
Jul 14 07:20:38 KONE2 vdr: [14149] buffer usage: 70% (tid=14148)
Jul 14 07:20:38 KONE2 vdr: [14149] buffer usage: 80% (tid=14148)
Jul 14 07:20:38 KONE2 vdr: [14149] buffer usage: 90% (tid=14148)
Jul 14 07:20:38 KONE2 vdr: [14149] buffer usage: 100% (tid=14148)
Jul 14 07:20:38 KONE2 vdr: [14149] ERROR: 1 ring buffer overflow (177 bytes dropped)
Jul 14 07:20:38 KONE2 vdr: [14138] CAM 3: module ready
Jul 14 07:20:38 KONE2 vdr: [14136] CAM 1: module ready
Jul 14 07:20:38 KONE2 vdr: [14137] CAM 2: module ready
Jul 14 07:20:38 KONE2 vdr: [14148] clearing transfer buffer to avoid overflows
Jul 14 07:20:38 KONE2 vdr: [14121] caught signal 13