Page 1 of 1

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

PostPosted: Tue Jun 23, 2015 5:03 am
by cband
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)?

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

PostPosted: Tue Jun 23, 2015 8:13 pm
by updatelee
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

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

PostPosted: Tue Jun 23, 2015 9:49 pm
by cband
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.

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

PostPosted: Tue Aug 04, 2015 11:59 pm
by cband
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.