[mythtv] RFE: Allowing backend to trigger S3 sleep while frontend is connected and idle
mythtv at sky.com
Tue Sep 27 22:19:54 UTC 2011
On 27/09/11 09:34, Stuart Morgan wrote:
> On Tuesday 27 Sep 2011 08:12:37 Petr Stehlik wrote:
>>> Just to make sure:
>>> Currently, is there an API in mythbackend to tell it 'please write your
>>> next wakeup time to the RTC clock and shut the machine down if you
>>> aren't busy with backend jobs right now' ?
>> That's what mythshutdown does.
> It's mythbackend (the scheduler) which writes to the RTC when it determines
> that it's allowed to shutdown.
> Mythshutdown allows writing a time to the database which the backend will use
> but it's a little crude since it's duplicating the backend code to determine
> this time.
It's not quite as simple as that because the scheduler doesn't take into
account any wake up periods set that mythshutdown does. All the BE does
is call a command to tell what ever script is set what the time of the
next recording is. It's then up to mythshutdown or whatever script is
set to set the time in the BIOS. If MythShutdown is used it also takes
care of doing a reboot after the time is set if the BIOS requires it
(probably not required if you are lucky and can get ACPI to set the BIOS
for you rather than nvram-wakup).
More information about the mythtv-dev