[mythtv] Scheduler disturbs idle timeout for automatic shutdown
Tino Keitel
tino.keitel at gmx.de
Sat Feb 10 21:58:51 UTC 2007
On Sat, Feb 10, 2007 at 20:17:20 +0100, Tino Keitel wrote:
> Hi,
>
> I tried to set up an automatic shutdown by the mythbackend. However, I
> had very lousy results. The reason seems to be the scheduler resets the
> idle countdown before it reaches 0. The logfile looks like this:
>
> 40 secs left to system shutdown!
> EITScanner: Added 1 EIT Events
> Reschedule requested for id -1.
> Scheduled 4 items in 0.1 = 0.06 match + 0.02 place
> scheduler: Scheduled items: Scheduled 4 items in 0.1 = 0.06 match + 0.02 place
> I'm idle now... shutdown will occur in 600 seconds.
>
> A looked into programs/mythbackend/scheduler.cpp and found out that
> RunScheduler() messes around with idle stuff. Is there a reason why the
> scheduler resets the idle countdown?
To be more specific, this part of the code in RunScheduler() resets the
idle countdown:
if (statuschanged)
{
MythEvent me("SCHEDULE_CHANGE");
gContext->dispatch(me);
idleSince = QDateTime();
}
What is the impact if I remove the idleSince = QDateTime();?
Regards,
Tino
More information about the mythtv-dev
mailing list