public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [linux-dvb] How to force adaptor order when using 2 DVB cards?
@ 2008-02-07 16:46 Eduard Huguet
  2008-02-07 17:01 ` John Drescher
  2008-02-07 20:41 ` Simeon Walker
  0 siblings, 2 replies; 7+ messages in thread
From: Eduard Huguet @ 2008-02-07 16:46 UTC (permalink / raw)
  To: linux-dvb

Hi,
    I currently have a media center computer set up using Gentoo 64 bit 
and a Hauppauge Nova-T 500 card (dual DVB-T receiver). Now I'm trying to 
add a new card (DVB-S), and here my problems begin: not mentioning the 
experimental state of the driver (this is a different story that doesn't 
matter now), my problem is that the new card porks the order in which 
the device nodes were created in /dev. And even worse, the actual order 
ing schema is different between a cold boot and rebooting:

Cold boot:
  · DVB:0: DVB-S tuner from Avermedia A700
  · DVB:1,2: DVB-T tuners from Nova-T

Reboot:
  · DVB:0: 1st DVB-T tuner from Nova-T
  · DVB:1: DVB-S tuner from A700
  · DVB:2: 2nd DVB-T tuner from Nova-T

I guess that on a cold boot the Nova-T 500 takes longer to initialize 
(due to the firmware being loaded), so its adaptors gets both created 
later.

Is there any way to avoid this? My MythTV setup currently expects to 
find the 2 Nova-T 500 adaptors on DVB:0 and DVB:1, and In expected the 
new DVB-S adaptor to be created as DVB:2. However, it seems this is not 
the case.

Is there any way to force the numbering schema or the 2 adaptors? ¿Would 
maybe help i.e. setting RC_DEVICE_TARBALL="yes" in /etc/conf.d/rc 
(currently is set to "no") with only the Nova-T connected and then 
adding te other one? I wonder is this would force its adaptors to be 
created always at the same position.

Thanks for any help you could provide.

Eduard


_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] How to force adaptor order when using 2 DVB cards?
  2008-02-07 16:46 [linux-dvb] How to force adaptor order when using 2 DVB cards? Eduard Huguet
@ 2008-02-07 17:01 ` John Drescher
  2008-02-07 18:40   ` Matthias Schwarzott
  2008-02-07 20:07   ` thomas schorpp
  2008-02-07 20:41 ` Simeon Walker
  1 sibling, 2 replies; 7+ messages in thread
From: John Drescher @ 2008-02-07 17:01 UTC (permalink / raw)
  To: Eduard Huguet; +Cc: linux-dvb

On Feb 7, 2008 11:46 AM, Eduard Huguet <eduardhc@gmail.com> wrote:
> Hi,
>     I currently have a media center computer set up using Gentoo 64 bit
> and a Hauppauge Nova-T 500 card (dual DVB-T receiver). Now I'm trying to
> add a new card (DVB-S), and here my problems begin: not mentioning the
> experimental state of the driver (this is a different story that doesn't
> matter now), my problem is that the new card porks the order in which
> the device nodes were created in /dev. And even worse, the actual order
> ing schema is different between a cold boot and rebooting:
>
> Cold boot:
>   · DVB:0: DVB-S tuner from Avermedia A700
>   · DVB:1,2: DVB-T tuners from Nova-T
>
> Reboot:
>   · DVB:0: 1st DVB-T tuner from Nova-T
>   · DVB:1: DVB-S tuner from A700
>   · DVB:2: 2nd DVB-T tuner from Nova-T
>
> I guess that on a cold boot the Nova-T 500 takes longer to initialize
> (due to the firmware being loaded), so its adaptors gets both created
> later.
>
> Is there any way to avoid this? My MythTV setup currently expects to
> find the 2 Nova-T 500 adaptors on DVB:0 and DVB:1, and In expected the
> new DVB-S adaptor to be created as DVB:2. However, it seems this is not
> the case.
>
> Is there any way to force the numbering schema or the 2 adaptors?

Create a udev rule.

http://reactivated.net/writing_udev_rules.html

John

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] How to force adaptor order when using 2 DVB cards?
  2008-02-07 17:01 ` John Drescher
@ 2008-02-07 18:40   ` Matthias Schwarzott
  2008-02-07 20:14     ` Eduard Huguet
  2008-02-07 20:07   ` thomas schorpp
  1 sibling, 1 reply; 7+ messages in thread
From: Matthias Schwarzott @ 2008-02-07 18:40 UTC (permalink / raw)
  To: linux-dvb; +Cc: Eduard Huguet

On Donnerstag, 7. Februar 2008, John Drescher wrote:
> On Feb 7, 2008 11:46 AM, Eduard Huguet <eduardhc@gmail.com> wrote:
> > Hi,
> >     I currently have a media center computer set up using Gentoo 64 bit
> > and a Hauppauge Nova-T 500 card (dual DVB-T receiver). Now I'm trying to
> > add a new card (DVB-S), and here my problems begin: not mentioning the
> > experimental state of the driver (this is a different story that doesn't
> > matter now), my problem is that the new card porks the order in which
> > the device nodes were created in /dev. And even worse, the actual order
> > ing schema is different between a cold boot and rebooting:
> >
> > Cold boot:
> >   · DVB:0: DVB-S tuner from Avermedia A700
> >   · DVB:1,2: DVB-T tuners from Nova-T
> >
> > Reboot:
> >   · DVB:0: 1st DVB-T tuner from Nova-T
> >   · DVB:1: DVB-S tuner from A700
> >   · DVB:2: 2nd DVB-T tuner from Nova-T
> >
> > I guess that on a cold boot the Nova-T 500 takes longer to initialize
> > (due to the firmware being loaded), so its adaptors gets both created
> > later.
> >
> > Is there any way to avoid this? My MythTV setup currently expects to
> > find the 2 Nova-T 500 adaptors on DVB:0 and DVB:1, and In expected the
> > new DVB-S adaptor to be created as DVB:2. However, it seems this is not
> > the case.
> >
> > Is there any way to force the numbering schema or the 2 adaptors?
>
> Create a udev rule.
>
> http://reactivated.net/writing_udev_rules.html
>
More people have tried this for dvb and failed as it seems. That would require 
something like persistent-net.

I suggest you first try blacklisting the modules like described here:
http://www.gentoo.org/doc/en/udev-guide.xml

Matthias

-- 
Matthias Schwarzott (zzam)

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] How to force adaptor order when using 2 DVB cards?
  2008-02-07 17:01 ` John Drescher
  2008-02-07 18:40   ` Matthias Schwarzott
@ 2008-02-07 20:07   ` thomas schorpp
  1 sibling, 0 replies; 7+ messages in thread
From: thomas schorpp @ 2008-02-07 20:07 UTC (permalink / raw)
  To: linux-dvb

John Drescher wrote:
> On Feb 7, 2008 11:46 AM, Eduard Huguet <eduardhc@gmail.com> wrote:
>> Hi,
>>     I currently have a media center computer set up using Gentoo 64 bit
>> and a Hauppauge Nova-T 500 card (dual DVB-T receiver). Now I'm trying to
>> add a new card (DVB-S), and here my problems begin: not mentioning the
>> experimental state of the driver (this is a different story that doesn't
>> matter now), my problem is that the new card porks the order in which
>> the device nodes were created in /dev. And even worse, the actual order
>> ing schema is different between a cold boot and rebooting:
>>
>> Cold boot:
>>   · DVB:0: DVB-S tuner from Avermedia A700
>>   · DVB:1,2: DVB-T tuners from Nova-T
>>
>> Reboot:
>>   · DVB:0: 1st DVB-T tuner from Nova-T
>>   · DVB:1: DVB-S tuner from A700
>>   · DVB:2: 2nd DVB-T tuner from Nova-T
>>
>> I guess that on a cold boot the Nova-T 500 takes longer to initialize
>> (due to the firmware being loaded), so its adaptors gets both created
>> later.
>>
>> Is there any way to avoid this? My MythTV setup currently expects to
>> find the 2 Nova-T 500 adaptors on DVB:0 and DVB:1, and In expected the
>> new DVB-S adaptor to be created as DVB:2. However, it seems this is not
>> the case.
>>
>> Is there any way to force the numbering schema or the 2 adaptors?
> 
> Create a udev rule.
> 
> http://reactivated.net/writing_udev_rules.html
> 
> John
> 

no, this would be too lowlevel.
man modprobe.conf -> install.
y
tom


_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] How to force adaptor order when using 2 DVB cards?
  2008-02-07 18:40   ` Matthias Schwarzott
@ 2008-02-07 20:14     ` Eduard Huguet
  0 siblings, 0 replies; 7+ messages in thread
From: Eduard Huguet @ 2008-02-07 20:14 UTC (permalink / raw)
  To: Matthias Schwarzott; +Cc: linux-dvb


[-- Attachment #1.1: Type: text/plain, Size: 2009 bytes --]

Hi,
    Thank you. This is what I finally did (blacklisting and manually 
loading), as the udev rules have a really "ugly" syntax ;). I found the 
tip in Gentoo wiki and it's working fine now.

Thank you all anyway.
  Eduard




En/na Matthias Schwarzott ha escrit:
> On Donnerstag, 7. Februar 2008, John Drescher wrote:
>   
>> On Feb 7, 2008 11:46 AM, Eduard Huguet <eduardhc@gmail.com> wrote:
>>     
>>> Hi,
>>>     I currently have a media center computer set up using Gentoo 64 bit
>>> and a Hauppauge Nova-T 500 card (dual DVB-T receiver). Now I'm trying to
>>> add a new card (DVB-S), and here my problems begin: not mentioning the
>>> experimental state of the driver (this is a different story that doesn't
>>> matter now), my problem is that the new card porks the order in which
>>> the device nodes were created in /dev. And even worse, the actual order
>>> ing schema is different between a cold boot and rebooting:
>>>
>>> Cold boot:
>>>   · DVB:0: DVB-S tuner from Avermedia A700
>>>   · DVB:1,2: DVB-T tuners from Nova-T
>>>
>>> Reboot:
>>>   · DVB:0: 1st DVB-T tuner from Nova-T
>>>   · DVB:1: DVB-S tuner from A700
>>>   · DVB:2: 2nd DVB-T tuner from Nova-T
>>>
>>> I guess that on a cold boot the Nova-T 500 takes longer to initialize
>>> (due to the firmware being loaded), so its adaptors gets both created
>>> later.
>>>
>>> Is there any way to avoid this? My MythTV setup currently expects to
>>> find the 2 Nova-T 500 adaptors on DVB:0 and DVB:1, and In expected the
>>> new DVB-S adaptor to be created as DVB:2. However, it seems this is not
>>> the case.
>>>
>>> Is there any way to force the numbering schema or the 2 adaptors?
>>>       
>> Create a udev rule.
>>
>> http://reactivated.net/writing_udev_rules.html
>>
>>     
> More people have tried this for dvb and failed as it seems. That would require 
> something like persistent-net.
>
> I suggest you first try blacklisting the modules like described here:
> http://www.gentoo.org/doc/en/udev-guide.xml
>
> Matthias
>
>   

[-- Attachment #1.2: Type: text/html, Size: 2716 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] How to force adaptor order when using 2 DVB cards?
  2008-02-07 16:46 [linux-dvb] How to force adaptor order when using 2 DVB cards? Eduard Huguet
  2008-02-07 17:01 ` John Drescher
@ 2008-02-07 20:41 ` Simeon Walker
  1 sibling, 0 replies; 7+ messages in thread
From: Simeon Walker @ 2008-02-07 20:41 UTC (permalink / raw)
  To: linux-dvb

Yep, it's horrible. This is what I did, the adapters 0,1,2 are still
there but MythTV is configured to used 4,5 and 6.

# My own DVB hell

# Twinhan DVB-S Card
#
KERNEL=="dvb[0-9].frontend0", ATTR{dev}=="212:3",
symlink+="dvb/adapter4/frontend0", GROUP="video"
KERNEL=="dvb[0-9].demux0", ATTR{dev}=="212:4",
symlink+="dvb/adapter4/demux0", GROUP="video"
KERNEL=="dvb[0-9].net0", ATTR{dev}=="212:7",
symlink+="dvb/adapter4/net0", GROUP="video"
KERNEL=="dvb[0-9].dvr0", ATTR{dev}=="212:5",
symlink+="dvb/adapter4/dvr0", GROUP="video"
#
# Nova-T Stick 1
#
KERNEL=="dvb[0-9].frontend0", ATTRS{serial}=="4030489593",
symlink+="dvb/adapter5/frontend0", GROUP="video"
 KERNEL=="dvb[0-9].demux0", ATTRS{serial}=="4030489593",
symlink+="dvb/adapter5/demux0", GROUP="video"
KERNEL=="dvb[0-9].net0", ATTRS{serial}=="4030489593",
symlink+="dvb/adapter5/net0", GROUP="video"
KERNEL=="dvb[0-9].dvr0", ATTRS{serial}=="4030489593",
symlink+="dvb/adapter5/dvr0", GROUP="video"
#
# Nova-T Stick 2
#
KERNEL=="dvb[0-9].frontend0", ATTRS{serial}=="4027844315",
symlink+="dvb/adapter6/frontend0", GROUP="video"
KERNEL=="dvb[0-9].demux0", ATTRS{serial}=="4027844315",
symlink+="dvb/adapter6/demux0", GROUP="video"
KERNEL=="dvb[0-9].net0", ATTRS{serial}=="4027844315",
symlink+="dvb/adapter6/net0", GROUP="video"
KERNEL=="dvb[0-9].dvr0", ATTRS{serial}=="4027844315",
symlink+="dvb/adapter6/dvr0", GROUP="video"

I'm not sure if gmail has split the lines above but each actual line
should start with KERNEL.

Sim

On 07/02/2008, Eduard Huguet <eduardhc@gmail.com> wrote:
 > Hi,
>     I currently have a media center computer set up using Gentoo 64 bit
> and a Hauppauge Nova-T 500 card (dual DVB-T receiver). Now I'm trying to
> add a new card (DVB-S), and here my problems begin: not mentioning the
 > experimental state of the driver (this is a different story that doesn't
> matter now), my problem is that the new card porks the order in which
> the device nodes were created in /dev. And even worse, the actual order
 > ing schema is different between a cold boot and rebooting:
>
> Cold boot:
>   · DVB:0: DVB-S tuner from Avermedia A700
>   · DVB:1,2: DVB-T tuners from Nova-T
>
> Reboot:
>   · DVB:0: 1st DVB-T tuner from Nova-T
 >   · DVB:1: DVB-S tuner from A700
>   · DVB:2: 2nd DVB-T tuner from Nova-T
>
> I guess that on a cold boot the Nova-T 500 takes longer to initialize
> (due to the firmware being loaded), so its adaptors gets both created
 > later.
>
> Is there any way to avoid this? My MythTV setup currently expects to
> find the 2 Nova-T 500 adaptors on DVB:0 and DVB:1, and In expected the
> new DVB-S adaptor to be created as DVB:2. However, it seems this is not
 > the case.
>
> Is there any way to force the numbering schema or the 2 adaptors? ¿Would
> maybe help i.e. setting RC_DEVICE_TARBALL="yes" in /etc/conf.d/rc
> (currently is set to "no") with only the Nova-T connected and then
 > adding te other one? I wonder is this would force its adaptors to be
> created always at the same position.
>
> Thanks for any help you could provide.
>
> Eduard
>
>
> _______________________________________________
 > linux-dvb mailing list
> linux-dvb@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
 >
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] How to force adaptor order when using 2 DVB cards?
@ 2008-02-12 16:54 Tim Hewett
  0 siblings, 0 replies; 7+ messages in thread
From: Tim Hewett @ 2008-02-12 16:54 UTC (permalink / raw)
  To: linux-dvb; +Cc: Tim Hewett


[-- Attachment #1.1: Type: text/plain, Size: 3213 bytes --]

I have adapted dvbstream to allow an adaptor's string ident (e.g. "ST  
STV0299 DVB-S" for a Technisat SkyStar 2 DVB-S PCI card, i.e. the  
string which appears in dmesg when the DVB frontend is added) to be  
passed as the argument to '-c' instead of just the adaptor number. e.g.:

dvbstream -n 4400 -o -f 10847 -p v -s 22000 -c "ST STV0299 DVB-S" -D 1  
0 258 2327 2328 2329

I have three SkyStar 2 cards, a Wideview USB, AF9005 USB and AF9015  
USB all in one PC, so they often are assigned to different card  
numbers on boot up. Using the ident string allows the device's actual  
adaptor number to be searched for each time.

The change also allows individual cards to be addressed if you have  
more than one of the same type, by adding the number to the end of the  
string delimited by ':', e.g. "ST STV0299 DVB-S:1" means the second  
SkyStar card, even if it is at card number 4 with the first being at  
card number 1 (with other devices in between). I need this because  
each card has a different LNB configuration, e.g. one has a diseqc  
switch. Fortunately the ordering of the PCI cards stays the same  
relative to each other, even if they aren't always assigned the same  
adaptor number.

The code is a total hack but if it helps then I can publish it,  
perhaps it could even migrate into MythTV etc.

There are various other hacks I've added to dvbstream, e.g. to avoid  
the consequences of constantly changing PID assignments (as happens  
sometimes for the BBC and ITV in the UK) you can specify a channel  
name, e.g. "BBC 2 England" and have dvbstream discover the PIDs in the  
same way as 'scan -c'.

HTH,

Tim.

> Yep, it's horrible. This is what I did, the adapters 0,1,2 are still
> there but MythTV is configured to used 4,5 and 6.
>
> # My own DVB hell
>
> # Twinhan DVB-S Card
> #
> KERNEL=="dvb[0-9].frontend0", ATTR{dev}=="212:3",
> symlink+="dvb/adapter4/frontend0", GROUP="video"
> KERNEL=="dvb[0-9].demux0", ATTR{dev}=="212:4",
> symlink+="dvb/adapter4/demux0", GROUP="video"
> KERNEL=="dvb[0-9].net0", ATTR{dev}=="212:7",
> symlink+="dvb/adapter4/net0", GROUP="video"
> KERNEL=="dvb[0-9].dvr0", ATTR{dev}=="212:5",
> symlink+="dvb/adapter4/dvr0", GROUP="video"
> #
> # Nova-T Stick 1
> #
> KERNEL=="dvb[0-9].frontend0", ATTRS{serial}=="4030489593",
> symlink+="dvb/adapter5/frontend0", GROUP="video"
>  KERNEL=="dvb[0-9].demux0", ATTRS{serial}=="4030489593",
> symlink+="dvb/adapter5/demux0", GROUP="video"
> KERNEL=="dvb[0-9].net0", ATTRS{serial}=="4030489593",
> symlink+="dvb/adapter5/net0", GROUP="video"
> KERNEL=="dvb[0-9].dvr0", ATTRS{serial}=="4030489593",
> symlink+="dvb/adapter5/dvr0", GROUP="video"
> #
> # Nova-T Stick 2
> #
> KERNEL=="dvb[0-9].frontend0", ATTRS{serial}=="4027844315",
> symlink+="dvb/adapter6/frontend0", GROUP="video"
> KERNEL=="dvb[0-9].demux0", ATTRS{serial}=="4027844315",
> symlink+="dvb/adapter6/demux0", GROUP="video"
> KERNEL=="dvb[0-9].net0", ATTRS{serial}=="4027844315",
> symlink+="dvb/adapter6/net0", GROUP="video"
> KERNEL=="dvb[0-9].dvr0", ATTRS{serial}=="4027844315",
> symlink+="dvb/adapter6/dvr0", GROUP="video"
>
> I'm not sure if gmail has split the lines above but each actual line
> should start with KERNEL.
>
> Sim
>

[-- Attachment #1.2: Type: text/html, Size: 4054 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-02-12 16:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-07 16:46 [linux-dvb] How to force adaptor order when using 2 DVB cards? Eduard Huguet
2008-02-07 17:01 ` John Drescher
2008-02-07 18:40   ` Matthias Schwarzott
2008-02-07 20:14     ` Eduard Huguet
2008-02-07 20:07   ` thomas schorpp
2008-02-07 20:41 ` Simeon Walker
  -- strict thread matches above, loose matches on Subject: below --
2008-02-12 16:54 Tim Hewett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox