<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 19 December 2015 at 01:36, blind Pete <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:0123peter@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:0123peter@gmail.com">0123peter@gmail.com</a></a>></span> wrote:<br>
<br>
<blockquote
cite="mid:CAPgEeMbvvqvR65rzzU4UG0KN_Qio7F7syMc8GDUTDhyhg0rnoQ@mail.gmail.com"
type="cite">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">I have not
actually played with Mythwelcome yet,<br>
it does not appear to be strictly necessary.<br>
<br>
</blockquote>
</div>
</div>
</blockquote>
<br>
The frontend's Standby mode effectively makes MythWelcome redundant,
and is a lot easier to set-up and use. I believe the only feature it
lacks is the pre-set wakeup times (which could be achieved by the
wake-up script, if necessary)<br>
<br>
<blockquote
cite="mid:CAPgEeMbvvqvR65rzzU4UG0KN_Qio7F7syMc8GDUTDhyhg0rnoQ@mail.gmail.com"
type="cite">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
</blockquote>
</div>
</div>
</blockquote>
<blockquote
cite="mid:CAPgEeMbvvqvR65rzzU4UG0KN_Qio7F7syMc8GDUTDhyhg0rnoQ@mail.gmail.com"
type="cite">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
</blockquote>
</div>
</div>
</blockquote>
<br>
I don't have UEFI firmware but see the same. wakealarm will be empty
until you have written something to it. Reading it is just a test to
verify that your write worked. Writing a past time is invalid<br>
and wakealarm is cleared/unset/emptied by it.<br>
<br>
<blockquote
cite="mid:CAPgEeMbvvqvR65rzzU4UG0KN_Qio7F7syMc8GDUTDhyhg0rnoQ@mail.gmail.com"
type="cite">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
</blockquote>
</div>
</div>
</blockquote>
<br>
I think the wiki is out-of-date here. As you suggest, I don't
believe modern Ubuntu's do write the clock when shutting down. I
stopped using the hwclock bits of the wiki some years ago and have
never had a problem. I suggest ignoring it for now.<br>
<br>
<blockquote
cite="mid:CAPgEeMbvvqvR65rzzU4UG0KN_Qio7F7syMc8GDUTDhyhg0rnoQ@mail.gmail.com"
type="cite">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<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"></font></span><br>
</blockquote>
</div>
</div>
</blockquote>
<br>
Likewise the wiki's checklogin is out-of-date and timezones have a
small error (but is only a debugging aid).<br>
<a href="https://forum.mythtv.org/viewtopic.php?f=36&t=1035">https://forum.mythtv.org/viewtopic.php?f=36&t=1035</a><br>
<br>
FWIW my checklogin uses:<br>
<br>
who | grep -v "(:0)" && echo "$DATE Remote user is logged
in" && exit 1<br>
<br>
to only prevent shutdown when I'm ssh'ed in from another machine.<br>
</body>
</html>