[mythtv-commits] Ticket #6066: Wakeup time not set if Myth shuts down just before a scheduled recording
MythTV
mythtv at cvs.mythtv.org
Sun Feb 1 11:10:15 UTC 2009
#6066: Wakeup time not set if Myth shuts down just before a scheduled recording
---------------------------------------+------------------------------------
Reporter: bullestock at bullestock.net | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythshutdown | Version: 0.21-fixes
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------------------+------------------------------------
Description changed by paulh:
Old description:
> This might be related to #6019, but the symptoms are a bit different.
>
> I have attached the full mythbackend/mythshutdown logs, but these
> extracts show the gist of the problem:
>
> Backend log:
>
> 2009-01-03 10:13:52.191 Scheduler: Update next_record for 317
> --- print list start ---
> Title - Subtitle Ch Station Day Start End S C I T N
> Pri
> Bratz - "Seje Filmstjerner" 3 TV2 03 10:20-11:25 1 1 1 S 1
> 1/0
> [...]
> --- print list end ---
> 2009-01-03 10:13:52.245 Scheduled 111 items in 1.5 = 0.03 match + 1.42
> place
> 2009-01-03 10:14:18.370 I'm idle now... shutdown will occur in 60
> seconds.
> [...]
> 2009-01-03 10:15:18.021 Running the command to set the next scheduled
> wakeup time :-
> sudo
> /usr/local/bin/mythshutdown --setwakeup 2009-01-03T10:15:00
>
> Mythshutdown log:
>
> 2009-01-03 10:15:18.652 recording scheduled at: 2009-01-03T10:15:00
> 2009-01-03 10:15:18.652 scheduled recording time has already passed.
> schedule deleted
>
> So, in summary:
> The backend decides to shut down because the next recording is scheduled
> to start in 5 minutes and 50 seconds (my idleWaitForRecordingTime is 5
> minutes).
> However, one minute later, when mythshutdown is called, it subtracts
> StartupSecsBeforeRecording (set to 300 s = 5 min) and decides that it is
> too late to set the wakeup time. To make matters worse, it does not set
> the wakeup time to the next scheduled recording - it sets no wakeup time
> at all!
>
> AFAICT, this will never happen as long as idleWaitForRecordingTime is at
> least a few minutes larger than StartupSecsBeforeRecording, so as a
> workaround, I will set idleWaitForRecordingTime to ten minutes.
> A possible fix could be to enforce this.
New description:
This might be related to #6019, but the symptoms are a bit different.
I have attached the full mythbackend/mythshutdown logs, but these extracts
show the gist of the problem:
{{{
Backend log:
2009-01-03 10:13:52.191 Scheduler: Update next_record for 317
--- print list start ---
Title - Subtitle Ch Station Day Start End S C I T N
Pri
Bratz - "Seje Filmstjerner" 3 TV2 03 10:20-11:25 1 1 1 S 1
1/0
[...]
--- print list end ---
2009-01-03 10:13:52.245 Scheduled 111 items in 1.5 = 0.03 match + 1.42
place
2009-01-03 10:14:18.370 I'm idle now... shutdown will occur in 60 seconds.
[...]
2009-01-03 10:15:18.021 Running the command to set the next scheduled
wakeup time :-
sudo
/usr/local/bin/mythshutdown --setwakeup 2009-01-03T10:15:00
Mythshutdown log:
2009-01-03 10:15:18.652 recording scheduled at: 2009-01-03T10:15:00
2009-01-03 10:15:18.652 scheduled recording time has already passed.
schedule deleted
}}}
So, in summary:
The backend decides to shut down because the next recording is scheduled
to start in 5 minutes and 50 seconds (my idleWaitForRecordingTime is 5
minutes).
However, one minute later, when mythshutdown is called, it subtracts
StartupSecsBeforeRecording (set to 300 s = 5 min) and decides that it is
too late to set the wakeup time. To make matters worse, it does not set
the wakeup time to the next scheduled recording - it sets no wakeup time
at all!
AFAICT, this will never happen as long as idleWaitForRecordingTime is at
least a few minutes larger than StartupSecsBeforeRecording, so as a
workaround, I will set idleWaitForRecordingTime to ten minutes.
A possible fix could be to enforce this.
--
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6066#comment:1>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list