Klaus Schmidinger wrote:
> On 21.03.2009 14:17, Artur Skawina wrote:
>> Patrick Rother wrote:
>>> For a reason not to go in details too much here, I would like to make
>>> vdr recognise sparse DVB adapter numbers.

>>> drwxr-xr-x 2 root root 200 Mar 19 11:59 adapter0/
>>> drwxr-xr-x 2 root root 120 Mar 19 11:59 adapter1/
>>> drwxr-xr-x 2 root root 120 Mar 19 11:59 adapter5/
>>> drwxr-xr-x 2 root root 120 Mar 19 11:59 adapter6/
>>> drwxr-xr-x 2 root root 120 Mar 19 11:59 adapter7/

>>> But vdr uses only the first two devices.
>>> Is there any easy possibility to patch the code accordingly?
>> ./vdr -D 0 -D 1 -D 5 -D 6 -D 7
> I'm afraid this won't work, because VDR stops scaning for DVB devices
> as soon as it hits a gap.

Good i didn't know that years ago when setting up my vdr boxes... :)
IOW this approach has been working for me for quite a while w/o any
problems. Note i'm still at 1.4.x and my 'gaps' actually contain
adapters (unused by this vdr instance).
If the gaps really are a problem you could always renumber the adapters
using udev rules such as

SUBSYSTEM=="dvb", SUBSYSTEMS=="pci", KERNELS=="0000:00:0e.0", PROGRAM="/bin/sh 
-c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s 0           $${K#*.}'", 
SUBSYSTEM=="dvb", SUBSYSTEMS=="pci", KERNELS=="0000:02:09.0", PROGRAM="/bin/sh 
-c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s 1           $${K#*.}'", 



vdr mailing list

Reply via email to