[mythtv-users] Events at the beginning of a recording

Paul Harrison mythtv at mythqml.net
Mon Feb 6 13:07:34 UTC 2023

On 06/02/2023 11:17, Jan Ceuleers wrote:

> On 05/02/2023 23:13, Klaas de Waal wrote:
>>      I think ideally you have to have WakeUpThreshold >= global pre-roll +
>>      120. So with your 250 seconds pre-roll I would try something like
>>      370 or
>>      400 for WakeUpThreshold. That should give you about 120 seconds between
>>      events if I understand the problem properly.
>> Yes, I share your understanding of the logic but the HandleWakeSlave is
>> not called early enough.
>> My logs show most of the time only two REC_PENDING events, one on 60
>> seconds and one on 30 seconds.
>> I think I found where this comes from but I as this is the scheduler I
>> need to be very careful....
> I have changed the WakeUpThreshold to 600 (just to be on the safe side),
> and I still only get two REC_PENDING events (at 60 and 29 seconds), same
> as Klaas reports.
> Cheers, Jan

OK thanks for testing.

The problem must be further up the code in the main scheduler loop which 
is not calling HandleWakeSlave early or often enough for the code that 
sends the REC_PENDING events to work properly. When it's working 
properly it should be sending events at approximately 120, 90, 60 and 30 
seconds before recording starts.

Klaas I wonder if we should be setting the  default for WakeUpThresold 
to pre-roll + 120 instead of 5 minutes if that setting is not present in 
the DB?

Paul H.

More information about the mythtv-users mailing list