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)
Change History (3)
Changed 17 years ago by
Attachment: | fix-autostart-detection.diff added |
---|
comment:1 Changed 17 years ago by
Owner: | changed from Isaac Richards to cpinkham |
---|
comment:2 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(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.