<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 14, 2018 at 2:26 PM Nicolas Krzywinski <<a href="mailto:myth2@site7even.de">myth2@site7even.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 14.09.2018 um 19:51 schrieb Bill Meek:<br>
> On 09/14/2018 11:00 AM, Daryl McDonald wrote:<br>
>> On Fri, Sep 14, 2018 at 9:58 AM Mike Bibbings <<a href="mailto:mike.bibbings@gmail.com" target="_blank">mike.bibbings@gmail.com</a>><br>
>> wrote:<br>
>><br>
>>> On 12/09/18 23:54, Daryl McDonald wrote:<br>
>>><br>
>>><br>
>>><br>
>>> On Wed, Sep 12, 2018 at 2:03 PM Daryl McDonald <<a href="mailto:darylangela@gmail.com" target="_blank">darylangela@gmail.com</a>><br>
>>> wrote:<br>
>>><br>
>>>><br>
>>>><br>
>>>> On Wed, Sep 12, 2018 at 10:53 AM Nicolas Krzywinski <<a href="mailto:myth2@site7even.de" target="_blank">myth2@site7even.de</a>><br>
>>>> wrote:<br>
>>>><br>
>>>>> Am 12.09.2018 um 13:52 schrieb Daryl McDonald:<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> On Wed, Sep 12, 2018 at 3:32 AM jksj <<a href="mailto:jksjdevelop@gmail.com" target="_blank">jksjdevelop@gmail.com</a>> wrote:<br>
>>>>><br>
>>>>>> On 12/09/18 00:53, Daryl McDonald wrote:<br>
>>>>>><br>
>>>>>> I have the same set up in 18.04 as I did in 16.04 but my box doesn't<br>
>>>>>> wake up in time, once it came on two hours late, since then I've pushed the<br>
>>>>>> button myself. Is there a time setting I'm missing somewhere? TIA  Daryl<br>
>>>>>><br>
>>>>>><br>
>>>>>> _______________________________________________<br>
>>>>>> mythtv-users mailing listmythtv-users@mythtv.orghttp://<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-usershttp://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">lists.mythtv.org/mailman/listinfo/mythtv-usershttp://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>
>>>>>><br>
>>>>>> Mine wakes on time to record programs, the same as in 16.04 but I think<br>
>>>>>> it does not do this for the daily wake up time set in Mythwelcome. Could<br>
>>>>>> that be your issue?<br>
>>>>>> No, I don't use Mythwelcome, but thanks for the reply, I'll go over my<br>
>>>>>> setup again, I must have missed something. Curious that the wakeup_test.sh,<br>
>>>>>> thanks Bill, restarts 16.04 and not 18.04 when the report from (bad syntax<br>
>>>>>> from memory) proc driver rtc is identical from both distros.<br>
>>>>>> _______________________________________________<br>
>>>>>> mythtv-users mailing list<br>
>>>>>> <a href="mailto:mythtv-users@mythtv.org" target="_blank">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>
>>>>>><br>
>>>>> Hey Daryl,<br>
>>>>><br>
>>>>> recently I set up a new MythTV system (see signature) and there I<br>
>>>>> switched to the new method of using only:<br>
>>>>>      /usr/sbin/rtcwake --date "<datestring>" --mode no<br>
>>>>> to set the wakeup time.<br>
>>>>><br>
>>>>> This works fine for my system.<br>
>>>>><br>
>>>>> The MythTV wiki was quite confusing as there is a lot of outdated and<br>
>>>>> ambigous information, but you can find the above mentioned call as well, if<br>
>>>>> you search for it.<br>
>>>>><br>
>>>>> Btw., I made a small script to also update the LCD display with the next<br>
>>>>> scheduled automatic wakeup time:<br>
>>>>><br>
>>>>> me@mysystem:~$ cat /usr/sbin/wakewrapper.sh<br>
>>>>> #!/bin/bash<br>
>>>>> # Sets RTC wake time and inserts the time into LCDd.conf for letting the<br>
>>>>> display inform about the next wakeup time when the system is off<br>
>>>>><br>
>>>>> if [ -z "$1" ]<br>
>>>>>      then<br>
>>>>>          echo "Usage $0 <time>"<br>
>>>>>          exit 1<br>
>>>>> fi<br>
>>>>><br>
>>>>> # set wake time<br>
>>>>> wakestring=`/usr/sbin/rtcwake --date "$1" --mode no`<br>
>>>>><br>
>>>>> # grab the confirmed wake time<br>
>>>>> wakestring=`rtcwake --mode show | grep Alarm`<br>
>>>>><br>
>>>>> # extract only time of confirmation output<br>
>>>>> waketime=${wakestring:15:16}<br>
>>>>><br>
>>>>> # convert utc time string to local time<br>
>>>>> waketime=`date --date="$waketime +0000" +"%d. %b %T"`<br>
>>>>><br>
>>>>> # update LCDd.conf with wake time<br>
>>>>> sed -i -e "s/GoodBye = \"[^H].*/GoodBye = \"$waketime\"/g" /etc/LCDd.conf<br>
>>>>><br>
>>>>> # reload LCDd to let it use the new config<br>
>>>>> systemctl reload-or-restart LCDd.service<br>
>>>>><br>
>>>>> The sed command to update the LCDd.conf has to be adapted to the target<br>
>>>>> environment. It needs to filter out the second GoodBye line, that should<br>
>>>>> not be overwritten. Mine begins with "H", therefore the regex skips every<br>
>>>>> GoodBye lines that have a value beginning with "H".<br>
>>>>><br>
>>>>> Have fun!<br>
>>>>> Nicolas<br>
>>>>><br>
>>>>> -- <br>
>>>>> Nicolas<br>
>>>>><br>
>>>>> MythTV Version : v29.1-22-g675676b<br>
>>>>> Ubuntu 18.04 LTS (4.15.0-23-generic)<br>
>>>>> Digital Devices GmbH Octopus DVB Adapter via ddbridge kernel module<br>
>>>>> 15c2:0036 SoundGraph Inc. LC16M VFD Display/IR Receiver (imon) via ir-keytable<br>
>>>>> VGA compatible controller: Intel Corporation Device 3e91 (Intel(R) Core(TM) i3-8100T)<br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> mythtv-users mailing list<br>
>>>>> <a href="mailto:mythtv-users@mythtv.org" target="_blank">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>
>>>><br>
>>>><br>
>>>> Thanks Nicolas, I've just changed the BE setting from "$time" to "-mode<br>
>>>> no" That part of the wiki was confusing for me too until now. I'll report<br>
>>>> the results here later this evening.<br>
>>>><br>
>>><br>
>>> The box didn't wake on its own, and it looks like the change to "-mode no"<br>
>>> is a step backward, from /var/log/mythtv/hwclock-rebootTime I see no new<br>
>>> writes:<br>
>>> Current Time      ->Tue Sep 11 23:21:32 EDT 2018<br>
>>> Shutting down for ->13hrs:27Mins<br>
>>> Wake up at approx.->Wed Sep 12 17:49:00 EDT 2018<br>
>>> ------------------------------------------------------<br>
>>> Current Time      ->Wed Sep 12 09:51:20 EDT 2018<br>
>>> Shutting down for ->02hrs:57Mins<br>
>>> Wake up at approx.->Wed Sep 12 17:49:00 EDT 2018<br>
>>> and if the math can be taken literally, this looks faulty with the "$time"<br>
>>> setting.  Ideas and suggestions welcome.<br>
>>><br>
>>><br>
>>> Your original post indicates failure to powerup at the appropriate time.<br>
>>><br>
>>> Attached is the script autowakeuptest.sh I use to test wakeup on xubuntu<br>
>>> systems (16.04 and up), it saves copy and paste from the Mythtv ACPI wiki<br>
>>> page.<br>
>>> Just make it executable (chmod +x) and run it. If it does not powerup in 5<br>
>>> minutes that problem needs to be fixed.<br>
>>><br>
>>> I have also attached an alternative script (autowakeuptest2.sh) which uses<br>
>>> rtcwake instead.<br>
>>><br>
>>> If you want to use rtcwake with mythtv you need to modify script in<br>
>>> /usr/bin/setwakeup.sh as follows:<br>
>>> replace lines<br>
>>> echo 0 > /sys/class/rtc/rtc0/wakealarm      #this clears your alarm.<br>
>>> echo $1 > /sys/class/rtc/rtc0/wakealarm     #this writes your alarm<br>
>>><br>
>>> with one line<br>
>>> sudo /usr/sbin/rtcwake --mode no -t $1<br>
>>><br>
>>><br>
>>> Note: "--mode no" not "-mode no" (the Mythtv ACPI wiki has a missing -<br>
>>> character in the example /usr/sbin/rtcwake -mode no)<br>
>>><br>
>>><br>
>>> Mike<br>
>>><br>
>>> _______________________________________________<br>
>>> mythtv-users mailing list<br>
>>> <a href="mailto:mythtv-users@mythtv.org" target="_blank">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.or" rel="noreferrer" target="_blank">https://forum.mythtv.or</a> <<a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a>>g<br>
>>><br>
>> Thanks Mike, I'm still struggling with this, I downloaded both scripts,<br>
>> chmod'd them. I tested each and both shutdown but neither restarted after<br>
>> five minutes. This was all done without any modifications to the BE setup,<br>
>> where do we go from here?<br>
><br>
> 1. The Wiki has been fixed (--mode) thanks Mike.<br>
><br>
> 2. This is the line from my script:<br>
><br>
>     rtcwake --mode no --time ${NEW_TIME} --utc<br>
><br>
> Where $NEW_TIME is the value from: WakeupTimeFormat of time_t<br>
> or something like: NEW_TIME=$((`date +'%s'` + 60)) for testing.<br>
><br>
Apropos utc, did you checked that the bios time is in UTC?<br>
Also, have you checked with "rtcwake --mode show" that the time was set correctly?<br>
<br>
-- <br>
Nicolas<br>
<br>
MythTV Version : v29.1-22-g675676b<br>
Ubuntu 18.04 LTS (4.15.0-23-generic)<br>
Digital Devices GmbH Octopus DVB Adapter via ddbridge kernel module<br>
15c2:0036 SoundGraph Inc. LC16M VFD Display/IR Receiver (imon) via ir-keytable<br>
VGA compatible controller: Intel Corporation Device 3e91 (Intel(R) Core(TM) i3-8100T)<br>
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">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></blockquote><div><br></div><div>It looks like the editing of grub has given me a successful test with "autosetwakeup.sh" 2 did not restart, I'll confirm tomorrow when the box behaves itself, thanks to all involved!  Daryl </div></div></div>