On Sunday 31 December 2006 15:02, Helmut Auer wrote: > Matthias Schwarzott schrieb: > > On Sunday 31 December 2006 13:36, Joachim Wilke wrote: > >> 2006/12/30, Udo Richter <udo_richter@xxxxxx>: > >>> However, it might be worth thinking about giving plugins the ability to > >>> set a different wakeup time, so that a scheduled EPG scan plugin can be > >>> written. > >> > >> I also think that this would be very helpful for some plugins. Manual > >> start detection could also include a call to the plugins. A plugin > >> that did "schedule" an EPG-scan or similar could tell VDR during start > >> up, that VDR woke up because of this scheduled event set by this > >> plugin. > >> At the moment I use a relatively complex patch that does some > >> "maintainance" task during the night. If it would be possible to > >> modify the wakeup-time in a plugin I could re-implement the complete > >> patch as a plugin. > > > > I think a much easier solution (implementable in runvdr/vdr-initscript) > > is: Write down wakeup-time when shutting down and comparing that to time > > when system/vdr starts (with some margin). > > That's exactly what my Gen2VDR distribution is doing, and it works fine. > It's not the job of vdr to guess why it was started, but it would be nice > if vdr offers an option to shutdown after next recording ( maybe via svdrp > call ). In gentoo vdr package we added a small hack (attached), which implements a svdrp call "down" to tell vdr it is inactive and will shutdown in X minutes. We call this from shutdown-scripts to let vdr retry shutdown in 5 min (or other value if needed). Matthias -- Matthias Schwarzott (zzam) -------------- next part -------------- A non-text attachment was scrubbed... Name: 001-vdr-add-svdrp-down-0.1.diff Type: text/x-diff Size: 2674 bytes Desc: not available Url : http://www.linuxtv.org/pipermail/vdr/attachments/20061231/e96ee26e/001-vdr-add-svdrp-down-0.1.bin