Bug [RPi] Unable to start TV after cold boot or left idle for a while
#1
I'm having an issue with TV (tvheadend client/service and USB tuner all on the RPi) sometimes being unable to start after a cold boot or working at one point but then when I come back after leaving it idle for some time, it no longer works. I've reported it in the OpenElec Rbej build thread, which is what I'm using (Gotham), just in case there's something in that which is partly responsible http://forum.xbmc.org/showthread.php?tid...pid1505785

This log is after I unplugged both the RPi and the Hub PSU again, then plugged in the Hub first, then the RPi. After booting, it shows an error about "TVHeadend HTSP Client - No hardware" or something and repeats that three times before it starts loading the EPG data. After that finished, I went to the EPG and was able to start TV OK. http://xbmclogs.com/show.php?id=58121

Unfortunately I don't have the previous log from where I plugged the RPi in first, then the Hub and it went through the same process but I got an error when trying to start TV from the EPG, as I tried to poweroff but it restarted XBMC instead, so I pulled the plug and restarted as above, so the previous log is empty.

I'll try and get a log where the problem appears for you ASAP.
Reply
#2
tvheadend must be started after the tuner has initialized itself, otherwise it won't work until you restart it. You can add a startup delay by changing the TVH_DELAY value in /etc/default/tvheadend.

Your problem could also be completely unrelated to this, but it's worth a shot.
Reply
#3
(2013-09-13, 20:46)negge Wrote: tvheadend must be started after the tuner has initialized itself, otherwise it won't work until you restart it. You can add a startup delay by changing the TVH_DELAY value in /etc/default/tvheadend.

Your problem could also be completely unrelated to this, but it's worth a shot.

Thanks, that could well be the problem so I'll try that.

I don't seem to have /etc/default let alone tvheadend in it though and find -name tvheadend only finds the program file in /storage/.xbmc/addons/service.multimedia.tvheadend/bin/
Reply
#4
Sorry, forgot you were using OpenELEC. I'm not exactly sure where it stores its configuration files, you'd have to look that one up.
Reply
#5
I'm still having problems with my tuner/tvheadend.

It was working fine when I used it last night, from a cold boot and had done so for several days before, with me plugging in the hub and usb tuner first, then the RPi.

This morning, I got the error again when trying to start TV, so I unplugged everything, took the USB tuner out of the hub in case it needed to discharge and plugged it back in, re-powered the hub then the RPi and still had the same problem http://xbmclogs.com/show.php?id=61346

So I shutdown again, moved the USB tuner to a different port on the hub, which has helped before for some reason, re-powered and this time I didn't get the error but TV didn't start either and when I selected the same channel and tried to start it again, XBMC locked up completely. http://xbmclogs.com/show.php?id=61348

EDIT: After a further reboot via SSH it's working again now.
Reply
#6
Did you ever try the TVH_DELAY trick?
Reply
#7
(2013-09-26, 16:01)negge Wrote: Did you ever try the TVH_DELAY trick?

No, I couldn't find anywhere to set this as /etc/default/tvheadend doesn't exist and find -name tvheadend only finds the binary in in /storage/.xbmc/addons/service.multimedia.tvheadend/bin/ so I have no idea where the config file for it might be hiding.

Had the problem yesterday where from a cold boot it wasn't working and I had to shutdown and move the USB tuner to the other port on the hub, which for some reason seems to consistently fix the problem when nothing else works. Then it worked and tuned to BBC One but when I tried to change channel from the EPG it locked up and I had to powerdown again.

I left it on overnight and this morning the whole GUI was locked up (on the EPG) and I couldn't wake it so I had to powerdown again to get it working.

This is the current log http://xbmclogs.com/show.php?id=63082

and this is the previous one (from last night) http://xbmclogs.com/show.php?id=63083

I didn't have debug logging enabled for either though I'm afraid, so they probably aren't that much use.
Reply
#8
Have you tried running:

Code:
grep -R TVH_DELAY /*
Reply
#9
(2013-09-27, 10:16)negge Wrote: Have you tried running:

Code:
grep -R TVH_DELAY /*

No, thanks I'll try that.
Reply
#10
(2013-09-27, 10:16)negge Wrote: Have you tried running:

Code:
grep -R TVH_DELAY /*

I had to change the -R to -r as the uppercase gave invalid option but after that it returned

grep: /dev/lirc0: Device or resource busy

Over an hour later, it's not shown anything else.
Reply
#11
I think you should ask/search on the OpenElec forums, they know this stuff better.
Reply
#12
OK, thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
[RPi] Unable to start TV after cold boot or left idle for a while0