Project

General

Profile

Always have to restart tvheadend once

Added by Steffen Breitbach over 7 years ago

Hi everyone!

After a reboot, I always have to restart tvheadend in order to make it work. Right after a reboot, tvheadend can't tune to any mux, I always get the status "bad". Just restarting tvheadend once makes everything work. Sometimes I have to restart tvheadend twice to make it work.

Any ideas why tvheadend acts so strangely?

There's information about my setup in debug.txt

Cheers

debug.txt (3.13 KB) debug.txt

Replies (6)

RE: Always have to restart tvheadend once - Added by Steffen Breitbach over 7 years ago

Just updated to 4.1-2355~g1dd2652, same behaviour.

RE: Always have to restart tvheadend once - Added by Mark Clarkstone over 7 years ago

This can happen if the tuner isn't ready & Tvheadend has already started. You may also want to update the firmware from 4.0.11 to 4.0.25. You can find that here http://palosaari.fi/linux/v4l-dvb/firmware/Si2168/Si2168-B40/4.0.25/.

RE: Always have to restart tvheadend once - Added by Steffen Breitbach over 7 years ago

Thanks for your reply, using fw 4.0.25 now.

Is there any way to influence startup behaviour, i.e. waiting until the tuner is ready?

RE: Always have to restart tvheadend once - Added by Hiro Protagonist over 7 years ago

How are you starting it now?

RE: Always have to restart tvheadend once - Added by Joe User over 7 years ago

How are you restarting it. If it is just a startup issue, restarting it once should be enough, so maybe there is another problem if sometimes it takes twice?? (although if there is a problem with the tuner, it may take tvheadend a bit longer to stop than normal, so the first restart might fail because it had not stopped yet...)

If you are starting tvheadend via sysv init, then you can do

who -r

to find out what run level you are running at and then look for an "S" entry in "/etc/rc<runnlevel>.d" for tvheadend. The "S" number is used for startup order. If the number is low, you can try changing it to something very high by doing:
cd /etc/rc5.d
rm S01tvheadend
ln -s ../init.d/tvheadend S99tvheadend

RE: Always have to restart tvheadend once - Added by Steffen Breitbach over 7 years ago

At the moment I don't start tvheadend on system boot (doesn't work anyway so I have to manually restart after every reboot).

When I start tvheadend via "service tvheadend start" it won't work. Then I do a "service tvheadend restart" which makes it work most of the time but not every time. A second restart will do the trick.

As I said, tvheadend itself will work, I just can't tune anything after the first start.

    (1-6/6)