[mythtv-users] mythwelcome doesn't shut down

Dave Brown davebrown099 at gmail.com
Sat Jul 9 13:06:20 UTC 2011


On Sat, Jul 9, 2011 at 1:49 PM, John Reid <johnbaronreid at netscape.net>wrote:

> **
>
>
> On 09/07/11 13:33, John Reid wrote:
>
>
>
> On 09/07/11 11:51, John Reid wrote:
>
>
>
> On 09/07/11 11:24, Paul Wootton wrote:
>
>
>  On 9 Jul 2011, at 11:17, John Reid wrote:
>
>
>
> On 09/07/11 11:03, Paul Wootton wrote:
>
>
>  On 9 Jul 2011, at 10:25, John Reid wrote:
>
>  On 09/07/11 06:40, Phill Edwards wrote:
>
> I've set my MythTV up so that it shuts down when not in use. Recently it
>
>> has stopped shutting down. The countdown goes from 60 seconds to 10
>> seconds but then resets back to 60 instead of turning off. A tail of
>> mythwelcome.log looks like this:
>>
>
> 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.
>
> I did check that. You don't get the countdown if you've locked it.
>
> Any help appreciated. I don't really know where to investigate next. What
> are the
>
> 2011-07-08 14:48:29.421 MythWelcome received a SCHEDULE_CHANGE event
>
>
> Could the schedule change events be relevant to this?
>
> Thanks,
> John.
>  _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
>
> 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.
>
>  -- Paul --
>
> 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?
>
> So the schedule change event might be an update from EIT that's stalling
> the shutdown?
>
> John.
>
>  _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
>
>  |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.
>
> I'm having a go now. I'll let you know if it fixes it.
>
> 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...
>
> 2011-07-09 13:19:07.030 Locking input devices
> 2011-07-09 13:19:07.596 Unlocking input devices
> 2011-07-09 13:20:08.648 MythWelcome received a SHUTDOWN_NOW event
> 2011-07-09 13:22:10.686 MythWelcome received a SHUTDOWN_NOW event
> 2011-07-09 13:24:12.728 MythWelcome received a SHUTDOWN_NOW event
> 2011-07-09 13:26:14.264 MythWelcome received a SHUTDOWN_NOW event
> 2011-07-09 13:28:16.703 MythWelcome received a SHUTDOWN_NOW event
> 2011-07-09 13:30:17.645 MythWelcome received a SHUTDOWN_NOW event
> 2011-07-09 13:32:19.586 MythWelcome received a SHUTDOWN_NOW event
>
> Again, any help appreciated....
>
> John.
>
> OK deleting the EIT source didn't help but I think I worked out my
> problem...
>
> I found this in my mythbackend.log (should have looked in there earlier):
>
> 2011-07-09 13:43:22.744 CheckShutdownServer returned - OK to shutdown
> 2011-07-09 13:43:22.802 Running the command to set the next scheduled
> wakeup time :-
>                                                 mythshutdown --setwakeup
> 2011-07-09T15:30:00
> 2011-07-09 13:43:22.946 Running the command to shutdown this computer :-
>                                                 mythshutdown --shutdown
> sudo: no tty present and no askpass program specified
> sudo: no tty present and no askpass program specified
> 2011-07-09 13:44:22.758 Waited more than 60 seconds for shutdown to
> complete - resetting idle time
>
> 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.
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
> What do you have in your /etc/sudoers file

sounds like you might need to setup sudo to allow it to run mythshutdown

%mythtv ALL = NOPASSWD: /sbin/shutdown, /bin/sh, /usr/bin/setwakeup.sh,
/usr/bin/mythshutdown

replace mythtv with user you use to run mythshutdown

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.

Hope this helps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20110709/f22a4c29/attachment.html 


More information about the mythtv-users mailing list