Project

General

Profile

[SOLVED] Mystery problem with tvh and TBS6902 2xDVB-S2 PCIe

Added by Tom T over 5 years ago

Hi all,

Guys plz help me, i can't understand why newest TVH compiled from repo cant see my DVB card.
Card is properly installed in system, i use the newest TBS drivers from their site.
Its strange, because concurent software called VDR works without any problems.

https://www.linuxtv.org/wiki/index.php/TBS6902_DVB-S2_Dual_Tuner_PCIe_Card

In dmesg all is fine with my dvb card:



root@server:/dev/dvb# dmesg | grep TBSECP3
[ 6.992379] TBSECP3 driver 0000:01:00.0: TurboSight TBS 6902 DVB-S/S2
[ 6.992901] dvbdev: DVB: registering new adapter (TBSECP3 DVB Adapter)
[ 7.121451] TBSECP3 driver 0000:01:00.0: MAC address 00:22:ab:f0:ee:66
[ 7.254759] TBSECP3 driver 0000:01:00.0: DVB: registering adapter 0 frontend 0 (TurboSight TBS 6902 DVB-S/S2 )...
[ 7.254925] dvbdev: DVB: registering new adapter (TBSECP3 DVB Adapter)
[ 7.376428] TBSECP3 driver 0000:01:00.0: MAC address 00:22:ab:f0:ee:67
[ 7.482403] TBSECP3 driver 0000:01:00.0: DVB: registering adapter 1 frontend 0 (TurboSight TBS 6902 DVB-S/S2 )...
[ 7.482524] TBSECP3 driver 0000:01:00.0: TurboSight TBS 6902 DVB-S/S2 : PCI 0000:01:00.0, IRQ 91, MMIO 0xd0900000
root@server:/dev/dvb# ls /dev/dvb
adapter0 adapter1
root@server:/dev/dvb#

In dmesg there is no errors all looks fine and like i said VDR is working without any problems but i need TVH because there is easy channels group acces feature and channels management.

My motherboard is: AsRock Q1900-ITX Intel BayTrail motherboard and newest installed OpenMediaVault 4 Linux based system with kernel 4.19.0-0.bpo.4-amd64.
Before i used different motherboard ASUS Z87 GRYPHON and there TVH detect this card properly.


Replies (11)

RE: Mystery problem with tvh and TBS6902 2xDVB-S2 PCIe - Added by saen acro over 5 years ago

Install normal Linux distro, this kernel possibly is with cut parts

p.s. do you stop VDR before TVH

RE: Mystery problem with tvh and TBS6902 2xDVB-S2 PCIe - Added by Tom T over 5 years ago

saen acro wrote:

Install normal Linux distro, this kernel possibly is with cut parts

p.s. do you stop VDR before TVH

Naturally i stopped VDR.
I dont think if OMV4 is a problem, a lot of people using this with TVH.

RE: Mystery problem with tvh and TBS6902 2xDVB-S2 PCIe - Added by saen acro over 5 years ago

Start TVH in terminal without running it in background and post log

see original startup command

ps aux |grep tvheadend

example

command line from service

/usr/bin/tvheadend -f -p /var/run/tvheadend.pid -u hts -g video

run in terminal without -f

tvheadend -p /var/run/tvheadend.pid -u hts -g video

RE: Mystery problem with tvh and TBS6902 2xDVB-S2 PCIe - Added by Tom T over 5 years ago

saen acro wrote:

Start TVH in terminal without running it in background and post log
[...]

root@server:~# tvheadend -p /run/tvheadend.pid -u hts -g hts -c /home/hts
2019-04-19 09:26:22.245 [   INFO] main: Log started
2019-04-19 09:26:22.246 [   INFO] http: Starting HTTP server 0.0.0.0:9981
2019-04-19 09:26:22.246 [   INFO] htsp: Starting HTSP server 0.0.0.0:9982
2019-04-19 09:26:22.614 [   INFO] config: loaded
2019-04-19 09:26:22.614 [   INFO] config: scanfile (re)initialization with path <none>
2019-04-19 09:26:22.615 [   INFO] transcode: 'video' context type registered
2019-04-19 09:26:22.615 [   INFO] transcode: 'audio' context type registered
2019-04-19 09:26:22.615 [   INFO] transcode: '&TVHH264Decoder' decoder helper registered
2019-04-19 09:26:22.615 [   INFO] transcode: '&TVHTHEORADecoder' decoder helper registered
2019-04-19 09:26:22.615 [   INFO] transcode: '&TVHAACDecoder' decoder helper registered
2019-04-19 09:26:22.615 [   INFO] transcode: '&TVHVORBISDecoder' decoder helper registered
2019-04-19 09:26:22.615 [   INFO] transcode: '&TVHOPUSDecoder' decoder helper registered
2019-04-19 09:26:22.615 [   INFO] transcode: '&TVHMPEG2VIDEOEncoder' encoder helper registered
2019-04-19 09:26:22.615 [   INFO] transcode: '&TVHH264Encoder' encoder helper registered
2019-04-19 09:26:22.615 [   INFO] transcode: '&TVHHEVCEncoder' encoder helper registered
2019-04-19 09:26:22.615 [   INFO] transcode: '&TVHAACEncoder' encoder helper registered
2019-04-19 09:26:22.616 [   INFO] codec: 'mpeg2video' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'mp2' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'aac' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'vorbis' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'flac' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'libx264' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'libx265' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'libvpx' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'libvpx-vp9' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'libtheora' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'libvorbis' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'libopus' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'h264_vaapi' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'hevc_vaapi' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'vp8_vaapi' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'vp9_vaapi' encoder registered
2019-04-19 09:26:22.616 [   INFO] codec: 'webtv-h264' codec profile created
2019-04-19 09:26:22.616 [   INFO] codec: 'webtv-aac' codec profile created
2019-04-19 09:26:22.616 [   INFO] codec: 'webtv-vp8' codec profile created
2019-04-19 09:26:22.617 [   INFO] codec: 'webtv-vorbis' codec profile created
2019-04-19 09:26:22.619 [   INFO] descrambler: adding CAID 2600/FFFF as ConstCW interval 10000ms pc 20 ep default (BISS)
2019-04-19 09:26:22.619 [   INFO] descrambler: adding CAID 0E00/FFFF as MultiPID interval 1000ms pc 2 ep default (PowerVu)
2019-04-19 09:26:22.621 [   INFO] iptv: Using 2 input thread(s)
2019-04-19 09:26:22.975 [   INFO] scanfile: DVB-S - loaded 1 regions with 115 networks
2019-04-19 09:26:22.975 [   INFO] scanfile: DVB-T - loaded 44 regions with 1135 networks
2019-04-19 09:26:22.975 [   INFO] scanfile: DVB-C - loaded 19 regions with 62 networks
2019-04-19 09:26:22.975 [   INFO] scanfile: ATSC-T - loaded 2 regions with 12 networks
2019-04-19 09:26:22.975 [   INFO] scanfile: ATSC-C - loaded 1 regions with 5 networks
2019-04-19 09:26:22.975 [   INFO] scanfile: ISDB-T - loaded 2 regions with 1297 networks
2019-04-19 09:26:26.625 [   INFO] dvr: Creating new configuration ''
2019-04-19 09:26:26.627 [   INFO] epggrab: module uk_freesat created
2019-04-19 09:26:26.627 [   INFO] epggrab: module uk_freesat_eit created
2019-04-19 09:26:26.627 [   INFO] epggrab: module uk_freeview created
2019-04-19 09:26:26.627 [   INFO] epggrab: module nz_freeview2 created
2019-04-19 09:26:26.627 [   INFO] epggrab: module nz_freeview1 created
2019-04-19 09:26:26.627 [   INFO] epggrab: module viasat_baltic created
2019-04-19 09:26:26.627 [   INFO] epggrab: module Bulsatcom_39E created
2019-04-19 09:26:26.627 [   INFO] epggrab: module uk_cable_virgin created
2019-04-19 09:26:26.627 [   INFO] epggrab: module eit created
2019-04-19 09:26:26.627 [   INFO] epggrab: module psip created
2019-04-19 09:26:26.633 [   INFO] epggrab: module opentv-skyuk created
2019-04-19 09:26:26.634 [   INFO] epggrab: module opentv-ausat created
2019-04-19 09:26:26.634 [   INFO] epggrab: module opentv-skyit created
2019-04-19 09:26:26.635 [   INFO] epggrab: module opentv-skynz created
2019-04-19 09:26:26.636 [   INFO] epggrab: module xmltv created
2019-04-19 09:26:26.639 [   INFO] tbl-eit: module eit - scraper disabled by config
2019-04-19 09:26:26.640 [   INFO] epgdb: gzip format detected, inflating (ratio 138.6% deflated size 79)
2019-04-19 09:26:26.640 [   INFO] epgdb: parsing 57 bytes
2019-04-19 09:26:26.640 [   INFO] epgdb: loaded v3
2019-04-19 09:26:26.640 [   INFO] epgdb:   config     1
2019-04-19 09:26:26.640 [   INFO] epgdb:   broadcasts 0
2019-04-19 09:26:26.640 [   INFO] dvr: Purging obsolete autorec entries for current schedule
2019-04-19 09:26:26.640 [ NOTICE] START: HTS Tvheadend version 4.3-1789~g6bfeca6c0 started, running as PID:30048 UID:1 GID:1, CWD:/root CNF:/home/hts
2019-04-19 09:26:27.561 [   INFO] avahi: Service 'Tvheadend' successfully established.

I used TVH with many diferent DVB cards and this is first time when i dont understand what's wrong so i decided to register here and ask for help.

RE: Mystery problem with tvh and TBS6902 2xDVB-S2 PCIe - Added by saen acro over 5 years ago

In about page in webui open toggle details and post

RE: Mystery problem with tvh and TBS6902 2xDVB-S2 PCIe - Added by Tom T over 5 years ago

saen acro wrote:

In about page in webui open toggle details and post

Configure arguments:

Compiler:
  Using C compiler:                        cc
  Using LD flags:                           -ldvbcsa
  Build for arch:                          x86_64

Binaries:
  Using PYTHON:                            python
  Using GZIP:                              gzip
  Using BZIP2:                             bzip2

Options:
  pie                                      yes
  ccdebug                                  no
  cardclient                               yes
  cwc                                      yes
  cccam                                    yes
  capmt                                    yes
  constcw                                  yes
  linuxdvb                                 yes
  satip_server                             yes
  satip_client                             yes
  hdhomerun_client                         yes
  hdhomerun_static                         yes
  iptv                                     yes
  tsfile                                   yes
  dvbscan                                  yes
  timeshift                                yes
  trace                                    yes
  avahi                                    yes
  zlib                                     yes
  libav                                    yes
  ffmpeg_static                            yes
  libx264                                  yes
  libx264_static                           yes
  libx265                                  yes
  libx265_static                           yes
  libvpx                                   yes
  libvpx_static                            yes
  libtheora                                yes
  libtheora_static                         yes
  libvorbis                                yes
  libvorbis_static                         yes
  libfdkaac                                no
  libfdkaac_static                         no
  libopus                                  yes
  libopus_static                           yes
  nvenc                                    no
  vaapi                                    yes
  mmal                                     no
  omx                                      no
  inotify                                  yes
  epoll                                    yes
  pcre                                     no
  pcre2                                    yes
  uriparser                                yes
  ccache                                   no
  tvhcsa                                   yes
  bundle                                   no
  pngquant                                 no
  kqueue                                   no
  dbus_1                                   yes
  android                                  no
  gtimer_check                             no
  slow_memoryinfo                          no
  libsystemd_daemon                        no
  pcloud_cache                             yes
  ddci                                     yes
  cclang_threadsan                         no
  gperftools                               no
  execinfo                                 yes
  mmx                                      yes
  sse2                                     yes
  W_unused_result                          yes
  f_stack_protector                        yes
  f_stack_protector_strong                 yes
  f_stack_check                            yes
  f_PIE                                    yes
  fdatasync                                yes
  getloadavg                               yes
  atomic32                                 yes
  atomic64                                 yes
  atomic_time_t                            yes
  atomic_ptr                               yes
  bitops64                                 yes
  lockowner                                yes
  qsort_r                                  yes
  stime                                    yes
  gmtoff                                   yes
  recvmmsg                                 yes
  sendmmsg                                 yes
  ifnames                                  yes
  py_gzip                                  yes
  bin_pkg_config                           yes
  bin_xgettext                             yes
  bin_msgmerge                             yes
  bin_gzip                                 yes
  bin_bzip2                                yes
  ssl                                      yes
  linuxdvbapi                              yes
  linuxdvb_ca                              yes
  upnp                                     yes
  bin_cmake                                yes
  stdcpp                                   yes
  libogg_static                            yes
  hwaccels                                 yes
  inotify_h                                yes
  inotify_init1                            yes
  dvbcsa                                   yes
  epoll_create1                            yes
  mpegts                                   yes
  mpegts_dvb                               yes

Packages:
  openssl                                  1.1.0j
  zlib                                     1.2.8
  libpcre2-8                               10.22
  liburiparser                             0.8.4
  avahi-client                             0.6.32
  libva                                    0.39.4
  libva-x11                                0.39.4
  libva-drm                                0.39.4
  dbus-1                                   1.10.26

Installation paths:
  Prefix:                                  /usr/local
  Binaries:                                ${prefix}/bin
  Libraries:                               ${prefix}/lib
  Data files:                              ${prefix}/share
  Man pages:                               ${datadir}/man

RE: Mystery problem with tvh and TBS6902 2xDVB-S2 PCIe - Added by Joe User over 5 years ago

Probably permissions problems.

root@server:~# tvheadend -p /run/tvheadend.pid -u hts -g hts -c /home/hts

2019-04-19 09:26:26.640 [ NOTICE] START: HTS Tvheadend version 4.3-1789~g6bfeca6c0 started, running as PID:30048 UID:1 GID:1, CWD:/root CNF:/home/hts

tvheadend is running as root:root (UID:1 GID:1), should be runnning as hts:video
not sure why it is at least not showing hts:hts as requested on the command line???

tvheadend -p /run/tvheadend.pid -u hts -g video -c /home/hts

Check permissions of dvb:

ls -alR /dev/dvb

Or run as hts user but add hts user to the video group...

RE: Mystery problem with tvh and TBS6902 2xDVB-S2 PCIe - Added by Tom T over 5 years ago

Thank you guys for help, thank saen acro for your time and patience.

Joe User wrote:

Probably permissions problems.

You were right my friend. All is working now.
That was my fail.
I made like you said. Added new user [hts] to the [video] group and success.

tvheadend -p /run/tvheadend.pid -u hts -g video -c /home/hts

in tvh log card is detected:

2019-04-19 14:18:58.556 [   INFO] linuxdvb: adapter added /dev/dvb/adapter1
2019-04-19 14:18:59.120 [   INFO] linuxdvb: adapter added /dev/dvb/adapter0

That is great day i fixed nginx and tvh.
I can send you few bucks for beer if you give me yours paypal.

Have nice day guys and thanks

RE: Mystery problem with tvh and TBS6902 2xDVB-S2 PCIe - Added by Jack Bamford over 5 years ago

Tom T wrote:

Hi all,

Guys plz help me, i can't understand why newest TVH compiled from repo cant see my DVB card.
Card is properly installed in system, i use the newest TBS drivers from their site.
Its strange, because concurent software called VDR works without any problems.

https://www.linuxtv.org/wiki/index.php/TBS6902_DVB-S2_Dual_Tuner_PCIe_Card

In dmesg all is fine with my dvb card:
[...]

In dmesg there is no errors all looks fine and like i said VDR is working without any problems but i need TVH because there is easy channels group acces feature and channels management.

My motherboard is: AsRock Q1900-ITX Intel BayTrail motherboard and newest installed OpenMediaVault 4 Linux based system with kernel 4.19.0-0.bpo.4-amd64.
Before i used different motherboard ASUS Z87 GRYPHON and there TVH detect this card properly.

Use a Normal Distro like Ubuntu Desktop or Ubuntu Server make sure that the Kernel is the Mainstream Kernel.

    (1-11/11)