Opened 17 years ago

Closed 17 years ago

#3497 closed patch (fixed)

Fix auto startup detection in scheduler

Reported by: anonymous Owned by: cpinkham
Priority: major Milestone: unknown
Component: mythtv Version: unknown
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Currently the scheduler tries to determine if the machine has been started by a user or automatically. If a recording starts within 15 minutes it assumes that an auto-start has occurred. The problem is that it doesn't take the mythwelcome wake up periods into account.

This causes a couple of problems:

  • The auto-shutdown will be blocked, because the backend thinks the user started the machine, so doesn't allow the auto-shutdown to occur.
  • The "startupCommand" executed during the backend startup will be called with the correct argument "auto" when started for the wake-up period.

The patch checks the "MythShutdownWakeupTime?" value in the database. This setting is set by the mythshutdown process to indicate when the machine is next set to automatically start. If the backend is started within 15 minutes of this time, it assumes this is an auto-startup. It also still does the previous check based on the next scheduled recording time.

The thread where I raised this issue and posted the patch can be found here: http://www.gossamer-threads.com/lists/mythtv/dev/270225

Attachments (1)

fix-autostart-detection.diff (2.6 KB) - added by matt.doran@… 17 years ago.

Download all attachments as: .zip

Change History (3)

Changed 17 years ago by matt.doran@…

comment:1 Changed 17 years ago by cpinkham

Owner: changed from Isaac Richards to cpinkham

comment:2 Changed 17 years ago by cpinkham

Resolution: fixed
Status: newclosed

(In [13609]) Take the MythShutdownWakeupTime? into account when determining whether mythbackend was started by the user or automatically. If the wakeup time is within 15 minutes (plus or minus) of now, then we assume we were started automatically. This is a new test, the existing tests still apply.

Closes #3497 using patch by Matt Doran.

Note: See TracTickets for help on using tickets.