<div dir="ltr">I've always found this rather tricky to get working but worth the effort! It works better when you're running myth welcome (because in mythwelcome it will shut down in a minute or so when idle or whatever time you've configured it, and when it boots to record a show automatically it boots to mythwelcome, whereas if you boot manually it boots into mythtv itself), but even in mythtv an idle system will eventually shut down.<div><br></div><div>I got it going using the mythtv wiki. If you have any specific issues let me know, and I can try to dig out the settings I have on my backend, the script I used, etc.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 December 2015 at 01:36, blind Pete <span dir="ltr"><<a href="mailto:0123peter@gmail.com" target="_blank">0123peter@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi *,<br>
<br>
I've been running Mythbuntu 14.04 LTS Trusty Tahr reasonably<br>
successfully for a long time now.  MythTV version is 0.28-pre from a<br>
few weeks ago.  Now that the hot weather has set in (southern<br>
hemisphere) it is time to sort out automatic power down and power up.<br>
<br>
After considerable phaffing about and experimental coding, power up<br>
seems to be OK.  Power down still has me beaten.  Presumably there are<br>
lots of people on this list who have it working.  If a couple of<br>
responses say, "Yes, it does work on UEFI firmware" I will re-read<br>
<<a href="https://www.mythtv.org/wiki/ACPI_Wakeup" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/ACPI_Wakeup</a>> and<br>
<<a href="https://www.mythtv.org/wiki/Mythwelcome" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/Mythwelcome</a>> before I come back with more<br>
specific questions.  I have not actually played with Mythwelcome yet,<br>
it does not appear to be strictly necessary.<br>
<br>
There seem to be some oddities - at least on this system - or possibly<br>
I've just mis-understood things.  Comments and explanations for dummies<br>
welcome.<br>
<br>
Something clears the wake alarm setting occasionally.<br>
This is good...<br>
$ cat /sys/class/rtc/rtc0/wakealarm<br>
1450569060<br>
$ date -d @$(cat /sys/class/rtc/rtc0/wakealarm)<br>
Sun Dec 20 10:51:00 AEDT 2015<br>
<br>
But sometimes this happens...<br>
$ cat /sys/class/rtc/rtc0/wakealarm<br>
$ date -d @<br>
date: invalid date ‘@’<br>
<br>
It might be easier if it "cleared" to MAX-INT or even 0, but if you are<br>
alert to undefined variables here and there it is OK.  This could be a<br>
firmware issue and completely beyond our control.<br>
<br>
The firmware (?) does not seem to allow setting the alarm to any time<br>
in the past.  Is this a misguided safety feature?<br>
<br>
In Mythbuntu 14.04 and Ubuntu 15.10 /etc/init/hwclock.conf<br>
and /etc/init/hwclock-save.conf contain a line like<br>
"exec hwclock [many parameters]".  After adding many echo to logfile<br>
lines and many reboots (in Mythbuntu 14.04) it seems that hwclock.conf<br>
is not executed, it is not leaving anything in my log file.  Is the OS<br>
supposed to execute it independent of MythTV?  More strangely execution<br>
of hwclock-save.conf stops at the "exec hwclock" line, but when the<br>
"exec" was deleted then hwclock ran (seemingly successfully) as did the<br>
rest of the commands in hwclock-save.conf!  I'm out of my depth here.<br>
<br>
I have also created /usr/local/bin/checklogin.sh that seems to be well<br>
behaved, but not called and /usr/local/bin/setwakeup.sh that seems well<br>
behaved except for some echoed comments about time to sleep.  It will<br>
be wrong for sleep times greater than 31 days (the length of January)<br>
and some time zone setups.  (Mine!)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
testing<br>
bP<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</font></span></blockquote></div><br></div>