Re: [vdr] SVDR Error 451 and order of dvb detection

2009-01-23 Thread Klaus Schmidinger
On 22.01.2009 09:10, ECLiPSE wrote:
> Hi everyone,
> 
> I've noticed a strange problem on my vdr setup. The SVDRP command GRAB
> doesn't work at normal boot.
> So i don't have preview with vdradmin or the live-plugin.
> 
> In fact, the problem come from the order of the dvb detection. I have a
> FF card 2.1 and a Budget nova-t.
> During the boot, the nova-t is detected first and then the FF card. I
> have already tried to change/invert the
> PCI cards, but the nova-t is still detected first. I don't know why.
> 
> So if I want to have preview with vdradmin or vdr-plugins-live, i must
> close VDR, unload the drivers (nova-t and nexus 2.1) and reload the FF
> card first then the nova-t and finally restart VDR.
> 
> So my question is: Is there a way to correct that and force the FF-card
> to be detected/loaded first at boot?
> I have tried udev rules to force dvb-ttpci to be adapter0 and nova-t
> adapter1, but it doesn't change anything. No preview with vdradmin

Actually VDR tries to determine the offset of the video devices
in cDvbDevice::cDvbDevice(), but apparently there is no more
/proc/video/dev :-(

See "// The offset of the /dev/video devices:" in dvbdevice.c.
Maybe somebody knows how this can bee done with today's kernels...

Klaus

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] SVDR Error 451 and order of dvb detection

2009-01-22 Thread HighlyCaffeinated
Pierre-
In Debian, first blacklist the DVB modules in the /etc/modprobe.d/blacklist 
file:

# DVB Modules
blacklist dvb-ttpci
blacklist bttv
blacklist bt878
blacklist dvb-usb-gp8psk
# end DVB Modules

Then look in /etc/udev/rules.d. The files there control module loading. I 
created a new file 010_DVB.rules and inserted the following information there 
(derived from udevinfo) :

KERNEL=="dvb*", ATTRS{vendor}=="0x1131", SYMLINK+="dvb-nexus", PROGRAM="/bin/sh
-c 'K=%k; K=$${K#dvb}; printf dvb/adapter0/%%s $${K#*.}'", ACTION=="add", 
NAME="%c"

KERNEL=="dvb*", ATTRS{serial}=="00221", SYMLINK+="dvb-gpix0 PROGRAM="/bin/sh -c
'K=%k; K=$${K#dvb}; printf dvb/adapter1/%%s $${K#*.}'", ACTION=="add", NAME="%c"


KERNEL=="dvb*", ATTRS{serial}=="00529", SYMLINK+="dvb-gpix1 PROGRAM="/bin/sh -c
'K=%k; K=$${K#dvb}; printf dvb/adapter2/%%s $${K#*.}'", ACTION=="add", NAME="%c"

As you can see, I have one Nexus FF card and two genpix USB adapters. My UDEV 
lines identify each device specifically, assign the dvb device node in /dev, 
and create a symlink with a identifiable device name (I use this in other init 
scripts to verify the device is present). Then I load the modules with an init 
script in /etc/init.d. The script loads my LCD driver, runs setpci to set 
latency for my nexus card, then loads the Nexus and two Genpix modules. The 
init script also makes it simple to unload all of the drivers without a reboot 
using "/etc/init.d/DVBsetup unload".

So there you go. A combination of blacklisting the modules, a UDEV script, and 
a startup script and you have full control of your /dev nodes and the boot-time 
load order of the modules.

Hope that helped!
-Todd



  ___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] SVDR Error 451 and order of dvb detection

2009-01-22 Thread ECLiPSE
Hi everyone,

I've noticed a strange problem on my vdr setup. The SVDRP command GRAB
doesn't work at normal boot.
So i don't have preview with vdradmin or the live-plugin.

In fact, the problem come from the order of the dvb detection. I have a FF
card 2.1 and a Budget nova-t.
During the boot, the nova-t is detected first and then the FF card. I have
already tried to change/invert the
PCI cards, but the nova-t is still detected first. I don't know why.

So if I want to have preview with vdradmin or vdr-plugins-live, i must close
VDR, unload the drivers (nova-t and nexus 2.1) and reload the FF card first
then the nova-t and finally restart VDR.

So my question is: Is there a way to correct that and force the FF-card to
be detected/loaded first at boot?
I have tried udev rules to force dvb-ttpci to be adapter0 and nova-t
adapter1, but it doesn't change anything. No preview with vdradmin

i've tried with vdr vanilla 1.7.2

help me thanks
Pierre
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr