<!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 14:06, Dave Brown wrote:
<blockquote
cite="mid:CAFytjzhdy3xv-bOPpEwJZrr4EVUYcBC73Hh7MoDP2SNP-n1YwQ@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">On Sat, Jul 9, 2011 at 1:49 PM, John Reid
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:johnbaronreid@netscape.net">johnbaronreid@netscape.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
<div>
<div class="h5"> <br>
<br>
On 09/07/11 13:33, John Reid wrote:
<blockquote type="cite"> <br>
<br>
On 09/07/11 11:51, John Reid wrote:
<blockquote type="cite"> <br>
<br>
On 09/07/11 11:24, Paul Wootton wrote:
<blockquote type="cite"><br>
<div>
<div>On 9 Jul 2011, at 11:17, John Reid wrote:</div>
<br>
<blockquote type="cite">
<div bgcolor="#ffffff" text="#000000"> <br>
<br>
On 09/07/11 11:03, Paul Wootton wrote:
<blockquote type="cite"><br>
<div>
<div>On 9 Jul 2011, at 10:25, John Reid
wrote:</div>
<br>
<blockquote type="cite">
<div bgcolor="#ffffff" text="#000000">
On 09/07/11 06:40, Phill Edwards
wrote:
<blockquote 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;"> 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>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"
target="_blank">mythtv-users@mythtv.org</a><br>
<a moz-do-not-send="true"
href="http://www.mythtv.org/mailman/listinfo/mythtv-users"
target="_blank">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? 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"
target="_blank">mythtv-users@mythtv.org</a><br>
<a moz-do-not-send="true"
href="http://www.mythtv.org/mailman/listinfo/mythtv-users"
target="_blank">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>
</div>
</div>
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>
mythshutdown
--setwakeup 2011-07-09T15:30:00<br>
2011-07-09 13:43:22.946 Running the command to shutdown this
computer :-<br>
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>
</div>
<br>
_______________________________________________<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"
href="http://www.mythtv.org/mailman/listinfo/mythtv-users"
target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<br>
</blockquote>
</div>
What do you have in your /etc/sudoers file<br>
<br>
sounds like you might need to setup sudo to allow it to run
mythshutdown <br>
<br>
%mythtv ALL = NOPASSWD: /sbin/shutdown, /bin/sh,
/usr/bin/setwakeup.sh, /usr/bin/mythshutdown<br>
<br>
replace mythtv with user you use to run mythshutdown<br>
<br>
There is a guide on the wiki to setup mythwelcome and
mythshutdown, Ive had to follow it again after an ugprade in the
past. It might be worth going through it again.<br>
<br>
Hope this helps
</blockquote>
It certainly does help. I just figured this out on my own and came
back to post it.<br>
<br>
Thanks,<br>
John.<br>
</body>
</html>