[mythtv] System-wakeup
myth at fusion.fastmail.fm
myth at fusion.fastmail.fm
Thu Apr 10 21:24:19 EDT 2003
On Thu, 10 Apr 2003 09:45:34 +0200, "Christian Hoenig"
<me at christianhoenig.de> said:
> > I sent a suggestion to the list a while ago about writing a program to do
> > shutdown and wakeup (buried at the bottom of another post). I suggested
> > using the nvram-wakeup code, which modifies the BIOS NVRAM to set a
> > wakeup time. And since Myth uses a MySQL database, it should be easy to
> > decide when the machine needs to sleep and wake depending on scheduled
> > recording times in the database.
>
> This is almost exactly what my stuff is doing. Even though I implemented
> it in
> a generic way, so that everybody can have their own wakeup mechanism,
> since
> there are some mainboards, which don't support the nvram-wakeup stuff
> (like
> my epox 8k5a2).
>
> So, as there is interest in that things, I'll gonna start working on that
> again later this day. Hope to have a working patch tonight or tomorrow.
That would be fantastic. Saves me from having to write it :-) Does your
code determine whether the frontend is in use or not? I'd like to make
sure the shutdown code only goes into action when the user has exited the
frontend. If the computer is later re-started by the user (not by the
clock), I'll have the frontend start automatically in the init scripts.
If the system was started due to a scheduled recording, the frontend
would not run unless the user started it explicitly (I.e. by pressing a
button on a remote).
There should also be a facility to ensure that the system runs all the
time between specified time periods (E.g. "Run every weekday between
3-10pm even when nothing is happening.") Also, a shutdown shouldn't occur
unless the next recording is a sufficient time in the future. So if the
next recording is only 15 minutes away, it would be a waste of time
shutting down between recordings. I think this would make sense for a
stand-alone system.
-Patrick
--
Patrick Burns
fusion at fastmail.fm
More information about the mythtv-dev
mailing list