LinHES Forums
http://forum.linhes.org/

MythTV's Auto-Shutdown Works ... Sometimes?
http://forum.linhes.org/viewtopic.php?f=17&t=17798
Page 1 of 1

Author:  tzoom84 [ Thu Jan 31, 2008 2:46 pm ]
Post subject:  MythTV's Auto-Shutdown Works ... Sometimes?

So I've had the auto-wake and auto-shutdown working flawlessly since last summer. Essentially it runs a preshutdown scripts after 4 idle minutes and mythfrontend is not running.

Lately I've noticed the auto-shutdown has been a little spotty. Sometimes it works, sometimes not. Looking at the backend logs, I can only tell when it is IDLE, but not why it is NOT idle.

Normally the backend log says something like, "I'm Idle Now, Shutting Down in xxx seconds ...". And then the preshutdown script runs and logs the results. I just sometimes don't get that "I'm Idle Now" message.

Any ideas why MythTV may not think it's idle? Or alternately, ideas on how to even debug this?

Once again, I appreciate your help!

Author:  bigB [ Thu Jan 31, 2008 4:17 pm ]
Post subject: 

Hi,

I have noticed this to. One offending program is MTD (mythtranscode Deamon which is used to rip DVDs). This doesn't cover all of my occurences.

BigB.

Author:  tzoom84 [ Mon Feb 04, 2008 5:57 pm ]
Post subject: 

bigB wrote:
Hi,

I have noticed this to. One offending program is MTD (mythtranscode Deamon which is used to rip DVDs). This doesn't cover all of my occurences.

BigB.


I think I found the culprit, TVWish. Its an unofficial plugin that is probably the closest myth is to a Tivo suggestions-like plugin. The plugin is pretty solid, however, it seems to trick my mythbackend into thinking a mythfrontend is still running. I found that others had the same problem back in 2006 on the mythtv forum.

Unfortunately, I couldn't find any solutions on there. Anyone have any suggestions on how to fix this bug with TVWish? I don't mind doing it, I just don't know where to start.

(Also, BigB, how have you fixed the issue with MTD?)

Author:  tzoom84 [ Tue Feb 05, 2008 4:56 pm ]
Post subject: 

I was able to contact the creator of TVWish, Brad Templeton. His response was,

Quote:
I've never seen the problem though I don't shut down my boxes.
I put in some debug code to look at the protocol but can't see
anything it does wrong. It's been a while but nothing new has
come up.


So when I get a chance I'll try and play around with the debug code within TVWish and/or mythbackend. However, I'm not sure how to debug the backend itself. Any ideas?

Author:  bigB [ Tue Feb 05, 2008 5:05 pm ]
Post subject: 

Tzoom84,

I haven't fixed the problem with MTD, I only run it as required, and now that i'm aware of it, i kill it manually when finished.

BigB.

Author:  tzoom84 [ Tue Feb 05, 2008 5:37 pm ]
Post subject: 

bigB wrote:
Tzoom84,

I haven't fixed the problem with MTD, I only run it as required, and now that i'm aware of it, i kill it manually when finished.

BigB.


How do you kill it manually? I was thinking of something similar. Instead of the debugging, I can just have it run daily at an off-time like 4AM, and just auto-restart the backend after TVWish's runwish script completes. Killing tvwish manually instead seems better and less 'harsh' than a hard restart.

Author:  bigB [ Tue Feb 05, 2008 5:41 pm ]
Post subject: 

I type "killall mtd" into a command line.

Crude i know, I don't do it that often so i'm not concerned.

Author:  alien [ Wed Feb 06, 2008 2:47 am ]
Post subject: 

I had problems like this once when I had no video sources connected to the box. I fixed this be re-adding a source with a channel.
tzoom84 wrote:
Brad Templeton

Now THERE'S a blast-from-the-past :wink:

Author:  ChapmanI [ Wed Feb 06, 2008 8:08 pm ]
Post subject: 

You could always put the "killall mtd" in a script run as a cron job just before your 4:00 am shutdown - like 3:59 am.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/