DVBLink TV Server doesn't work after standby

DVBLink TV Server for Ubuntu linux is discussed here!

DVBLink TV Server doesn't work after standby

Postby 26196008 » Sat Sep 05, 2015 5:14 pm

DVBLink TV Server doesn't work after standby

Hello together,

I installed the DVBLink Server 5.5.0 + DVBLink TVSource 5.5.0 on Ubuntu 15.04 64bit.
I'm using Kodi 15.1 as Client.

After resume from standby I get the message "Sorry, cannot display this channel either because there is a technical problem or no TV signal.

My TV-Card is available after the resume:
Code: Select all
dmesg | grep DVB
[    4.998163] ngene: Found Linux4Media cineS2 DVB-S2 Twin Tuner (v5)
[    5.386035] DVB: registering new adapter (nGene)
[    5.386039] ngene 0000:04:00.0: DVB: registering adapter 0 frontend 0 (STV090x Multistandard)...
[    5.429141] DVB: registering new adapter (nGene)
[    5.429148] ngene 0000:04:00.0: DVB: registering adapter 1 frontend 0 (STV090x Multistandard)...


Attached are my logfiles

Does somebody have an Idea?

Thanks in advance.
Marc
Attachments
dvblink-log-20150905-1808.zip
Standbytime 05.09.2015 18:03
Resumetime 05.09.2015 18:05
(31.91 KiB) Downloaded 94 times
26196008
 
Posts: 7
Joined: Tue Mar 31, 2015 7:40 am


Re: DVBLink TV Server doesn't work after standby

Postby the_man » Mon Sep 07, 2015 4:31 pm

I can't say exactly, just some thoughts:
- it can be because of dvblink server wakes up earlier than tuner
- or you have occasional driver issue , related to the following strings at dmesg output:
Code: Select all
[  210.257893] ngene: Command timeout cmd=03 prev=03
[  210.257902] host_to_ngene (c000): ee 79 d5 96 7e 86 b4 66
[  210.257906] ngene_to_host (c100): 01 98 99 fe fd 66 37 ec
[  210.257909] dev->hosttongene (ffff8800d84df000): 03 05 d0 f1 b6 01 00 00
[  210.257912] dev->ngenetohost (ffff8800d84df100): 00 00 00 00 00 00 00 00
[  212.256399] ngene: Command timeout cmd=04 prev=03...
NETGEAR RNDU2000; Synology DS112j, DS 212j, DS213+, DS 712+; Western Digital WD ex2; Asustor AS3, RPI2 ...
PCTV 460,461e,292e; TT 4400, 4650CI;DVBSKy S960; DD octopus net; Inverto sat2ip multibox; TBS DVB-C ...
the_man
 
Posts: 4696
Joined: Mon Dec 02, 2013 1:11 pm

Re: DVBLink TV Server doesn't work after standby

Postby 26196008 » Sat Sep 12, 2015 6:58 pm

Hi,

I investigate the problem a little bit more.

I realized, that the script /etc/pm/sleep.d/99_customSupend isn't executed in ubuntu 15.04.

So I changed my script to a systemd service.

As you can see below, now the driver are unloaded and loaded successfully

Code: Select all
journalctl -eu root-DVBLink.service | grep DVBSuspend
Sep 11 21:07:00 schneckenkodi DVBSuspend[3698]: Execute DVBSuspend stop
Sep 11 21:07:00 schneckenkodi DVBSuspend[3698]: Start suspend
Sep 11 21:07:00 schneckenkodi DVBSuspend[3698]: Stoppe DVBLink
Sep 11 21:07:05 schneckenkodi DVBSuspend[3698]: Ergebnis: 0
Sep 11 21:07:05 schneckenkodi DVBSuspend[3698]: Entlade Treiber der TV-Karte
Sep 11 21:07:05 schneckenkodi DVBSuspend[3698]: 1. Versuch
Sep 11 21:07:06 schneckenkodi DVBSuspend[3698]: Ergebnis: 0
Sep 11 21:07:06 schneckenkodi DVBSuspend[3698]: Ende suspend
Sep 11 21:07:25 schneckenkodi DVBSuspend[3726]: Execute DVBSuspend start
Sep 11 21:07:25 schneckenkodi DVBSuspend[3726]: start resuming
Sep 11 21:07:25 schneckenkodi DVBSuspend[3726]: Server gefunden: 1
Sep 11 21:07:25 schneckenkodi DVBSuspend[3726]: ps -aux | grep -v grep | grep dvblink_server:
Sep 11 21:07:25 schneckenkodi DVBSuspend[3726]: Lade Treiber der TV-Karte
Sep 11 21:07:25 schneckenkodi DVBSuspend[3726]: insmod /lib/modules/3.19.0-28-generic/kernel/drivers/media/dvb-core/dvb-core.ko
Sep 11 21:07:25 schneckenkodi DVBSuspend[3726]: insmod /lib/modules/3.19.0-28-generic/kernel/drivers/staging/media/cxd2099/cxd2099.ko
Sep 11 21:07:25 schneckenkodi DVBSuspend[3726]: insmod /lib/modules/3.19.0-28-generic/kernel/drivers/media/pci/ngene/ngene.ko cxd2099 dvb_core
Sep 11 21:07:25 schneckenkodi DVBSuspend[3726]: Ergebnis: 0
Sep 11 21:07:25 schneckenkodi DVBSuspend[3726]: Netzwerk prüfen
Sep 11 21:07:25 schneckenkodi DVBSuspend[3726]: Auf Netzwerk warten
Sep 11 21:07:26 schneckenkodi DVBSuspend[3726]: Auf Netzwerk warten
Sep 11 21:07:27 schneckenkodi DVBSuspend[3726]: Auf Netzwerk warten
Sep 11 21:07:28 schneckenkodi DVBSuspend[3726]: Auf Netzwerk warten
Sep 11 21:07:29 schneckenkodi DVBSuspend[3726]: Auf Netzwerk warten
Sep 11 21:08:01 schneckenkodi DVBSuspend[3726]: Starte DVBLink Server
Sep 11 21:08:01 schneckenkodi DVBSuspend[3726]: 1. Versuch
Sep 11 21:08:01 schneckenkodi DVBSuspend[3726]: start_TVSource.sh
Sep 11 21:08:03 schneckenkodi DVBSuspend[3726]: Ergebnis: 0
Sep 11 21:08:03 schneckenkodi DVBSuspend[3726]: ps -aux | grep -v grep | grep dvblink_server: root      4162  4.0  0.6 1343544 25616 ?       Ssl  21:08   0:00 /usr/local/bin/dvblink/dvblink_server
Sep 11 21:08:03 schneckenkodi DVBSuspend[3726]: Ende resuming


But now I have the Problem, that the DVBLink Server is starting and stopping immediately after the start.

Attached are the logfiles from the server.

As you can see above, I'm waiting for the Network before starting the DVBLink Server.

Any Idea?

Regards,
Marc
Attachments
dvblink-log-20150912-1955.zip
(57.41 KiB) Downloaded 92 times
26196008
 
Posts: 7
Joined: Tue Mar 31, 2015 7:40 am

Re: DVBLink TV Server doesn't work after standby

Postby the_man » Sat Sep 12, 2015 7:11 pm

Try to start dvblink server in command line mode, by starting ./start.sh script at dvblink installation. Maybe there will be a bit more information about your issue.
NETGEAR RNDU2000; Synology DS112j, DS 212j, DS213+, DS 712+; Western Digital WD ex2; Asustor AS3, RPI2 ...
PCTV 460,461e,292e; TT 4400, 4650CI;DVBSKy S960; DD octopus net; Inverto sat2ip multibox; TBS DVB-C ...
the_man
 
Posts: 4696
Joined: Mon Dec 02, 2013 1:11 pm

Re: DVBLink TV Server doesn't work after standby

Postby 26196008 » Mon Sep 14, 2015 7:25 pm

Hi,

with the ./start.sh script it works.

Here are my systemd scripts:
### suspend-DVBLink.service
Code: Select all
[Unit]
Description=DVBLink on suspend
DefaultDependencies=no
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=simple
ExecStartPre=/usr/bin/xbmc-send -a "Notification(Standby,Die Wiedergabe wird gestoppt.)" ; /usr/bin/xbmc-send -a "PlayerControl(stop)" ; /usr/local/bin/dvblink/stop.sh
ExecStart=/sbin/modprobe -rf ngene cxd2099 dvb_core
TimeoutSec=60s

[Install]
WantedBy=sleep.target


### resume-DVBLink.service
Code: Select all
[Unit]
Description=DVBLink on resume
DefaultDependencies=no
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStop=/sbin/modprobe -v ngene cxd2099 dvb_core
ExecStopPost=/usr/local/bin/dvblink/start.sh
TimeoutSec=0

[Install]
WantedBy=sleep.target


Know I have the next Problem, the HTPC doesn't wake up for recordings. I will try to find a solution in the Forum.

I changed already the /etc/Default/rcS --> UTC=yes

Thanks for your help!
Marc
26196008
 
Posts: 7
Joined: Tue Mar 31, 2015 7:40 am


Return to DVBLink TV server for Ubuntu linux

Who is online

Users browsing this forum: No registered users and 1 guest