TBS-5520SE Tuning Issue

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

maff
Junior
Posts: 24
Joined: Wed Dec 07, 2016 9:50 pm
Great Britain

TBS-5520SE Tuning Issue

Post by maff »

Hi all,

I have an Ubuntu 16.04.2 LTS (Myhtbuntu) setup that's been running happily for years on a pair of Hauppauge Nova S2s. I thought it'd be nice to get the S2 & T2 HD channels I can't with the Novas so I've added a USB TBS-5520SE to the mix.

While both the Novas can scan for channel's fine using (Yes i know this is the non HD stuff, but i'm trying to keep it similar to what i know works):
Freq: 10714000
Polarity: Horizontal
Symbol rate: 22000000
Mod Sys: DVB-S
FEC: 5/6
Modulation: QPSK
Inversion: leave at auto
Rolloff: leave at 0.35

The TBS stops with:

Frequency 10714000 -- Timed out, no channels / Failed to find any channels.

after the:
Scanning Frequency 10714000
Signal strength - 64% Signal / Noise - 73%

screen.

A bit of digging with mythtv-setup -logpath /tmp

Code: Select all

2017-06-01 11:02:45.058322 I [18132/18132] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Interrupt handler
2017-06-01 11:02:45.058355 I [18132/18132] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Terminated handler
2017-06-01 11:02:45.058369 I [18132/18132] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Segmentation fault handler
2017-06-01 11:02:45.058379 I [18132/18132] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Aborted handler
2017-06-01 11:02:45.058391 I [18132/18132] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Bus error handler
2017-06-01 11:02:45.058400 I [18132/18132] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Floating point exception handler
2017-06-01 11:02:45.058412 I [18132/18132] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Illegal instruction handler
2017-06-01 11:02:45.058423 I [18132/18132] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Real-time signal 0 handler
2017-06-01 11:02:45.058438 I [18132/18132] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Hangup handler
2017-06-01 11:02:45.058593 C [18132/18132] thread_unknown mythcommandlineparser.cpp:2599 (ConfigureLogging) - mythtv-setup version: fixes/0.28 [v0.28.1-23-gaf98262] www.mythtv.org
2017-06-01 11:02:45.058601 C [18132/18132] thread_unknown mythcommandlineparser.cpp:2601 (ConfigureLogging) - Qt version: compile: 5.5.1, runtime: 5.5.1
2017-06-01 11:02:45.058611 N [18132/18132] thread_unknown mythcommandlineparser.cpp:2603 (ConfigureLogging) - Enabled verbose msgs:  general
2017-06-01 11:02:45.058705 N [18132/18132] thread_unknown logging.cpp:920 (logStart) - Setting Log Level to LOG_INFO
2017-06-01 11:02:45.071891 I [18132/18136] Logger logging.cpp:313 (run) - Added logging to the console
2017-06-01 11:02:45.172443 I [18132/18135] LogForward loggingserver.cpp:142 (FileLogger) - Added logging to /tmp/mythtv-setup.20170601100245.18132.log
2017-06-01 11:02:45.172494 I [18132/18135] LogForward loggingserver.cpp:295 (SyslogLogger) - Added syslogging
2017-06-01 11:02:45.295176 N [18132/18132] thread_unknown mythdirs.cpp:192 (InitializeMythDirs) - Using runtime prefix = /usr
2017-06-01 11:02:45.295202 N [18132/18132] thread_unknown mythdirs.cpp:194 (InitializeMythDirs) - Using configuration directory = /home/maff/.mythtv
2017-06-01 11:02:45.295439 I [18132/18132] CoreContext mythcorecontext.cpp:266 (Init) - Assumed character encoding: en_GB.UTF-8
2017-06-01 11:02:45.296469 N [18132/18132] CoreContext mythcontext.cpp:505 (LoadDatabaseSettings) - Empty LocalHostName.
2017-06-01 11:02:45.296488 I [18132/18132] CoreContext mythcontext.cpp:513 (LoadDatabaseSettings) - Using localhost value of MYTHTV
2017-06-01 11:02:45.326929 N [18132/18132] CoreContext mythcorecontext.cpp:1670 (InitLocale) - Setting QT default locale to en_GB
2017-06-01 11:02:45.326947 I [18132/18132] CoreContext mythcorecontext.cpp:1703 (SaveLocaleDefaults) - Current locale en_GB
2017-06-01 11:02:45.327030 N [18132/18132] CoreContext mythlocale.cpp:123 (LoadDefaultsFromXML) - Reading locale defaults from /usr/share/mythtv//locales/en_gb.xml
2017-06-01 11:02:45.347415 I [18132/18140] SystemIOHandlerR mythsystemunix.cpp:92 (run) - Starting IO manager (read)
2017-06-01 11:02:45.349902 I [18132/18141] SystemIOHandlerW mythsystemunix.cpp:92 (run) - Starting IO manager (write)
2017-06-01 11:02:45.350022 I [18132/18139] SystemSignalManager mythsystemunix.cpp:509 (run) - Starting process signal handler
2017-06-01 11:02:45.355568 I [18132/18138] SystemManager mythsystemunix.cpp:276 (run) - Starting process manager
2017-06-01 11:02:45.400305 I [18132/18132] CoreContext screensaver-x11.cpp:51 (ScreenSaverX11Private) - ScreenSaverX11Private: XScreenSaver support enabled
2017-06-01 11:02:45.401147 I [18132/18132] CoreContext screensaver-x11.cpp:82 (ScreenSaverX11Private) - ScreenSaverX11Private: DPMS is disabled.
2017-06-01 11:02:45.452371 E [18132/18132] CoreContext mythxdisplay.cpp:191 (GetRefreshRate) - X11 ModeLine query returned zeroes
2017-06-01 11:02:45.452592 N [18132/18132] CoreContext DisplayRes.cpp:64 (Initialize) - Desktop video mode: 1024x768 60.000 Hz
2017-06-01 11:02:45.483335 I [18132/18132] CoreContext mythtranslation.cpp:73 (load) - Loading en_gb translation for module mythfrontend
2017-06-01 11:02:45.484041 E [18132/18132] CoreContext lirc.cpp:208 (Init) - LIRC: Failed to connect to Unix socket '/var/run/lirc/lircd'
			eno: No such file or directory (2)
2017-06-01 11:02:45.484084 I [18132/18132] CoreContext jsmenu.cpp:153 (ReadConfig) - No joystick configuration found, not enabling joystick control
2017-06-01 11:02:45.497475 E [18132/18132] CoreContext cecadapter.cpp:150 (Open) - CECAdapter: Failed to load libcec.
2017-06-01 11:02:45.497528 I [18132/18132] CoreContext mythudplistener.cpp:32 (Enable) - UDPListener: Enabling
2017-06-01 11:02:45.502763 I [18132/18132] CoreContext serverpool.cpp:508 (bind) - Binding to UDP 127.0.0.1:6948
2017-06-01 11:02:45.502944 I [18132/18132] CoreContext serverpool.cpp:508 (bind) - Binding to UDP 192.168.0.200:6948
2017-06-01 11:02:45.503076 I [18132/18132] CoreContext serverpool.cpp:508 (bind) - Binding to UDP [::1]:6948
2017-06-01 11:02:45.503303 I [18132/18132] CoreContext serverpool.cpp:508 (bind) - Binding to UDP [fe80::74f6:8f90:ff8a:2bc5%enp0s7]:6948
2017-06-01 11:02:45.503363 I [18132/18132] CoreContext serverpool.cpp:508 (bind) - Binding to UDP 192.168.0.255:6948
2017-06-01 11:02:45.555239 I [18132/18132] CoreContext mythmainwindow.cpp:1041 (Init) - Using Frameless Window
2017-06-01 11:02:45.555249 I [18132/18132] CoreContext mythmainwindow.cpp:1052 (Init) - Using Full Screen Window
2017-06-01 11:02:45.635743 I [18132/18132] CoreContext mythmainwindow.cpp:1079 (Init) - UI Screen Resolution: 1024 x 768
2017-06-01 11:02:45.771274 I [18132/18132] CoreContext mythmainwindow.cpp:1185 (Init) - Using the Qt painter
2017-06-01 11:02:46.192601 I [18132/18132] CoreContext mythuiwebbrowser.cpp:1090 (LoadUserStyleSheet) - MythUIWebBrowser: Loading css from - file:///usr/share/mythtv/themes/default/htmls/mythbrowser.css
2017-06-01 11:02:46.195727 I [18132/18132] CoreContext mythuiwebbrowser.cpp:997 (Init) - MythUIWebBrowser: enabling plugins
2017-06-01 11:02:46.274026 I [18132/18132] CoreContext schemawizard.cpp:120 (Compare) - Current MythTV Schema Version (DBSchemaVer): 1344
2017-06-01 11:03:50.984306 E [18132/18132] CoreContext diseqc.cpp:676 (send_diseqc) - DiSEqCDevTree: send_diseqc FE_DISEQC_SEND_MASTER_CMD failed
			eno: Connection timed out (110)
2017-06-01 11:03:50.984342 E [18132/18132] CoreContext diseqc.cpp:740 (SendCommand) - DiSEqCDevTree: DiSEqC command failed
			eno: Connection timed out (110)
2017-06-01 11:03:50.984366 E [18132/18132] CoreContext diseqc.cpp:787 (ResetDiseqc) - DiSEqCDevTree: DiSEqC reset failed
			eno: Connection timed out (110)
2017-06-01 11:03:50.988176 E [18132/18132] CoreContext recorders/dvbchannel.cpp:1023 (HasLock) - DVBChan[9](/dev/dvb/adapter0/frontend1): Getting Frontend status failed.
			eno: Resource temporarily unavailable (11)
2017-06-01 11:03:50.988211 E [18132/18132] CoreContext recorders/dvbsignalmonitor.cpp:78 (DVBSignalMonitor) - DVBSigMon[-1](/dev/dvb/adapter0/frontend1): Cannot read DVB status
			eno: Resource temporarily unavailable (11)
2017-06-01 11:03:51.490225 E [18132/18132] CoreContext recorders/dvbchannel.cpp:1107 (GetBitErrorRate) - DVBChan[9](/dev/dvb/adapter0/frontend1): Getting Frontend signal error rate failed.
			eno: Connection timed out (110)
2017-06-01 11:03:51.490270 W [18132/18132] CoreContext recorders/dvbsignalmonitor.cpp:95 (DVBSignalMonitor) - DVBSigMon[-1](/dev/dvb/adapter0/frontend1): Cannot measure Bit Error Rate
			eno: Connection timed out (110)
2017-06-01 11:03:59.328015 E [18132/18169] Scanner diseqc.cpp:513 (SetTone) - DiSEqCDevTree: FE_SET_TONE failed
			eno: Connection timed out (110)
2017-06-01 11:03:59.328237 E [18132/18169] Scanner recorders/dvbchannel.cpp:1255 (wait_for_backend) - DVBChan: wait_for_backend: Failed to get status
			eno: Resource temporarily unavailable (11)
2017-06-01 11:03:59.329253 E [18132/18170] SignalMonitor recorders/dvbchannel.cpp:1023 (HasLock) - DVBChan[9](/dev/dvb/adapter0/frontend1): Getting Frontend status failed.
			eno: Resource temporarily unavailable (11)
2017-06-01 11:03:59.358714 E [18132/18170] SignalMonitor recorders/dvbchannel.cpp:1023 (HasLock) - DVBChan[9](/dev/dvb/adapter0/frontend1): Getting Frontend status failed.
			eno: Resource temporarily unavailable (11)

---snip (same line repeats)

2017-06-01 11:04:06.271920 E [18132/18170] SignalMonitor recorders/dvbchannel.cpp:1023 (HasLock) - DVBChan[9](/dev/dvb/adapter0/frontend1): Getting Frontend status failed.
			eno: Resource temporarily unavailable (11)
2017-06-01 11:04:06.297228 E [18132/18170] SignalMonitor recorders/dvbchannel.cpp:1023 (HasLock) - DVBChan[9](/dev/dvb/adapter0/frontend1): Getting Frontend status failed.
			eno: Resource temporarily unavailable (11)
2017-06-01 11:04:06.322527 E [18132/18170] SignalMonitor recorders/dvbchannel.cpp:1023 (HasLock) - DVBChan[9](/dev/dvb/adapter0/frontend1): Getting Frontend status failed.
			eno: Resource temporarily unavailable (11)
2017-06-01 11:04:06.363814 I [18132/18132] CoreContext channelscan/channelimporter.cpp:44 (Process) - ChanImport: No channels to process..
Ok, clearly it's not happy but a

w_scan -fs -s S28E2

Code: Select all

w_scan version 20141122 (compiled for DVB API 5.10)
using settings for 28.2 east Astra 2A/B/C/D + EuroBird 1 28.5
scan type SATELLITE, channellist 61
output format vdr-2.0
WARNING: could not guess your codepage. Falling back to 'UTF-8'
output charset 'UTF-8', use -C <charset> to override
Info: using DVB adapter auto detection.
        /dev/dvb/adapter0/frontend0 -> "TurboSight TBS 5520SE DVB-T/T2/C/C2/ISDB-T" doesnt support SATELLITE -> SEARCH NEXT ONE.
        /dev/dvb/adapter0/frontend1 -> SATELLITE "TurboSight TBS 5520SE DVB-S/S2/S2X": very good :-))

Using SATELLITE frontend (adapter /dev/dvb/adapter0/frontend1)
-_-_-_-_ Getting frontend capabilities-_-_-_-_
Using DVB API 5.10
frontend 'TurboSight TBS 5520SE DVB-S/S2/S2X' supports
INVERSION_AUTO
DVB-S
DVB-S2
FREQ (0.95GHz ... 2.15GHz)
SRATE (1.000MSym/s ... 45.000MSym/s)
using LNB "UNIVERSAL"
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
trying 'S  f = 10714 kHz H SR = 22000  5/6 0,35  QPSK  (0:0:0)'
(time: 00:00.220)         signal ok:    S  f = 10714 kHz H SR = 22000  5/6 0,35  QPSK  (0:0:0)
        S  f = 10714 kHz H SR = 22000  5/6 0,35  QPSK  (0:0:0) : updating transport_stream_id: -> (0:0:2041)
        S  f = 10714 kHz H SR = 22000  5/6 0,35  QPSK  (0:0:2041) : updating network_id -> (0:32:2041)
        new transponder: (S  f = 11538 kHz V SR = 22000  5/6 0,35  QPSK  (2:32:2094)) 0x4043
        new transponder: (S  f = 11954 kHz H SR = 27500  2/3 0,35  QPSK  (2:32:2013)) 0x4043
        new transponder: (S  f = 11494 kHz H SR = 22000  5/6 0,35  QPSK  (2:32:2091)) 0x4043
        S  f = 10714 kHz H SR = 22000  5/6 0,35  QPSK  (0:32:2041) : updating original_network_id -> (2:32:2041)
        new transponder: (S  f = 10964 kHz H SR = 22000  5/6 0,35  QPSK  (2:32:2057)) 0x4043
        new transponder: (S  f = 10994 kHz H SR = 22000  5/6 0,35  QPSK  (2:32:2059)) 0x4043
        new transponder: (S2 f = 10832 kHz H SR = 23000  3/4 0,25  8PSK  (2:32:2049)) 0x4043
        new transponder: (S  f = 10891 kHz H SR = 22000  5/6 0,35  QPSK  (2:32:2053)) 0x4043
        new transponder: (S  f = 10906 kHz V SR = 22000  5/6 0,35  QPSK  (2:32:2054)) 0x4043
        new transponder: (S  f = 10759 kHz V SR = 22000  5/6 0,35  QPSK  (2:32:2044)) 0x4043
        new transponder: (S  f = 12304 kHz H SR = 27500  5/6 0,35  QPSK  (2:32:2031)) 0x4043
        new transponder: (S  f = 11568 kHz V SR = 22000  5/6 0,35  QPSK  (2:32:2096)) 0x4043
        new transponder: (S  f = 11343 kHz V SR = 27500  5/6 0,35  QPSK  (2:32:2112)) 0x4043
        new transponder: (S2 f = 11612 kHz H SR = 23000  2/3 0,25  8PSK  (2:32:2099)) 0x4043
        new transponder: (S  f = 12051 kHz V SR = 27500  2/3 0,35  QPSK  (2:32:2067)) 0x4043
        new transponder: (S  f = 11523 kHz H SR = 22000  5/6 0,35  QPSK  (2:32:2093)) 0x4043
        new transponder: (S  f = 11224 kHz H SR = 27500  2/3 0,35  QPSK  (2:32:2105)) 0x4043
        new transponder: (S  f = 10729 kHz V SR = 22000  5/6 0,35  QPSK  (2:32:2042)) 0x4043
        new transponder: (S  f = 11597 kHz V SR = 22000  5/6 0,35  QPSK  (2:32:2098)) 0x4043
        new transponder: (S  f = 11264 kHz H SR = 27500  2/3 0,35  QPSK  (2:32:2107)) 0x4043
        new transponder: (S  f = 11307 kHz H SR = 27500  5/6 0,35  QPSK  (2:32:2109)) 0x4043
        new transponder: (S  f = 11307 kHz V SR = 27500  2/3 0,35  QPSK  (2:32:2110)) 0x4043
        new transponder: (S2 f = 11387 kHz H SR = 29500  8/9 0,35  QPSK  (2:32:2113)) 0x4043
        new transponder: (S  f = 11582 kHz H SR = 22000  5/6 0,35  QPSK  (2:32:2097)) 0x4043
        new transponder: (S2 f = 11097 kHz V SR = 23000  3/4 0,25  8PSK  (2:32:2066)) 0x4043
        new transponder: (S2 f = 11068 kHz V SR = 23000  3/4 0,25  8PSK  (2:32:2064)) 0x4043
        Info: no data from NIT(actual )after 11 seconds
10729: skipped (already known transponder)
trying 'S  f = 10744 kHz H SR = 22000  5/6 0,35  QPSK  (0:0:0)'
(time: 00:12.176)
10758: skipped (already known transponder)

--- snip

trying 'S  f = 12580 kHz V SR = 22000  5/6 0,35  QPSK  (0:0:0)'
(time: 06:33.370)
trying 'S  f = 12604 kHz H SR = 22000  5/6 0,35  QPSK  (0:0:0)'
(time: 06:38.130)
trying 'S  f = 12610 kHz V SR = 22000  5/6 0,35  QPSK  (0:0:0)'
(time: 06:40.446)
trying 'S  f = 12633 kHz H SR = 22000  5/6 0,35  QPSK  (0:0:0)'
(time: 06:42.762)
trying 'S  f = 12640 kHz V SR = 22000  5/6 0,35  QPSK  (0:0:0)'
(time: 06:45.078)
trying 'S  f = 12663 kHz H SR = 22000  5/6 0,35  QPSK  (0:0:0)'
(time: 06:47.394)
trying 'S  f = 12669 kHz V SR = 22000  5/6 0,35  QPSK  (0:0:0)'
(time: 06:49.710)
tune to: S  f = 10714 kHz H SR = 22000  5/6 0,35  QPSK  (2:32:2041) (time: 06:52.026)
        service = Channel 4 (BSkyB)
        service = Channel 4 (BSkyB)
        service = Channel 4 (BSkyB)
        service = Channel 4 (BSkyB)
        service = Channel 4 (BSkyB)
        service = Channel 4 (BSkyB)
        service = Film4 (BSkyB)
        service = Film4 +1 (BSkyB)
        service = More4 +1 (BSkyB)
        service = 4Music (BSkyB)
        service = c4 l (BSkyB)


Says all is well with the hardware & it can channel scan. (Shame the import channels.conf was deprecated).

If anybody able to point me in the right direction it would be much apreciated :)

Cheers

Maff
maff
Junior
Posts: 24
Joined: Wed Dec 07, 2016 9:50 pm
Great Britain

Re: TBS-5520SE Tuning Issue

Post by maff »

Had another play, different result on tuning today

Code: Select all

2017-06-02 12:18:44.779422 I [2411/2411] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Interrupt handler
2017-06-02 12:18:44.779456 I [2411/2411] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Terminated handler
2017-06-02 12:18:44.779471 I [2411/2411] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Segmentation fault handler
2017-06-02 12:18:44.779481 I [2411/2411] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Aborted handler
2017-06-02 12:18:44.779494 I [2411/2411] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Bus error handler
2017-06-02 12:18:44.779504 I [2411/2411] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Floating point exception handler
2017-06-02 12:18:44.779517 I [2411/2411] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Illegal instruction handler
2017-06-02 12:18:44.779529 I [2411/2411] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Real-time signal 0 handler
2017-06-02 12:18:44.779543 I [2411/2411] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Hangup handler
2017-06-02 12:18:44.779706 C [2411/2411] thread_unknown mythcommandlineparser.cpp:2599 (ConfigureLogging) - mythtv-setup version: fixes/0.28 [v0.28.1-23-gaf98262] www.mythtv.org
2017-06-02 12:18:44.779714 C [2411/2411] thread_unknown mythcommandlineparser.cpp:2601 (ConfigureLogging) - Qt version: compile: 5.5.1, runtime: 5.5.1
2017-06-02 12:18:44.779725 N [2411/2411] thread_unknown mythcommandlineparser.cpp:2603 (ConfigureLogging) - Enabled verbose msgs:  general
2017-06-02 12:18:44.779823 N [2411/2411] thread_unknown logging.cpp:920 (logStart) - Setting Log Level to LOG_INFO
2017-06-02 12:18:44.791963 I [2411/2415] Logger logging.cpp:313 (run) - Added logging to the console
2017-06-02 12:18:44.892582 I [2411/2414] LogForward loggingserver.cpp:142 (FileLogger) - Added logging to /tmp/mythtv-setup.20170602111844.2411.log
2017-06-02 12:18:44.892639 I [2411/2414] LogForward loggingserver.cpp:295 (SyslogLogger) - Added syslogging
2017-06-02 12:18:45.014952 N [2411/2411] thread_unknown mythdirs.cpp:192 (InitializeMythDirs) - Using runtime prefix = /usr
2017-06-02 12:18:45.014967 N [2411/2411] thread_unknown mythdirs.cpp:194 (InitializeMythDirs) - Using configuration directory = /home/maff/.mythtv
2017-06-02 12:18:45.015130 I [2411/2411] CoreContext mythcorecontext.cpp:266 (Init) - Assumed character encoding: en_GB.UTF-8
2017-06-02 12:18:45.015674 N [2411/2411] CoreContext mythcontext.cpp:505 (LoadDatabaseSettings) - Empty LocalHostName.
2017-06-02 12:18:45.015685 I [2411/2411] CoreContext mythcontext.cpp:513 (LoadDatabaseSettings) - Using localhost value of MYTHTV
2017-06-02 12:18:45.033950 N [2411/2411] CoreContext mythcorecontext.cpp:1670 (InitLocale) - Setting QT default locale to en_GB
2017-06-02 12:18:45.033970 I [2411/2411] CoreContext mythcorecontext.cpp:1703 (SaveLocaleDefaults) - Current locale en_GB
2017-06-02 12:18:45.034047 N [2411/2411] CoreContext mythlocale.cpp:123 (LoadDefaultsFromXML) - Reading locale defaults from /usr/share/mythtv//locales/en_gb.xml
2017-06-02 12:18:45.059327 I [2411/2420] SystemIOHandlerW mythsystemunix.cpp:92 (run) - Starting IO manager (write)
2017-06-02 12:18:45.059448 I [2411/2419] SystemIOHandlerR mythsystemunix.cpp:92 (run) - Starting IO manager (read)
2017-06-02 12:18:45.059550 I [2411/2418] SystemSignalManager mythsystemunix.cpp:509 (run) - Starting process signal handler
2017-06-02 12:18:45.059672 I [2411/2417] SystemManager mythsystemunix.cpp:276 (run) - Starting process manager
2017-06-02 12:18:45.109847 I [2411/2411] CoreContext screensaver-x11.cpp:51 (ScreenSaverX11Private) - ScreenSaverX11Private: XScreenSaver support enabled
2017-06-02 12:18:45.112773 I [2411/2411] CoreContext screensaver-x11.cpp:82 (ScreenSaverX11Private) - ScreenSaverX11Private: DPMS is disabled.
2017-06-02 12:18:45.174533 E [2411/2411] CoreContext mythxdisplay.cpp:191 (GetRefreshRate) - X11 ModeLine query returned zeroes
2017-06-02 12:18:45.174802 N [2411/2411] CoreContext DisplayRes.cpp:64 (Initialize) - Desktop video mode: 1024x768 60.000 Hz
2017-06-02 12:18:45.206964 I [2411/2411] CoreContext mythtranslation.cpp:73 (load) - Loading en_gb translation for module mythfrontend
2017-06-02 12:18:45.208088 E [2411/2411] CoreContext lirc.cpp:208 (Init) - LIRC: Failed to connect to Unix socket '/var/run/lirc/lircd'
			eno: No such file or directory (2)
2017-06-02 12:18:45.208135 I [2411/2411] CoreContext jsmenu.cpp:153 (ReadConfig) - No joystick configuration found, not enabling joystick control
2017-06-02 12:18:45.220440 E [2411/2411] CoreContext cecadapter.cpp:150 (Open) - CECAdapter: Failed to load libcec.
2017-06-02 12:18:45.220487 I [2411/2411] CoreContext mythudplistener.cpp:32 (Enable) - UDPListener: Enabling
2017-06-02 12:18:45.224381 I [2411/2411] CoreContext serverpool.cpp:508 (bind) - Binding to UDP 127.0.0.1:6948
2017-06-02 12:18:45.224437 I [2411/2411] CoreContext serverpool.cpp:508 (bind) - Binding to UDP 192.168.0.200:6948
2017-06-02 12:18:45.224482 I [2411/2411] CoreContext serverpool.cpp:508 (bind) - Binding to UDP [::1]:6948
2017-06-02 12:18:45.224568 I [2411/2411] CoreContext serverpool.cpp:508 (bind) - Binding to UDP [fe80::74f6:8f90:ff8a:2bc5%enp0s7]:6948
2017-06-02 12:18:45.224624 I [2411/2411] CoreContext serverpool.cpp:508 (bind) - Binding to UDP 192.168.0.255:6948
2017-06-02 12:18:45.268511 I [2411/2411] CoreContext mythmainwindow.cpp:1041 (Init) - Using Frameless Window
2017-06-02 12:18:45.268523 I [2411/2411] CoreContext mythmainwindow.cpp:1052 (Init) - Using Full Screen Window
2017-06-02 12:18:45.344745 I [2411/2411] CoreContext mythmainwindow.cpp:1079 (Init) - UI Screen Resolution: 1024 x 768
2017-06-02 12:18:45.480588 I [2411/2411] CoreContext mythmainwindow.cpp:1185 (Init) - Using the Qt painter
2017-06-02 12:18:45.908764 I [2411/2411] CoreContext mythuiwebbrowser.cpp:1090 (LoadUserStyleSheet) - MythUIWebBrowser: Loading css from - file:///usr/share/mythtv/themes/default/htmls/mythbrowser.css
2017-06-02 12:18:45.912695 I [2411/2411] CoreContext mythuiwebbrowser.cpp:997 (Init) - MythUIWebBrowser: enabling plugins
2017-06-02 12:18:45.991648 I [2411/2411] CoreContext schemawizard.cpp:120 (Compare) - Current MythTV Schema Version (DBSchemaVer): 1344
2017-06-02 12:20:04.008527 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:04.010962 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:04.011015 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:04.011093 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:04.011138 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:04.011182 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:05.015404 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:06.018381 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:07.020902 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:08.024325 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:09.025800 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:10.028263 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:11.031809 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:12.035691 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:13.039827 E [2411/2442] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-02 12:20:13.921647 I [2411/2411] CoreContext channelscan/channelimporter.cpp:44 (Process) - ChanImport: No channels to process..
Well it's different, mean anythign to anyone?
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: TBS-5520SE Tuning Issue

Post by paulh »

Complete guess but could be a permissions problem?

Often the user the backend runs as (possibly mythtv) has to be a member of the video group to be allowed to access the dvb card.
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: TBS-5520SE Tuning Issue

Post by bill6502 »

Another complete guess, make sure no other program is accessing the tuner
at the same time. That includes mythbackend.
MikeB2013
Senior
Posts: 519
Joined: Mon Jul 25, 2016 4:16 pm
Great Britain

Re: TBS-5520SE Tuning Issue

Post by MikeB2013 »

Yet another guess:
In the past I have found empty channel scans were caused by Satellite Settings not having LNB set in mythtv-setup for the Capture Card.

Before using mythtv-setup I always make sure mythbackend is stopped using sudo systemctl stop mythtv-backend.service

I presume you have installed the latest TBS open source drivers for the 5520SE (there have been some recent changes) see https://github.com/tbsdtv/linux_media/wiki

The output from dmesg | grep -i frontend will show what dvb adapters and frontends are recognised by the operating system.

Mike
maff
Junior
Posts: 24
Joined: Wed Dec 07, 2016 9:50 pm
Great Britain

Re: TBS-5520SE Tuning Issue

Post by maff »

Hi all, thanks for the suggestions.

The user maff (me!) is running the mythtv-setup and is a member of the video group.

ps -ef confirms

Code: Select all

maff      2791  2204  0 19:43 pts/1    00:00:00 /bin/sh /usr/bin/mythtv-setup --logpath /tmp
maff      2811  2791  0 19:43 pts/1    00:00:00 xterm -title MythTV Setup Terminal -e taskset -c 0 /usr/bin/mythtv-setup.real --syslog local7 --logpath /tmp
maff      2812  2811 20 19:43 pts/2    00:00:01 /usr/bin/mythtv-setup.real --syslog local7 --logpath /tmp
maff      2838  1748  0 19:43 pts/0    00:00:00 ps -ef
Yup definitely shut down mythbackend with sudo systemctl stop mythtv-backend.service

ls /dev/dvb/adapter0/ -l shows

Code: Select all

total 0
crw-rw----+ 1 root video 212, 0 Jun  3 19:32 demux0
crw-rw----+ 1 root video 212, 1 Jun  3 19:32 dvr0
crw-rw----+ 1 root video 212, 3 Jun  3 19:32 frontend0
crw-rw----+ 1 root video 212, 4 Jun  3 19:32 frontend1
crw-rw----+ 1 root video 212, 2 Jun  3 19:32 net0
root as the owner video as the group with rw

maff is also a member of the mythtv group

starting the backend ps -ef reveals it is running as user mythtv

Code: Select all

groups mythtv
mythtv : mythtv dialout cdrom audio video
so that looks good.

Definitely have a an LNB defined (universal) tried default and western Europe.

And finally there was indeed an update specific to the 5520SE on the https://github.com/tbsdtv/linux_media/wiki in the last couple of days, so i updated and reinstalled the TBS drivers. but unfortunately, same result.

Code: Select all

2017-06-03 19:50:57.547498 I [2945/2945] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Interrupt handler
2017-06-03 19:50:57.547528 I [2945/2945] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Terminated handler
2017-06-03 19:50:57.547540 I [2945/2945] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Segmentation fault handler
2017-06-03 19:50:57.547549 I [2945/2945] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Aborted handler
2017-06-03 19:50:57.547560 I [2945/2945] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Bus error handler
2017-06-03 19:50:57.547568 I [2945/2945] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Floating point exception handler
2017-06-03 19:50:57.547578 I [2945/2945] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Illegal instruction handler
2017-06-03 19:50:57.547589 I [2945/2945] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Real-time signal 0 handler
2017-06-03 19:50:57.547602 I [2945/2945] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Hangup handler
2017-06-03 19:50:57.547748 C [2945/2945] thread_unknown mythcommandlineparser.cpp:2599 (ConfigureLogging) - mythtv-setup version: fixes/0.28 [v0.28.1-26-g2d42863] www.mythtv.org
2017-06-03 19:50:57.547756 C [2945/2945] thread_unknown mythcommandlineparser.cpp:2601 (ConfigureLogging) - Qt version: compile: 5.5.1, runtime: 5.5.1
2017-06-03 19:50:57.547765 N [2945/2945] thread_unknown mythcommandlineparser.cpp:2603 (ConfigureLogging) - Enabled verbose msgs:  general
2017-06-03 19:50:57.547852 N [2945/2945] thread_unknown logging.cpp:920 (logStart) - Setting Log Level to LOG_INFO
2017-06-03 19:50:57.559729 I [2945/2949] Logger logging.cpp:313 (run) - Added logging to the console
2017-06-03 19:50:57.660368 I [2945/2948] LogForward loggingserver.cpp:142 (FileLogger) - Added logging to /tmp/mythtv-setup.20170603185057.2945.log
2017-06-03 19:50:57.660425 I [2945/2948] LogForward loggingserver.cpp:295 (SyslogLogger) - Added syslogging
2017-06-03 19:50:57.783488 N [2945/2945] thread_unknown mythdirs.cpp:192 (InitializeMythDirs) - Using runtime prefix = /usr
2017-06-03 19:50:57.783512 N [2945/2945] thread_unknown mythdirs.cpp:194 (InitializeMythDirs) - Using configuration directory = /home/maff/.mythtv
2017-06-03 19:50:57.783747 I [2945/2945] CoreContext mythcorecontext.cpp:266 (Init) - Assumed character encoding: en_GB.UTF-8
2017-06-03 19:50:57.784817 N [2945/2945] CoreContext mythcontext.cpp:505 (LoadDatabaseSettings) - Empty LocalHostName.
2017-06-03 19:50:57.784837 I [2945/2945] CoreContext mythcontext.cpp:513 (LoadDatabaseSettings) - Using localhost value of MYTHTV
2017-06-03 19:50:57.817378 N [2945/2945] CoreContext mythcorecontext.cpp:1670 (InitLocale) - Setting QT default locale to en_GB
2017-06-03 19:50:57.817411 I [2945/2945] CoreContext mythcorecontext.cpp:1703 (SaveLocaleDefaults) - Current locale en_GB
2017-06-03 19:50:57.817557 N [2945/2945] CoreContext mythlocale.cpp:123 (LoadDefaultsFromXML) - Reading locale defaults from /usr/share/mythtv//locales/en_gb.xml
2017-06-03 19:50:57.854043 I [2945/2954] SystemIOHandlerW mythsystemunix.cpp:92 (run) - Starting IO manager (write)
2017-06-03 19:50:57.854178 I [2945/2952] SystemSignalManager mythsystemunix.cpp:509 (run) - Starting process signal handler
2017-06-03 19:50:57.856694 I [2945/2953] SystemIOHandlerR mythsystemunix.cpp:92 (run) - Starting IO manager (read)
2017-06-03 19:50:57.860432 I [2945/2951] SystemManager mythsystemunix.cpp:276 (run) - Starting process manager
2017-06-03 19:50:57.904453 I [2945/2945] CoreContext screensaver-x11.cpp:51 (ScreenSaverX11Private) - ScreenSaverX11Private: XScreenSaver support enabled
2017-06-03 19:50:57.905362 I [2945/2945] CoreContext screensaver-x11.cpp:82 (ScreenSaverX11Private) - ScreenSaverX11Private: DPMS is disabled.
2017-06-03 19:50:57.957353 E [2945/2945] CoreContext mythxdisplay.cpp:191 (GetRefreshRate) - X11 ModeLine query returned zeroes
2017-06-03 19:50:57.957595 N [2945/2945] CoreContext DisplayRes.cpp:64 (Initialize) - Desktop video mode: 1024x768 60.000 Hz
2017-06-03 19:50:57.987700 I [2945/2945] CoreContext mythtranslation.cpp:73 (load) - Loading en_gb translation for module mythfrontend
2017-06-03 19:50:57.988350 E [2945/2945] CoreContext lirc.cpp:208 (Init) - LIRC: Failed to connect to Unix socket '/var/run/lirc/lircd'
			eno: No such file or directory (2)
2017-06-03 19:50:57.988392 I [2945/2945] CoreContext jsmenu.cpp:153 (ReadConfig) - No joystick configuration found, not enabling joystick control
2017-06-03 19:50:58.003369 E [2945/2945] CoreContext cecadapter.cpp:150 (Open) - CECAdapter: Failed to load libcec.
2017-06-03 19:50:58.003416 I [2945/2945] CoreContext mythudplistener.cpp:32 (Enable) - UDPListener: Enabling
2017-06-03 19:50:58.008198 I [2945/2945] CoreContext serverpool.cpp:508 (bind) - Binding to UDP 127.0.0.1:6948
2017-06-03 19:50:58.008252 I [2945/2945] CoreContext serverpool.cpp:508 (bind) - Binding to UDP 192.168.0.200:6948
2017-06-03 19:50:58.008297 I [2945/2945] CoreContext serverpool.cpp:508 (bind) - Binding to UDP [::1]:6948
2017-06-03 19:50:58.008385 I [2945/2945] CoreContext serverpool.cpp:508 (bind) - Binding to UDP [fe80::74f6:8f90:ff8a:2bc5%enp0s7]:6948
2017-06-03 19:50:58.008436 I [2945/2945] CoreContext serverpool.cpp:508 (bind) - Binding to UDP 192.168.0.255:6948
2017-06-03 19:50:58.057541 I [2945/2945] CoreContext mythmainwindow.cpp:1041 (Init) - Using Frameless Window
2017-06-03 19:50:58.057550 I [2945/2945] CoreContext mythmainwindow.cpp:1052 (Init) - Using Full Screen Window
2017-06-03 19:50:58.136925 I [2945/2945] CoreContext mythmainwindow.cpp:1079 (Init) - UI Screen Resolution: 1024 x 768
2017-06-03 19:50:58.270931 I [2945/2945] CoreContext mythmainwindow.cpp:1185 (Init) - Using the Qt painter
2017-06-03 19:50:58.685303 I [2945/2945] CoreContext mythuiwebbrowser.cpp:1090 (LoadUserStyleSheet) - MythUIWebBrowser: Loading css from - file:///usr/share/mythtv/themes/default/htmls/mythbrowser.css
2017-06-03 19:50:58.688126 I [2945/2945] CoreContext mythuiwebbrowser.cpp:997 (Init) - MythUIWebBrowser: enabling plugins
2017-06-03 19:50:58.756302 I [2945/2945] CoreContext schemawizard.cpp:120 (Compare) - Current MythTV Schema Version (DBSchemaVer): 1344
2017-06-03 19:51:37.105939 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:37.106012 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:37.106054 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:37.106089 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:37.106125 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:37.106162 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:38.110280 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:39.111573 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:40.115097 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:41.117254 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:42.121526 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:43.125418 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:44.129360 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:45.133609 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:46.137735 E [2945/2988] DVBRead recorders/dvbstreamhandler.cpp:617 (Open) - PIDInfo(/dev/dvb/adapter0/frontend1): Failed to open demux device /dev/dvb/adapter0/demux1 for filter on pid 0x0
2017-06-03 19:51:47.017005 I [2945/2945] CoreContext channelscan/channelimporter.cpp:44 (Process) - ChanImport: No channels to process..
finally dmesg | grep -i frontend gives

Code: Select all

                00c1eb060dd39aa20b29140ebd6efa3b9c48840e tbs5520se: Fix frontend names.
                00c1eb060dd39aa20b29140ebd6efa3b9c48840e tbs5520se: Fix frontend names.
[   25.421787] usb 1-1: DVB: registering adapter 0 frontend 0 (TurboSight TBS 5520SE DVB-T/T2/C/C2/ISDB-T)...
[   25.421895] usb 1-1: DVB: registering adapter 0 frontend 1 (TurboSight TBS 5520SE DVB-S/S2/S2X)...
I have also created an initial transports list with w_scan and imported it into ME TV and it works a treat finds a bunch of channels and I can watch them fine, so it is specific to mythtv, either some incompatibility or more likely something I have set up incorrectly.

I've also tried running sudo mythtv-setup as a way of ensuring permissions access but that too failed.

I appreciate the efforts! Anything I've posted above revealing?

I'll also try a post over at the TBS forums if they ever authorise my account.

Cheers again.
maff
Junior
Posts: 24
Joined: Wed Dec 07, 2016 9:50 pm
Great Britain

Re: TBS-5520SE Tuning Issue

Post by maff »

There is a mythtv-setup -v all here http://kardiak.co.uk/mythtv-setup.log

But i don't think it's massively revealing.
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: TBS-5520SE Tuning Issue

Post by bill6502 »

Probably my parting shot, since I don't have that tuner or LNB, but do
see the failures are "only" doing an open() or ioctl() on the devices:

Code: Select all

sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
(looking for something other than the backend using the tuner)
maff
Junior
Posts: 24
Joined: Wed Dec 07, 2016 9:50 pm
Great Britain

Re: TBS-5520SE Tuning Issue

Post by maff »

Cheers for trying, I'm sure theres nothing using the device unless there should be:

Code: Select all


---- here i start the backend

maff@MYTHTV:~$ sudo systemctl start mythtv-backend.service                                                                            d1
maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
COMMAND    PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
mythbacke 9149 mythtv   10u   CHR  212,4      0t0  417 /dev/dvb/adapter0/frontend1

---- here i stop the backend

maff@MYTHTV:~$ sudo systemctl stop mythtv-backend.service
maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]

--- here i started mythtv-setup from another terminal and do a channel scan

maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
mythtv-se 9222 maff   39u   CHR  212,4      0t0  417 /dev/dvb/adapter0/frontend1
maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
mythtv-se 9222 maff   39u   CHR  212,4      0t0  417 /dev/dvb/adapter0/frontend1
maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
mythtv-se 9222 maff   39u   CHR  212,4      0t0  417 /dev/dvb/adapter0/frontend1
maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
mythtv-se 9222 maff   39u   CHR  212,4      0t0  417 /dev/dvb/adapter0/frontend1
maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
mythtv-se 9222 maff   39u   CHR  212,4      0t0  417 /dev/dvb/adapter0/frontend1
maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
mythtv-se 9222 maff   39u   CHR  212,4      0t0  417 /dev/dvb/adapter0/frontend1
maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
mythtv-se 9222 maff   39u   CHR  212,4      0t0  417 /dev/dvb/adapter0/frontend1
maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
mythtv-se 9222 maff   39u   CHR  212,4      0t0  417 /dev/dvb/adapter0/frontend1
maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
mythtv-se 9222 maff   39u   CHR  212,4      0t0  417 /dev/dvb/adapter0/frontend1
maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
mythtv-se 9222 maff   39u   CHR  212,4      0t0  417 /dev/dvb/adapter0/frontend1

---- here the channel scan reports failed

maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
As far as I can tell, it's happily opening and closing the device, it just won't scan. :?

Guess it's time to compare some mythtv code with w_scan and mw-tv's code... I may be some time :/
maff
Junior
Posts: 24
Joined: Wed Dec 07, 2016 9:50 pm
Great Britain

Re: TBS-5520SE Tuning Issue

Post by maff »

Actually, now I think that through more, it's opening and closing frontend, but I never see demux listed.... a clue!

and when I run w_scan -fs -s S28E2

and check it in a second terminal:

Code: Select all

maff@MYTHTV:~$ sudo lsof /dev/dvb/adapter[0-9]/{demux,frontend}[0-9]
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
w_scan  9422 maff    3u   CHR  212,4      0t0  417 /dev/dvb/adapter0/frontend1
w_scan  9422 maff    4u   CHR  212,0      0t0  403 /dev/dvb/adapter0/demux0
both of em.... interesting.
maff
Junior
Posts: 24
Joined: Wed Dec 07, 2016 9:50 pm
Great Britain

Re: TBS-5520SE Tuning Issue

Post by maff »

Got it, bug in myth (i think).

Mythtv is trying to open:

Failed to open demux device /dev/dvb/adapter0/demux1

Which doesn't exist, I only have demux0.

other programs open demux0.

w_scan 9422 maff 4u CHR 212,0 0t0 403 /dev/dvb/adapter0/demux0

At a guess i'd say the code in myth incorrectly assumes as its frontend1 rather than frontend0 it should use demux1 rather than demux0

the line that fails is

recorders/dvbstreamhandler.cpp:617

Code: Select all

int mux_fd = open(demux_ba.constData(), O_RDWR | O_NONBLOCK);
although i suspect it's the contents of demux_ba thats foo-ed.

cheers bill6502 that lead me right to it :)
MikeB2013
Senior
Posts: 519
Joined: Mon Jul 25, 2016 4:16 pm
Great Britain

Re: TBS-5520SE Tuning Issue

Post by MikeB2013 »

I think you might have a similar issue to an Astrometa USB (DVB-T2) device which has two frontends, but only one demux, which means only one of the frontends can be used at any one time.

You could try swapping the frontends see viewtopic.php?t=1582

You need to stop mythbackend before doing this. Putting the command in rc.local did work for me.

Mike
maff
Junior
Posts: 24
Joined: Wed Dec 07, 2016 9:50 pm
Great Britain

Re: TBS-5520SE Tuning Issue

Post by maff »

Cheers Mike,

Exactly the same issue and renaming the frontends solved the problem. I can now happily scan.

Thanks for all the help everyone,much appreciated.

I have submitted a ticket #13052 as the rename is only a workaround and it should be possible to use both the T2 and S2 (frontend0 and frontend1) of the device at the same time without issue.
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: TBS-5520SE Tuning Issue

Post by paulh »

I could be wrong but as Mike suggests because it only appears to have one demuxer you can only use one of the frontends at the same time.

You used to be able to setup input groups to allow this sort of config to work and Myth was smart enough to know you could only use one of the tuners at the same time but David's rewrite of card/inputs may have broken a few things like this. He has been asking for input to fix any issues though.
maff
Junior
Posts: 24
Joined: Wed Dec 07, 2016 9:50 pm
Great Britain

Re: TBS-5520SE Tuning Issue

Post by maff »

Ahh yes sorry.

You can only watch/record from T2 or S2 not both at the same time due to the single demux, but I would have thought you should be able to define and set both up in MythTV at the same time, without resorting to renaming devices between uses.
Post Reply