[mythtv-commits] Ticket #3176: mythshutdown "Set Scheduled Wakeup Time" and "Detect Recording in Progress"

MythTV mythtv at cvs.mythtv.org
Wed Mar 7 15:36:32 UTC 2007


#3176: mythshutdown "Set Scheduled Wakeup Time" and "Detect Recording in Progress"
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |       Owner:  ijr    
     Type:  patch      |      Status:  new    
 Priority:  minor      |   Milestone:  unknown
Component:  mythtv     |     Version:  head   
 Severity:  medium     |  
-----------------------+----------------------------------------------------
 This patch modifies mythshutdown so it can be used to shutdown the machine
 immediately, after performing checks for in-progress recordings and
 setting the wakeup time for the next recording.

 '''Changes'''[[BR]]

 -s/--status - An additional return value of 8 specifies that a recording
 is in progress.

 ''Two new command-line parameters are available:''[[BR]]

 -t/--setscheduledwakeuptime - Gets the next scheduled recording and sets
 the wakeup time using the command specified in MythWelcome/MythShutdown
 wakup command settings.[[BR]]

 -x/--safeshutdown - equivalent to -c -t -q.  This checks there is no
 recording in progress, sets the wakeup time for the next scheduled
 recording and shuts down the machine if everything completed successfully.

 '''Use Cases:'''[[BR]]

 ''1. Scripts want to quickly check if a recording is in progress:''[[BR]]

 mythshutdown -s returns 8 if a recording is in progress.[[BR]]

 ''2. Scripts want to set wakeup time for next scheduled recording.''[[BR]]

 mythshutdown -t interrogates scheduler and places wakeup time in
 MythShutdownNextScheduled.[[BR]]

 ''3. Shutdown scripts - for example ACPI power button press, remote
 control power button press.''[[BR]]

 In most cases here the desired behaviour would be to shutdown the machine.
 However, [[BR]]

 a) If there is a recording in progress the user would probably want the
 recording to continue.[[BR]]

 b) The user would probably want the box to wake up in time for the next
 recording.[[BR]]

 By using mythshutdown -x for these actions it will automatically check if
 a recording is in progress, get the scheduled wakeup time and shutdown the
 machine if successful.

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


More information about the mythtv-commits mailing list