[mythtv-commits] Ticket #3497: Fix auto startup detection in scheduler

MythTV mythtv at cvs.mythtv.org
Wed May 23 07:51:17 UTC 2007

#3497: Fix auto startup detection in scheduler
 Reporter:  anonymous  |       Owner:  ijr    
     Type:  patch      |      Status:  new    
 Priority:  major      |   Milestone:  unknown
Component:  mythtv     |     Version:  unknown
 Severity:  medium     |  
 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

Ticket URL: <http://svn.mythtv.org/trac/ticket/3497>
MythTV <http://svn.mythtv.org/trac>

More information about the mythtv-commits mailing list