[mythtv] [Patch] system shutdown and wakeup
Christian Hoenig
me at christianhoenig.de
Thu Apr 10 14:51:49 EDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
So, here is (the first and important part of) the promised patch.
Some things about it:
It allows the backend to shutdown if it is idle.
This only happens, if no client is connected and there is no recording in the
near future.
When shutting down, it sets the wakeup time to the next recording by executing
a defineable program/script which sets the wakeuptime to the computer
(nvram-wakeup, wol, ...).
I've added a globalsettings.cpp patch, but this has to be reworked!
TODO:
- - put the configurable stuff into the database (I'm not very familiar with
SQL) and into the setup programms
- - shutdown the other backends (scheduler.cpp:1063)
- - determine in mythfronend/main.cpp if backendhost == frontendhost, so that
the user cannot shutdown the backendhost by hand. (mythfrontend/main.cpp:348)
hope this helps,
and feedback is welcome :-)
take care, have fun
/christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+lVrYmauZIX3ydQURAkMwAKCm4QoltTlthHOPhEEQTA3c+8RpFQCgyHzj
71aDb5Jp3CPGikVm6SK1AaI=
=CqtN
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.20030410
Type: text/x-diff
Size: 12168 bytes
Desc: not available
Url : /pipermail/attachments/20030410/28e9f940/patch.bin
More information about the mythtv-dev
mailing list