Project

General

Profile

Change from /dev/dvb/adapter0/frontend0 to frontend1?

Added by Jim bo almost 10 years ago

Hey, I hava a Hauppauge PCTV Nanostick T2 HD 290e that works with both DVB-T (frontend0) and DVB-C (frontend1) under Linux.
But I can´t get Tvheadend to use frontend1 instead of frontend0.
I have tried to switch the name of the two frontends and then it works, only problem is when the computer is rebooted they change back.
Anyone know how I can fix this?


Replies (10)

RE: Change from /dev/dvb/adapter0/frontend0 to frontend1? - Added by Hein Rigolo almost 10 years ago

You might be able to do something with udev rules ... But not sure.
Or check if there are module options to swap the frontend around or present them as seperate adapters.

At the moment tvheadend can not handle adapters with multiple frontends. (any fixes for this are always welcome)

Hein

RE: Change from /dev/dvb/adapter0/frontend0 to frontend1? - Added by Jim bo almost 10 years ago

Ahh, just my bad luck that DVB-C is on the second frontend...

RE: Change from /dev/dvb/adapter0/frontend0 to frontend1? - Added by Hein Rigolo almost 10 years ago

Or update the driver to swap the frontends around with an option.

RE: Change from /dev/dvb/adapter0/frontend0 to frontend1? - Added by Jim bo almost 10 years ago

Are you talking about the driver for the TV-card or the driver for Tvheadend?
I´m not sure I could help with any of that, maybe bug testing.

RE: Change from /dev/dvb/adapter0/frontend0 to frontend1? - Added by Hein Rigolo almost 10 years ago

Driver of the card, there are no tvheadend drivers.

RE: Change from /dev/dvb/adapter0/frontend0 to frontend1? - Added by Jim bo almost 10 years ago

I have done some UDEV rules so now I get the frontends on seperate adapters (100 & 101) but I can only see the first adapter.
Do I need to do anything so that Tvheadend see that there is several adapters?

RE: Change from /dev/dvb/adapter0/frontend0 to frontend1? - Added by Hein Rigolo almost 10 years ago

Tvheadend can only work with adapter0 upto adapter31, so make sure your adapters are within that range.

RE: Change from /dev/dvb/adapter0/frontend0 to frontend1? - Added by Jim bo almost 10 years ago

Thanks, if I change to 11 for the DVB-C I can see it in the list.
Now the problem is that I can´t find any servicec, also Tvheadend thinks it´s a PCI card.
If I rename frontend1 to frontend0 and restart Tvheadend I can find the services for DVB-C.

This dosent work:
/dev/dvb/adapter11$ ls -l
lrwxrwxrwx 1 root root 21 2011-11-26 11:10 frontend0 -> ../adapter0/frontend1

But this does:
/dev/dvb/adapter0$ ls l
crw-rw---
1 root video 212, 0 2011-11-26 12:17 0 <---- Old frontend0
crw-rw---- 1 root video 212, 2 2011-11-26 12:17 demux0
crw-rw---- 1 root video 212, 3 2011-11-26 12:17 dvr0
crw-rw---- 1 root video 212, 1 2011-11-26 12:17 frontend0 <---- Old frontend1
crw-rw---- 1 root video 212, 4 2011-11-26 12:17 net0

RE: Change from /dev/dvb/adapter0/frontend0 to frontend1? - Added by Hein Rigolo almost 10 years ago

Okee, so your actual adapter is not switched to dvb-c mode.

Other option, but it will require you to chamge tvheadend code and compile your own version, is to change the default frontend that tvheadend is using. In src/dvb/dvb_adapter.c at line 263 there is a hardcoded frontend0. So if you change that to frontend1 it will work in your situation.

And if you like to program, make it a selection on the adapter config page to select between frontend0 or frontend1. You can still not use them at the same time, or even switch between them "on the fly" but it is better then nothing.

Hein

RE: Change from /dev/dvb/adapter0/frontend0 to frontend1? - Added by Jim bo almost 10 years ago

Thanks for the help Hein, I will look at the code and see what I can do.

    (1-10/10)