TVHeadend doesn't check for free tuners when to many timers are set
Added by Oliver Desertfield about 2 years ago
I have running TVHeadend 4.2.9 for about two years now on linux mint 20.1 with a dual dbv-s2 PCIe card (DVBSky S952). And I'm sure that TVHeadend always checked for available tuners when I set more than two recording timers. But TVheadend doesn't do it anymore. I can set much more than two recording timers and TVHeadend accept them all (see attached log). Of course later on only two recordings starts. When I stop one of these two recordings by myself than the next outstanding recordings starts. For all other recordings that doesn't start I have a warning in the LOG similar to this "2022-10-11 20:13:18.150 [ NOTICE]:subscription: 0004: No input source available for subscription "DVR: Tagesschau" to channel "3sat HD".
Why doesn't TVHeadend check for free tuners anymore when I set to much recording timers? Only a wrong setting on my side?
A few weeks ago I had to change my DVBSky S952 card. The old one didn't work anymore. So I bought the same one again (second-hand). I thought that I only had to install the newer DVB-S2 card in my pc and that's all. But I spent several hours to get the newer card working again. Did I made something wrong?
TVHlog.txt (1.01 KB) TVHlog.txt |
Replies (29)
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by saen acro about 2 years ago
Update to latest 4.3 and check again.
Tuner installation is not so plug-and-play.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Dave Pickles about 2 years ago
I don't believe Tvheadend has ever had timer clash detection.
When a recording starts, Tvheadend picks the 'best' tuner / service combination among those available based on the priorities which have been configured. It does not have any kind of 'strategy' function, for example to reserve a tuner which will be needed for a later recording. If there are several input sources with the same priority it will choose one at random.
I've included clash detection in TVHadmin (https://github.com/dave-p/TVHadmin-JS/) but that only works if the tuner and service priorities are set to avoid Tvheadend making random decisions.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Oliver Desertfield about 2 years ago
I can't believe that Tvheadend doesn't have timer clash detection.
I'm using Kodi as frontend. And I'm sure that in the past when I set to much timers Kodi told me that there is no free adpater.
And in my opinion this makes sense. When the user set a timer for chanel X from 8:00 PM to 10:00 PM and another timer for chanel Y from 9:00 PM to 11:00 PM and the user tries to set a third timer for chanel Z from 8:30 PM to 9:30 PM then (in my opinion) Tvheadend should be able to check if the third timer can be set or not.
I'm confused now.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Oliver Desertfield about 2 years ago
I'm using ppa from Mamarley but I must say that I absoluteley don't know how to update to 4.3.
So far I didn't update because "never change a running system" :-)
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Jonas Lang about 2 years ago
Oliver Desertfield wrote:
I'm using ppa from Mamarley but I must say that I absoluteley don't know how to update to 4.3.
So far I didn't update because "never change a running system" :-)
If you are using mamarley PPA, as far as I can see here it is actually TVH 4.3.0 that's on offer.https://launchpad.net/~mamarley/+archive/ubuntu/tvheadend-git
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Oliver Desertfield about 2 years ago
Is it worth it to update? Do I only have to update and that's all? Or do I have to configure Tvheadend again? Do I have to copy or move some files after the update?
I don't know how to update to 4.3? And I don't want to make something wrong. Can someone help? Attachend some screenshots of my linux mint.
Tvheadend Screenshot.png (260 KB) Tvheadend Screenshot.png | |||
Keys Screenshot.png (114 KB) Keys Screenshot.png | |||
PPAs Screenshot.png (149 KB) PPAs Screenshot.png |
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Jonas Lang about 2 years ago
Oliver Desertfield wrote:
Is it worth it to update? Do I only have to update and that's all? Or do I have to configure Tvheadend again? Do I have to copy or move some files after the update?
I don't know how to update to 4.3? And I don't want to make something wrong. Can someone help? Attachend some screenshots of my linux mint.
Not sure if you realise you don't have the mamarley PPA selected according to your sources list. Did you deselect it to prevent TVH from updating. There is a TVH 4.3.0 version available in the mamarley PPA for Ubuntu Focal 20.04.1. How familiar are you with the Linux Terminal.
All you need do is select the relevant PPA from your list, the first item on your PPA sources list, and copy/paste the following commands from a Terminal session
sudo apt update
sudo apt upgrade -y
and it should install TVH 4.3.0. If you are unsure of any of this just post back and I can walk you through it.
Can you confirm if you were using some form of all in one TVH/Kodi install repo at one stage.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Oliver Desertfield about 2 years ago
I have deselected it to prevent TVH from upgrading. Never change a running system :-)
Is it worth it to upgrade? My pc is running very well with TVH. But when it is no problem to upgrade then I will try.
So I have to select the first item on my PPA sources list and copy/ paste those commands. OK. Probably I will try.
No. I didn't use a form of all in one TVH/ Kodi install repo at one stage.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Oliver Desertfield about 2 years ago
I tried to update a few minutes ago. I enabled the first entry in the PPA list and I put in the terminal "sudo apt update".
But I got this mistake message (it is in german language)
E: Missgestalteter Eintrag 1 in list Datei /etc/apt/sources.list.d/mamarley-tvheadend-git-stable-focal.list (Suite)
E: Die Liste der Quellen konnte nicht gelesen werden.
Attached two files out of my directory "etc/apt/sources.list.d". I think there is a mistake in these files.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Jonas Lang about 2 years ago
How come you are showing those listings in your PPA sources list so. You have them for Kodi and TVH. Stable Quellen. Looks like some form of streaming service.
Anyway it’s always worth staying up to date to benefit from the work the developers are putting in. Otherwise they wouldn’t bother with development. Why would you think your setup would break somehow. Are you using a real exotic configuration on your system.
If TVH was installed correctly in the first place your TVH configuration will stay intact after an update. It really is as simple as I’ve shown you to update. It’s up to you now.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Jonas Lang about 2 years ago
Oliver Desertfield wrote:
I tried to update a few minutes ago. I enabled the first entry in the PPA list and I put in the terminal "sudo apt update".
But I got this mistake message (it is in german language)
E: Missgestalteter Eintrag 1 in list Datei /etc/apt/sources.list.d/mamarley-tvheadend-git-stable-focal.list (Suite)
E: Die Liste der Quellen konnte nicht gelesen werden.Attached two files out of my directory "etc/apt/sources.list.d". I think there is a mistake in these files.
Ok. My German wouldn't be great.
If you do want to update to TVH 4.3.0 using mamarley PPA these simple copy/paste commands in the Terminal will work.
sudo add-apt-repository ppa:mamarley/tvheadend-git
sudo apt update
sudo apt upgrade -y
I didn't realise the word quellen was actually German.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Flole Systems about 2 years ago
It says that the list of sources is invalid (Quellen means sources). And indeed it is missing half of the line, looks like something was removed at the end.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Jonas Lang about 2 years ago
The last post I made provides the correct PPA for mamarley TVH and will update your version to TVH 4.3.0.
You never indicated how you originally installed TVH or what instructions you followed to achieve it.
Try those instructions I posted.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Oliver Desertfield about 2 years ago
Since yesterday in the evening I have problems with Tvheadend. I have no free adapters (tuners) anymore. I don't know why. So it seems to make sense to update now.
It is two years ago when I installed Tvheadend. I don't know anymore which installing instructions I have used.
It's my understanding that I have two PPA sources for Tvheadend in my pc system. Mamarley's PPA and further "deb https://apt.tvheadend.org/stable ulyssa main".
Assuming I have installed Tvheadend 4.2.9 with this source "https://apt.tvheadend.org/stable ulyssa main". And assuming that I now update with Mamarley's PPA and using your installing instructions above. Can this procedure go wrong?
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Jonas Lang about 2 years ago
I imagine you used this install method https://forums.linuxmint.com/viewtopic.php?t=326951
I suggest you do further searching on the forum in relation to TVH on Linux Mint. Here’s something that may help
https://tvheadend.org/boards/4/topics/46683
I’ve given you a set of commands that will install TVH 4.3.0. You choose what option best suits.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Oliver Desertfield about 2 years ago
Oliver Desertfield wrote:
TIMER CLASH DETECTION: ... When the user set a timer for chanel X from 8:00 PM to 10:00 PM and another timer for chanel Y from 9:00 PM to 11:00 PM and the user tries to set a third timer for chanel Z from 8:30 PM to 9:30 PM then (in my opinion) Tvheadend should be able to check if the third timer can be set or not.
This is a question @ Tvheadend developers. Is it possible to implement timer clash detection? In my opinion it would be a great advantage for the users.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Oliver Desertfield almost 2 years ago
I now installed TVHadmin-JS.
First question. When I open the TVHadmin-JS web Interface there is no possibility to set user and password. Nevertheless TVHadmin-JS web Interface shows me the EPG and timer. It seems to work.
I have set in TVHadmin-JS the timer clash and single tuner. Then I set one timer and the timer got a green tick. Then I set a second timer and a third timer. All three timers on the same transponder. Every timer now had a yellow tick. Then I set a forth timer on another transponder. Though I have a dual tuner all four timer now had red ticks. Then I set "timer clash and multi tuner" but still the same. My understanding is that TVHadmin should have now four yellow ticks or one green tick and three yellow ticks. Why that doesn't work?
It's my understanding that TVHadmin-JS only reads data from TVHeadend. TVHadmin-JS doesn't wright data back to TVheadend. So my next question is. I have TVHeadend as backend and 2 Kodi clients as frontend. Is it possible that the Kodi clients get informations from TVHadmin that timers have a green or yellow or red tick? I don't think so! But that is what I want to have.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Dave Pickles almost 2 years ago
First question. When I open the TVHadmin-JS web Interface there is no possibility to set user and password. Nevertheless TVHadmin-JS web Interface shows me the EPG and timer. It seems to work.
If you have login credentials for the Tvheadend UI saved in your browser (cookies), TVHadmin-JS will use those.
I have set in TVHadmin-JS the timer clash and single tuner. Then I set one timer and the timer got a green tick. Then I set a second timer and a third timer. All three timers on the same transponder. Every timer now had a yellow tick. Then I set a forth timer on another transponder. Though I have a dual tuner all four timer now had red ticks.
That is correct. TVHadmin puts a red mark against all of the timers which are involved in the clash, so you can decide which timer(s) to move or cancel.
Then I set "timer clash and multi tuner" but still the same. My understanding is that TVHadmin should have now four yellow ticks or one green tick and three yellow ticks. Why that doesn't work?
TVHadmin may not be correctly recognising your dual card as two tuners. Can you see both tuners on the TVHadmin 'status' page?
It's my understanding that TVHadmin-JS only reads data from TVHeadend. TVHadmin-JS doesn't wright data back to TVheadend. So my next question is. I have TVHeadend as backend and 2 Kodi clients as frontend. Is it possible that the Kodi clients get informations from TVHadmin that timers have a green or yellow or red tick? I don't think so! But that is what I want to have.
TVHadmin steps through the timers list in time order, and allocates a tuner to each timer using (hopefully) the same algorithm as Tvheadend will use. To see the information in Kodi would need something similar added to either Tvheadend or the Kodi plugin.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Oliver Desertfield almost 2 years ago
TVHadmin shows both tuners in the status.
Something is strange that I don't understand
- I open TVHadmin web interface on the pc where tvheadend is installed and I change e.g. detect timer clash to SINGLE and save it.
- Then I open TVHadmin web interface on my laptop and I change detect timer clash to MULTI and save it.
- And then again I open TVHadmin web interface on the pc where tvheadend is installed then detect timer clash is still set to SINGLE.
Even if this works on my side unfortunately there is no possibilty to show timer clash in Kodi.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Dave Pickles almost 2 years ago
The Javascript version of TVHadmin stores user preferences in cookies on the client. Changing settings on one client does not affect settings on any other client.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Oliver Desertfield almost 2 years ago
TVHadmin shows both tuners in status. And I have set detect timer clash to MULTI.
Is there a chance that TVHadmin recognise my dual card correctly? When TVHadmin recognise my dual card corect as two tuners then detect timer clash should work in MULTI mode, right? Do you need LOGs or anything else?
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Dave Pickles almost 2 years ago
If you open the 'timers' page and hover over a timer, you should see the summary information for the programme to be recorded followed by the tuner and mux which will be used to make the recording. If there are no free tuners (the red 'tick') the hover text should list all of your tuners together with the muxes they are tuned to.
Could you try this command on your Tvheadend server or any Linux-based PC on your network:
curl "http://user:[email protected]:9981/api/hardware/tree?uuid=root" |jq
where 'user' and 'pass' are your credentials for Tvheadend. If you don't have jq installed then leave that out.
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Oliver Desertfield almost 2 years ago
The command above gives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 432 100 432 0 0 210k 0 --:--:-- --:--:-- --:--:-- 210k
parse error: Invalid numeric literal at line 1, column 10
With setting "Detect clash timer Single Tuner" I see in the TVHadmin web interface a GREEN tick and as information in a small windows this line
undefined
With setting "Detect clash timer Multi Tuner" I see in the TVHadmin web interface a RED tick and as information in a small windows these 4 lines
undefined
no tuner available
montage technology M88RS6000 #0:DVBS#0 exp:01/1:01.00 mux:0
montage technology M88RS6000 #1:DVBS#0 exp:01/1:01.00 mux:0
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Dave Pickles almost 2 years ago
The command above gives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 432 100 432 0 0 210k 0 --:--:-- --:--:-- --:--:-- 210k
parse error: Invalid numeric literal at line 1, column 10
Could you try again without piping the output through jq?
Also I'm not clear from the above which Tvheadend version you're running. If it's not 4.3 then that would explain the "undefined" output, otherwise it may be a TVHadmin bug...
RE: TVHeadend doesn't check for free tuners when to many timers are set - Added by Oliver Desertfield almost 2 years ago
Without grep with jq I get this
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>401 Unauthorized</TITLE>
</HEAD><BODY>
<H1>401 Unauthorized</H1>
<P STYLE="text-align: center; margin: 2em"><A HREF="/" STYLE="border: 1px solid; border-radius: 4px; padding: .6em">Default login</A></P><P STYLE="text-align: center; margin: 2em"><A HREF="/login" STYLE="border: 1px solid; border-radius: 4px; padding: .6em">New login</A></P></BODY></HTML>
I am running TVHeadend 4.2.8