<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 08/11/2018 08:37 AM, Peter Bennett
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:17d0e1d1-b668-b10a-96e6-84e7dbf95ad1@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p><br>
      </p>
      <br>
      <div class="moz-cite-prefix">On 08/11/2018 07:53 AM, Daryl
        McDonald wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:CAMwtTBC+s2pgd3gD=q=E7GTUY+LnuHu7pro68ZiQViHZWeDTqw@mail.gmail.com">
        <meta http-equiv="content-type" content="text/html;
          charset=utf-8">
        <div dir="auto">
          <div><br>
            <br>
            <div class="gmail_quote">
              <div dir="ltr">On Sat, Aug 11, 2018, 3:43 AM <<a
                  href="mailto:mythtv-users@gorbag.com"
                  moz-do-not-send="true">mythtv-users@gorbag.com</a>>
                wrote:<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">On
                Fri, 10 Aug 2018 19:56:39 -0700<br>
                Douglas Peale <<a
                  href="mailto:Douglas_Peale@comcast.net"
                  target="_blank" rel="noreferrer"
                  moz-do-not-send="true">Douglas_Peale@comcast.net</a>>
                wrote:<br>
                <br>
                > On 08/10/2018 06:59 AM, Peter Bennett wrote:<br>
                > <br>
                > The problem is not systemd. MythTV was working fine
                with Mint 18<br>
                > through 18.3, and those versions also had systemd.<br>
                > <br>
                > I have finally identified the problem. MythTV does
                not call<br>
                > setwakeup.sh if it does not find anything to
                record.<br>
                > <br>
                > This is a problem because if nothing else wakes up
                the backend<br>
                > system, mythfilldatabase will not be run, and the
                system will not<br>
                > notice new items in the schedule because it has an
                out of date<br>
                > schedule.<br>
                > <br>
                > MythTV should schedule a wakeup to run
                mythfilldatabase when it does<br>
                > not find anything else in its schedule. It should
                schedule a wakeup<br>
                > for mythfilldatabase anyway if the scheduled event
                would happen after<br>
                > it runs out of schedule for any channel.<br>
                > <br>
                <br>
                There is a program called mythwelcome that has a setting
                to allows two<br>
                forced wakeup periods. See <a
                  href="https://www.mythtv.org/wiki/Mythwelcome"
                  rel="noreferrer noreferrer" target="_blank"
                  moz-do-not-send="true">https://www.mythtv.org/wiki/Mythwelcome</a>.<br>
                These settings are obeyed even when mythwelcome is not
                being used. So<br>
                you only need to run mythwelcome to add a wakeup period,
                there is no<br>
                need to use it in normal use. It would be nice if the
                forced wakeup<br>
                period settings were added to mythfrontend's shutdown
                settings or<br>
                perhaps to mythtv-setup.              <br>
                <br>
                Steve<br>
                -- <br>
____________________________________________________________________<br>
                Steve Evans            E-mail: mailto:<a
                  href="mailto:stevee@gorbag.com" target="_blank"
                  rel="noreferrer" moz-do-not-send="true">stevee@gorbag.com</a><br>
                Registered Linux user #217906: <a
                  href="http://counter.li.org" rel="noreferrer
                  noreferrer" target="_blank" moz-do-not-send="true">http://counter.li.org</a><br>
                Public Encryption Key:         <a
                  href="http://www.gorbag.com/public-key.html"
                  rel="noreferrer noreferrer" target="_blank"
                  moz-do-not-send="true">http://www.gorbag.com/public-key.html</a><br>
____________________________________________________________________<br>
                <br>
                4.9.95-gentoo Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
                GNU/Linux<br>
                <br>
                 08:15:25 up 5 days, 23:34,  7 users,  load average:
                1.09, 0.85, 0.67<br>
                <br>
                Peter Griffin:  NOOOOOO. Silly rabbit, Trix are for
                kids. Damn<br>
                longears, trying to take Easter away from Jesus. Anyway,
                what was that<br>
                you were saying?<br>
                _______________________________________________<br>
                mythtv-users mailing list<br>
                <a href="mailto:mythtv-users@mythtv.org" target="_blank"
                  rel="noreferrer" moz-do-not-send="true">mythtv-users@mythtv.org</a><br>
                <a
                  href="http://lists.mythtv.org/mailman/listinfo/mythtv-users"
                  rel="noreferrer noreferrer" target="_blank"
                  moz-do-not-send="true">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
                <a href="http://wiki.mythtv.org/Mailing_List_etiquette"
                  rel="noreferrer noreferrer" target="_blank"
                  moz-do-not-send="true">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
                MythTV Forums: <a href="https://forum.mythtv.org"
                  rel="noreferrer noreferrer" target="_blank"
                  moz-do-not-send="true">https://forum.mythtv.org</a></blockquote>
            </div>
          </div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">Or, just schedule a news type recording once a
            week.</div>
          <div dir="auto">
            <div class="gmail_quote">
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
              </blockquote>
            </div>
          </div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
      </blockquote>
      I suggest you set something up that runs at startup to schedule a
      wakeup for 3 am next day. This would be overridden if there was a
      recording scheduled that subsequently called the wakeup script.
      However that does not really solve the problem of a recording
      scheduled for a week away, which would then shut you down for the
      whole week. So you need a customized wakeup script that checks if
      the wakeup time is far in the future it sets up an earlier time. 
      My example -->
      <a class="moz-txt-link-freetext"
href="https://github.com/bennettpeter/mythscripts/blob/master/install/opt/mythtv/bin/setwakeup.sh"
        moz-do-not-send="true">https://github.com/bennettpeter/mythscripts/blob/master/install/opt/mythtv/bin/setwakeup.sh</a><br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a class="moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a class="moz-txt-link-freetext" href="https://forum.mythtv.org">https://forum.mythtv.org</a>
</pre>
    </blockquote>
    <p>I already have a modification to my setwakeup.sh command to wake
      my computer at 3:00 AM. This is so a cron job can run at 3:00 AM.
      The problem is that setwakup.sh does not get run if mythtv does
      not find anything to record in the schedule.</p>
    <p>MythTV already schedules the next run of mythfilldatabase as you
      can see from the backend status page of mythweb:</p>
    <p>Last mythfilldatabase run started on Fri Aug 10, 6:39 PM and
      ended on Fri Aug 10, 6:39 PM. Successful.<br>
      Suggested next mythfilldatabase run: Sat Aug 11, 1:49 PM.<br>
      There's guide data until 2018-08-24 05:00:00 (13 days).<br>
      DataDirect Status: Your subscription expires on Fri Mar 8 (2019)
      7:52 AM <br>
    </p>
    <p>but for some reason it does not treat this as a scheduled event
      when it sets the wakeup time.</p>
    <p>I would consider this a bug to be fixed. At the very least, it
      should be set up as an option to wake for mythfilldatabase.<br>
    </p>
  </body>
</html>