Jump to content


Photo

Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x


  • Please log in to reply
137 replies to this topic

Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #21 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 5 February 2018 - 21:59

No problems with 1.

 

2. users who will use fallbacktuner for recordings and live TV

The box than use first the local tuners but doen´t interrupt live TV and use the fallbacktuner for the recordings which can´t use local tuners

That is exactly that what openpli 6.1 actual does

That is really ok for that users

 

Yes, this is what 6.1 does, but to me it is wrong. It should interrupt the TV to claim the local tuner, unless it is configured that TV has priority over recordings. Better to have a succeeded recording and some hickups watching TV, then watching TV uninterrupted, and have a recording fail in the background.

 

So I don't agree with the fact that the current situation is ok for users.

 

So my question is, why is that switch so bad. I can´t understand it and I know from my 3 boxes with openpli 4.x it works very well and there is a diffferent between True and False of that switch. 

Today the user group 3 can´t user fallbacktuner for live TV only and must disable fallbacktuners. From my point of view it works better with the old switch.

 

And no problems with 3.

 

The issue isn't that the presence of that switch is bad, the issue is that the implementation in that commit didn't do what it was supposed to do. The fact that it also did what you wanted was if you will a side-effect. So that commit will not be re-implemented (as it is wrong), but that doesn't mean your use case is not valid.

 

Question is how to implement the required functionality for both 2 and 3, which is:
- the option to enable/disable the fallback for TV/Recordings/streams, to replace the current global "fallback yes/no" question 

- the option to define that a recording should always use a local tuner if available (so pretend no fallback is configured), and only if that fails, use the fallback (if enabled)


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #22 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 6 February 2018 - 07:16

I understand your point.

But if openpli will work as you expected for use case 2 (all local tuners will use for recording including that the last tuner claim will swtich the live TV) than there is no need to make a special switch for disabeling fallbacktuners from recording. Using in that case fallbacktuners for recording will only happend if the users program timers without conflict detection and when a user do that he must know that if all local tuners are busy by recording than the fallbacktuner will be used.

 

The only change we need is that if fallbacktuner is enable the last tuner claim for recordings must use the tuner of live TV instead of using fallbacktuner


Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #23 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 6 February 2018 - 12:03

I´ve made today some dirty code changes in 

/usr/lib/enigma2/python/RecordTimer.py 

to find a solution for me. 

Before the activation of timers I set temporary the confg.usage.remote_fallback_enable to false and after activation I set it back to the old value

 

It works for me now that timers now claim the last tuner of live TV if neccessary until the openpli 6.1 image has a better solution


Edited by anudanan, 6 February 2018 - 12:04.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #24 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 6 February 2018 - 12:52

The reversion of the commit is reverted now in Develop so we can further investigate this one...


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #25 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 6 February 2018 - 13:04

Wow, that is a quick reaction

 

Thx for that and I hope you will find a solution for all user and developers 


Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #26 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 6 February 2018 - 18:53

Don't get happy yet. I will probably just prove my point that it doesn't do what you want and if so, it will get reverted. Again.

 

We all understand your case, it's just not so easy to implement it.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #27 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 7 February 2018 - 03:29

Actually I work with my dirty code changes of RecordTimer.py and that works fine for me.

Edited by anudanan, 7 February 2018 - 03:30.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #28 Dimitrij

  • PLi® Core member
  • 9,993 posts

+338
Excellent

Posted 7 February 2018 - 06:32

anudanan

Show these changes.


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #29 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 7 February 2018 - 06:47

@Dimitrij

have you seen my PM?



Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #30 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 7 February 2018 - 06:51

Because I don´t what to use fallbacktuner for recordings anymore I´ve made a very dirty change in RecordTimer.py. I use this way because changing a py file for a running system is easy, but changing cpp files needs a new enigma build which I can´t do quickly.

 

So this change is only goog for me but  I think the change is bad for you because I changed temporary the config parameter for fallbacktuner, that it not a way to do it, but so I only need to change one py file in my running system

 

Here the changes, the 3 additional lines are bold. They are in doActivate(self,w) at line 759

 

                        tmp = config.usage.remote_fallback_enabled.value
                        config.usage.remote_fallback_enabled.value =  "false"
                        if w.activate():
                                w.state += 1
                        config.usage.remote_fallback_enabled.value = tmp

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #31 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 7 February 2018 - 12:08

The problem with this is that it doesn't address the problem of "use local tuner first" for people that want to use the fallback tuner.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #32 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 7 February 2018 - 13:28

Yes that is right, that feature needs more code changes

 

My dirty patch makes the same as the reverted changes from march 2016 without a config parameter to enable/disable recordings with fallbacktuner, It is only a patch for users like me


Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #33 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 7 February 2018 - 13:35

I think there are code changes neccessary in

 

 eDVBServiceRecord::doPrepare() and other files

 

today the early use ot tryFallbackTuner call is from my point of view the reason that the last claimed tuner comes not from live TV but from the fallbacktuner 

 

But I don´t have an overview how to change it


Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #34 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 7 February 2018 - 14:01

From a logical point of view, we need to call doPrepare() with the fallback tuner disabled. If that fails (no more tuners), and you had fallback enabled, and you want to use the fallback for recording, call doPrepare() again, but with an enabled fallback.

 

Unfortunately, my knowledge of the inner workings isn't of the level that I can say what code is needed to achieve that.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #35 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 7 February 2018 - 14:14

What my patch did in doPrepare is in the try function indicate that it should be tried for an recording. When it is not a recording it tries with the current setting for fallback tuner, when it is a recording it checks of it can use a fallback by the new fallback setting regards the recording... No need to call stuff twice...

 

That is also the reason of the hard coded recording flag in doPrepare... Note that you also need to be somehow backwards compatible with other stuff and plugins in E2 for the usual try function....

 

I cant remember why I put that else (void)0; there.... for as far I can see this looks like a mistake so this can be removed... ;)

 

https://github.com/O...98672ef38ea9825

+ if(is_recording)
+ if (!eConfigManager::getConfigBoolValue("config.usage.remote_fallback_recording_enabled", false))
+ return false;
+ else
+ (void)0;
+ else
+ if (!eConfigManager::getConfigBoolValue("config.usage.remote_fallback_enabled", false))
+ return false;

Edited by littlesat, 7 February 2018 - 14:20.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #36 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 7 February 2018 - 14:20

Your patch uses the fallback tuner when there is still a tuner available. And that is the main point of this discussion.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #37 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 7 February 2018 - 14:22

+ if (is_recording)
+     if (!eConfigManager::getConfigBoolValue("config.usage.remote_fallback_recording_enabled", false))
+         return false;
+ elif (!eConfigManager::getConfigBoolValue("config.usage.remote_fallback_enabled", false))
+     return false;

Edited by littlesat, 7 February 2018 - 14:23.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #38 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 7 February 2018 - 14:39

Yes.

 

So if the fallback is enabled, it falls through, and uses the fallback instead of the local tuner that is still available, and which would be used if fallback wasn't enabled. 

 

This is the point of this topic as reported by the TS.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #39 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 7 February 2018 - 14:43

To make it clear (example: a twin tuner box with fallback enabled):

 

Start situation:

  • Tuner A in use by recording #1
  • Tuner B in use by watching TV
  • Fallback tuner free

Now a new recording starts on a different transponder.

 

Desired situation:

  • Tuner A in use by recording #1
  • Tuner B zaps away to start recording #2
  • Fallback tuner free
  • Using the < button will restart watching TV, on the fallback tuner

What actually happens:

  • Tuner A in use by recording #1
  • Tuner B in use by watching TV
  • Fallback tuner will be used for recording #2

Correct, TS?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Why is the handling of fallbacktuner and timer in 6.1 different to pli 4.x #40 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 7 February 2018 - 14:45

Yep now I got it ;)... Sounds like we need to search for a 'free' tuner -before- we check for a fallback tuner...


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users