Project

General

Profile

tvheadend packman package does not show adapters

Added by Bas van Rijn about 8 years ago

Hi,

I have installed tvheadend 4.0.9 on opensuse Leap and opensuse 13.1 with the same result.
After starting the service tvheadend user is created and config is populated. Via the web interface (Configuration > DVB Inputs > Networks I can created a node based on dvb-t). On the tab TV adapters there is no adapter to choose from.
When I copy an existing configuration to tvheadend/Config everything else works (shows epg etc) exept still no tv adapters.

On opensuse 13.1 I have build tvheadend from source (for many years, started with 2.1), I run it as a normal user user<username>:group users and tv adapters are show and doing their work as expected.

How can I get the adapters back?

Cheers,
Bas


Replies (14)

RE: tvheadend packman package does not show adapters - Added by saen acro about 8 years ago

Are you sure tuner is working?
what is result from:

dmesg | grep dvb
dmesg | grep firmware
dmesg | grep frontend

RE: tvheadend packman package does not show adapters - Added by Bas van Rijn about 8 years ago

Like I said when running the compiled version in opensuse 13.1 everything works. When I stop the compiled version and start tvheadend service (no reboot) I don't have any adapters (no adapters shown in TV adapters list of web view). Going back to the compiled version of tvheadend everything works again. I can watch tv switch channels etc.
I will show you the output of dmesg tonight.

RE: tvheadend packman package does not show adapters - Added by Bas van Rijn about 8 years ago

the tvheadend 4.0.9 build myself runs fine on opensuse 13.1. When I run the packman installed package I don't have any tv adapters listed

dvb.txt (887 Bytes) dvb.txt dmesg dvb
firmware.txt (1.17 KB) firmware.txt dmesg firmware
frontend.txt (426 Bytes) frontend.txt dmesg frontend
tvheadend TV adapters.png (46.6 KB) tvheadend TV adapters.png screenshot tv adapters

RE: tvheadend packman package does not show adapters - Added by saen acro about 8 years ago

Are you sure that you don't have any problem?

dvb.txt
[    9.061608] cx88/2: cx2388x dvb driver version 0.0.9 loaded
[    9.061612] cx88/2: registering cx8802 driver, type: dvb access: shared
[    9.065504] cx88[0]/2: dvb_register failed (err = -22)
[    9.500290] dvb-usb: found a 'Hauppauge Nova-TD-500 (84xxx)' in cold state, will try to load a firmware
[    9.948574] dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.20.fw'
[   10.651205] dvb-usb: found a 'Hauppauge Nova-TD-500 (84xxx)' in warm state.
[   10.651258] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[   11.052856] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[   11.407766] dvb-usb: schedule remote query interval to 50 msecs.
[   11.407770] dvb-usb: Hauppauge Nova-TD-500 (84xxx) successfully initialized and connected.
[   11.407914] usbcore: registered new interface driver dvb_usb_dib0700

Line 3 problem registering frontend

[    9.177093] cx88-mpeg driver manager 0000:05:05.2: Direct firmware load for v4l-cx2341x-enc.fw failed with error -2
[    9.177096] cx88[0]/2-bb: ERROR: Hotplug firmware request failed (v4l-cx2341x-enc.fw).
[    9.177098] cx88[0]/2-bb: Please fix your hotplug setup, the board will not work without firmware loaded!
[    9.194050] cx88-mpeg driver manager 0000:05:05.2: Direct firmware load for v4l-cx2341x-enc.fw failed with error -2
[    9.194053] cx88[0]/2-bb: ERROR: Hotplug firmware request failed (v4l-cx2341x-enc.fw).
[    9.194055] cx88[0]/2-bb: Please fix your hotplug setup, the board will not work without firmware loaded!
[    9.500290] dvb-usb: found a 'Hauppauge Nova-TD-500 (84xxx)' in cold state, will try to load a firmware
[    9.948574] dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.20.fw'
[   10.150263] dib0700: firmware started successfully.
[ 3282.297539] cx88-mpeg driver manager 0000:05:05.2: Direct firmware load for v4l-cx2341x-enc.fw failed with error -2
[ 3282.297547] cx88[0]/2-bb: ERROR: Hotplug firmware request failed (v4l-cx2341x-enc.fw).
[ 3282.297549] cx88[0]/2-bb: Please fix your hotplug setup, the board will not work without firmware loaded!

missing firmware v4l-cx2341x-enc.fw
[    8.862136] cx88[0]: subsystem: 0070:9601, board: Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder [card=56,autodetected], frontend(s): 1
[    9.061618] cx8802_alloc_frontends() allocating 1 frontend(s)
[    9.065502] cx88[0]/2: frontend initialization failed
[   10.860337] usb 3-1: DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)...
[   11.191119] usb 3-1: DVB: registering adapter 1 frontend 0 (DiBcom 7000PC)...

again frontend problem

find firmware v4l-cx2341x-enc.fw and put it in

/lib/firmware

or where you distro put them, and test again.

RE: tvheadend packman package does not show adapters - Added by Bas van Rijn about 8 years ago

Thans for your feedback.
I am using adapter 0 and 1 (DiBcom 700PC). I have used Hauppauge WinTV-HVR1300 in the past but I have not actively maintained this one at the moment. All three adapters are actually shown in the compiled version of tvheadend 4.0.9. I am 100% sure adapter 0 and 1 are working.

RE: tvheadend packman package does not show adapters - Added by Bas van Rijn about 8 years ago

Hauppauge Nova-TD-500 is a dual tuner (acting as a usb tv adapter).
Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder is a hybrid card with dvb-t input and analog tv-in.

RE: tvheadend packman package does not show adapters - Added by Bas van Rijn about 8 years ago

And here is the status of tvheadend that I build myself.
All working fine.
I just want to understand what needs to be done for the tvheadend package to work. Should I install additional software, libraries do I need packages like dvt-channels?

RE: tvheadend packman package does not show adapters - Added by Bas van Rijn about 8 years ago

I have installed opensuse leap on another partition (upgrade). Compiling failed on Leap so I wanted to give the packman tvheadend package a chance. Unfortunately there is no manual or help of how to achieve this.
There are subtle differences with the package. Tvheadend runs as service under a username. Config is installed under user tvheadend and all files have rights (user:group) bin:bin. Who can give me some directions?

RE: tvheadend packman package does not show adapters - Added by Jonathan Thomson about 8 years ago

Are you absolutely certain that the user and group for the user running the binaries is the same between the packaged version and the version you built yourself?

Use...

ps aux | grep tvheadend

...whilst running each version to confirm the users are the same.

If both are using the same user and group then the config will be identical between the two (when you start up both versions, is the web interface available, is the configuration in the web ui the same between the two versions?)

Double-check your user has access to the Video group (or whatever group your distro uses for access to DVB video devices)

RE: tvheadend packman package does not show adapters - Added by Bas van Rijn about 8 years ago

The packaged version (packman opensuse) creates a user "tvheadend" and a sub folder Config with tvheadend configuration details. And it created a user hts. I think tvheadend service is started with -u hts -g hts and -c /home/tvheadend/Config. I have not modified these users. This might be necessary to get access to the adapters.

The tvheadend executable I build myself is started under user xbmc (group users). I use "tvheadend -C" so that I don't need a user name and password to get access to the web interface. The executable works flawlessly.

So different users are used between packaged version and executable. I tried changing service startup and used user: xbmc with no luck.

RE: tvheadend packman package does not show adapters - Added by Bas van Rijn about 8 years ago

OK things are working now. User configurations: hts:video tvheadend:users xbmc:users,video
I changed the startup of tvheadend to -u hts -g hts and kept -c /home/tvheadend/Config

hts has got access to video and tvheadend has not. Everything now works as expected.
Thank you very much for your help

RE: tvheadend packman package does not show adapters - Added by Jonathan Thomson about 8 years ago

Great! :)

Adapters not being visible is almost always down to one of two problems:
  • The drivers aren't installed (which you proved wasn't the case as they were visible in one instance of TVH but not the other) or
  • Permissions

Glad it's sorted for you.

RE: tvheadend packman package does not show adapters - Added by Bas van Rijn about 8 years ago

I still had the problem that web end changes were lost after tvheadend service had been restarted.
the service was running under user hts, the configuration stored under tvheadend (with bin:bin rights). I moved the configuration to hts and changed the file rights to hts:video (changes tvheadend startup parameter to -c /home/hts/config). This works fine for me.

Where would you need a separate tvheadend "user" for?

    (1-14/14)