<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <br>
    <br>
    On 09/07/11 13:33, John Reid wrote:
    <blockquote cite="mid:4E184AAD.1060602@netscape.net" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <br>
      <br>
      On 09/07/11 11:51, John Reid wrote:
      <blockquote cite="mid:4E1832C6.5090504@netscape.net" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        <br>
        <br>
        On 09/07/11 11:24, Paul Wootton wrote:
        <blockquote
          cite="mid:098DD153-813B-4936-AEA4-F302D3D6D08A@gmail.com"
          type="cite"><br>
          <div>
            <div>On 9 Jul 2011, at 11:17, John Reid wrote:</div>
            <br class="Apple-interchange-newline">
            <blockquote type="cite">
              <div bgcolor="#ffffff" text="#000000"> <br>
                <br>
                On 09/07/11 11:03, Paul Wootton wrote:
                <blockquote
                  cite="mid:F1937356-0249-4107-A570-0630563EA359@gmail.com"
                  type="cite"><br>
                  <div>
                    <div>On 9 Jul 2011, at 10:25, John Reid wrote:</div>
                    <br class="Apple-interchange-newline">
                    <blockquote type="cite">
                      <div bgcolor="#ffffff" text="#000000"> On 09/07/11
                        06:40, Phill Edwards wrote:
                        <blockquote
cite="mid:CAE2RtTP-Vo234BAoQFOqrRp2z26caTn0OuBC7o2q=1N7EPcMgw@mail.gmail.com"
                          type="cite">I've set my MythTV up so that it
                          shuts down when not in use. Recently it<br>
                          <div class="gmail_quote">
                            <blockquote class="gmail_quote"
                              style="margin: 0pt 0pt 0pt 0.8ex;
                              border-left: 1px solid rgb(204, 204, 204);
                              padding-left: 1ex; position: static;
                              z-index: auto;"> has stopped shutting
                              down. The countdown goes from 60 seconds
                              to 10<br>
                              seconds but then resets back to 60 instead
                              of turning off. A tail of<br>
                              mythwelcome.log looks like this:<br>
                            </blockquote>
                          </div>
                          <br>
                          Apologies if this is a bit too obvious, but
                          have you checked that the menu item isn't set
                          to "Lock Shutdown" (or something like that) in
                          the mythwelcome screen? Perhaps someone
                          accidentally set it.<br>
                        </blockquote>
                        I did check that. You don't get the countdown if
                        you've locked it.<br>
                        <br>
                        Any help appreciated. I don't really know where
                        to investigate next. What are the <br>
                        <br>
                        <pre wrap="">2011-07-08 14:48:29.421 MythWelcome received a SCHEDULE_CHANGE event
</pre>
                        <br>
                        Could the schedule change events be relevant to
                        this?<br>
                        <br>
                        Thanks,<br>
                        John.<br>
                      </div>
                      _______________________________________________<br>
                      mythtv-users mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
                      <a moz-do-not-send="true"
                        class="moz-txt-link-freetext"
                        href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
                    </blockquote>
                  </div>
                  <br>
                  <div>Have ypu turned on eit scanning on any of the
                    channels? &nbsp;I have a backend that won't shutdown, and
                    I think it's because I'm using eit for my sources.</div>
                  <div><br>
                  </div>
                  <div>-- Paul --</div>
                </blockquote>
                Yes I am using EIT for my sources. That's just what I
                got working when I first installed mythtv. I'm in
                London, UK. Is there a xmltv source I could use that
                might be better?<br>
                <br>
                So the schedule change event might be an update from EIT
                that's stalling the shutdown?<br>
                <br>
                John.<br>
                <br>
              </div>
              _______________________________________________<br>
              mythtv-users mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
              <a moz-do-not-send="true" class="moz-txt-link-freetext"
                href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
            </blockquote>
          </div>
          <div><br>
          </div>
          |That's my best guess - at the moment I'm OK with running eit
          and not shutting down the backend; but I want to check out
          xmltv soon-ish.</blockquote>
        I'm having a go now. I'll let you know if it fixes it.</blockquote>
      OK I've tried the xmltv option. I didn't delete the EIT source
      yet, perhaps I should. Now it still doesn't shut down properly but
      mythwelcome.log has different entries...<br>
      <br>
      2011-07-09 13:19:07.030 Locking input devices<br>
      2011-07-09 13:19:07.596 Unlocking input devices<br>
      2011-07-09 13:20:08.648 MythWelcome received a SHUTDOWN_NOW event<br>
      2011-07-09 13:22:10.686 MythWelcome received a SHUTDOWN_NOW event<br>
      2011-07-09 13:24:12.728 MythWelcome received a SHUTDOWN_NOW event<br>
      2011-07-09 13:26:14.264 MythWelcome received a SHUTDOWN_NOW event<br>
      2011-07-09 13:28:16.703 MythWelcome received a SHUTDOWN_NOW event<br>
      2011-07-09 13:30:17.645 MythWelcome received a SHUTDOWN_NOW event<br>
      2011-07-09 13:32:19.586 MythWelcome received a SHUTDOWN_NOW event<br>
      <br>
      Again, any help appreciated....<br>
      <br>
      John.</blockquote>
    OK deleting the EIT source didn't help but I think I worked out my
    problem...<br>
    <br>
    I found this in my mythbackend.log (should have looked in there
    earlier):<br>
    <br>
    2011-07-09 13:43:22.744 CheckShutdownServer returned - OK to
    shutdown<br>
    2011-07-09 13:43:22.802 Running the command to set the next
    scheduled wakeup time :-<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mythshutdown
    --setwakeup 2011-07-09T15:30:00<br>
    2011-07-09 13:43:22.946 Running the command to shutdown this
    computer :-<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mythshutdown
    --shutdown<br>
    sudo: no tty present and no askpass program specified<br>
    sudo: no tty present and no askpass program specified<br>
    2011-07-09 13:44:22.758 Waited more than 60 seconds for shutdown to
    complete - resetting idle time<br>
    <br>
    Has something changed so that mythshutdown now uses sudo to shut
    down mythtv? I don't really want to have to enter a password to shut
    the box down.<br>
  </body>
</html>