Moderator Control Panel ]

Any way to control the adapter order under Linux? (SOLVED)

Any way to control the adapter order under Linux? (SOLVED)

Postby cband » Tue Jun 23, 2015 5:03 am

This is another thing I had tried to ask in the post that got eaten by the board because it logs you out so quickly. I have a system that contains a TBS6985, a TBS6991SE, and a newly-added TBS6905 to give me ten tuner total. Prior to adding the 6905, the tuners appeared in a logical order, in other words the four tuners on the TBS6985 were on /dev/dvb/adapter0 through /dev/dvb/adapter3, while the TBS6991SE tuners were on /dev/dvb/adapter4 and /dev/dvb/adapter5. But since I added the TBS6905 the tuners seem to get mixed up, for example right now the TBS6905 is on adapters 0,2,3, and 6, while the TBS6985 is on adapters 1,4,5, and 7. The TBS6991SE is still on the last two tuners, adapters 8 and 9. This would only be a little confusing, and no big deal except I think maybe it is causing issues for TVHeadEnd, in that since adding the TBS6905 it seems that sometimes TVHeadEnd loses the configuration for some of the tuners if the system has to be powered off and later restarted.

Is there any way (without needing extreme Linux skills) to force the cards to certain adapter numbers (for example have the 6905 always get adapters 0-3, the 6985 get 4-7, and the 6991SE get 8 and 9)?
Last edited by cband on Tue Aug 04, 2015 11:59 pm, edited 1 time in total.
cband
 
Posts: 16
Joined: Sun Aug 24, 2014 4:46 pm

Re: Any way to control the adapter order under Linux?

Postby updatelee » Tue Jun 23, 2015 8:13 pm

create a file called /etc/modprobe.d/dvb.conf

now find out what modules each device uses, here is an example of the TBS 5980

options dvb-usb-tbsqbox2ci adapter_nr=10

now my 5980 will always take adapter number 10

UDL
TBS6925/5980, Prof 7301/7500/8000, Genpix Skywalker-1, Skystar 2 Express HD
Hauppauge 950Q, Kworld 330U/435v3/445v3
Dreambox 800

I use Linux and support open source projects.
User avatar
updatelee
 
Posts: 374
Joined: Wed Jul 25, 2012 11:48 am
Location: CFB Edmonton

Re: Any way to control the adapter order under Linux?

Postby cband » Tue Jun 23, 2015 9:49 pm

updatelee Wrote:create a file called /etc/modprobe.d/dvb.conf

now find out what modules each device uses, here is an example of the TBS 5980

options dvb-usb-tbsqbox2ci adapter_nr=10

now my 5980 will always take adapter number 10

UDL


Thank you UDL, but there are two things I don't understand. First, how do you determine the name each device uses? In other words, you used dvb-usb-tbsqbox2ci in your example, but how did you determine that name? Is there some command you can run that would list the names of these modules?

And second, how do you deal with devices that have multiple tuners, and each tuner gets its own adapter number? Maybe if I knew how to determine the device name, the answer to this would be obvious, especially if each tuner gets its own device name, but I don't know how to determine this.
cband
 
Posts: 16
Joined: Sun Aug 24, 2014 4:46 pm

Re: Any way to control the adapter order under Linux?

Postby cband » Tue Aug 04, 2015 11:59 pm

For anyone else that finds this thread, the solution was to create a file called /etc/modprobe.d/dvb.conf as updatelee said, and then in my case I edited it to contain this single line:

options tbs_pcie-dvb adapter_nr=6,7,8,9

This made the four tuners in the 6905 appear as adapters 6, 7, 8, and 9. I got the idea for this after reading nrm's second post in this thread.
cband
 
Posts: 16
Joined: Sun Aug 24, 2014 4:46 pm


Return to DVB-S2 Quad Tuner PCIe Card TBS6905

Who is online

Users browsing this forum: No registered users and 2 guests