OpenELEC Forum
TVheadend start before loading DVB devices - Printable Version

+- OpenELEC Forum (https://forum.openelec.tv)
+-- Forum: Generic Forum (https://forum.openelec.tv/forumdisplay.php?fid=5)
+--- Forum: PVR + LIVE TV (https://forum.openelec.tv/forumdisplay.php?fid=38)
+--- Thread: TVheadend start before loading DVB devices (/showthread.php?tid=28770)

Pages: 1 2 3


TVheadend start before loading DVB devices - MAREL - 03-20-2012

Hi,

I have problem with TVheadend. It doesn't detect dvb adapters because DVB drivers will load after TVheadend has been started. I have to kill TVheadend. Then it will restart automatically and find all dvb devices.

I use Gujs latest GIT build with HTS-TVheadend 2.0.7 service addon. What can I do?

Here are dmesg and messages logs:
[attachment=657]dmesg.txt[/attachment]
[attachment=658]messages.txt[/attachment]

BR, Mike


Re: TVheadend start before loading DVB devices - ultraman - 03-20-2012

One (ugly) workaround would be to make a file
Code:
/storage/.xbmc/addons/driver.dvb.delay-only/bin/userspace-driver.sh
with some delay inside (you must get exact value by few tests)
Code:
#!/bin/sh
sleep 25

Complete instruction in SSH console:
Code:
mkdir -p /storage/.xbmc/addons/driver.dvb.delay-only/bin

cat >/storage/.xbmc/addons/driver.dvb.delay-only/bin/userspace-driver.sh << MYDATA
#!/bin/sh
sleep 25
MYDATA

chmod +x /storage/.xbmc/addons/driver.dvb.delay-only/bin/userspace-driver.sh

And please post again complete messages so I can tell you exactly how much delay must be
Code:
cat /var/log/messages | paste

Until someone get better solution...


Re: TVheadend start before loading DVB devices - MAREL - 03-20-2012

Thank you very much! That seems to work. 25 secs is good value for me (after 23 secs it detects one adapter only). But I've to increase timeout of HTSP client to 40 seconds.

Now after OpenELEC startup screen I've to wait about 30 seconds with LiveTV. Do you have an idea why dvb driver is loaded so late?

BTW: My messages log is full with transponder transfer data.


Re: TVheadend start before loading DVB devices - ultraman - 03-20-2012

Seems the firmware file dvb-fe-ds3103.fw is missing in OE.
Can you try to find it?
Code:
find /lib/ -name dvb-fe-ds3103.fw
But there is no indication of missing this file in dmesg.


Re: TVheadend start before loading DVB devices - MAREL - 03-20-2012

Firmware does exist (/lib/firmware/dvb-fe-ds3103.fw). Hmm.. I will do some tests with another OS.


Re: TVheadend start before loading DVB devices - MrTrigger - 03-23-2012

I have the exact same problem, using TBS6981 dual dvb-s2 card. I'm very interested in a slick solution for this, keep up the good work.


Re: TVheadend start before loading DVB devices - MAREL - 03-23-2012

I've tested dvb cards at Debian Squeeze 64-bit with kernel 3.2.10 and 3.3 and it does initialize dvb cards without delay. It seems openelec problem only.

@MrTrigger: Which build OE project (Generic, Fusion, ION, etc.) and architecture do you use? Currently I tested Fusion x86_64 only.


Re: TVheadend start before loading DVB devices - MrTrigger - 03-23-2012

I'm using Fusion x86 built from latest source with the only modification that I add the drivers for the TBS6981 card.

For some reason the addon library was empty when I tested x86_64 version so I resorted to plain x86 for now. I figured the addons didn't support 64-bit yet but if you have everything working (well, almost everything) on 64 I might try that again.


Re: TVheadend start before loading DVB devices - MrTrigger - 03-26-2012

Is this fix related to this problem?
https://github.com/OpenELEC/OpenELEC.tv/pull/366

If so, all I need to do to fix this is to set the line below in settings.xml, correct?
<setting id="WAIT_FOR_FEINIT" value="true" />


Re: TVheadend start before loading DVB devices - ultraman - 03-26-2012

There is also some code in tvheadend start script.