[mythtv-users] how to get mythweb to tell backend not to shutdown?

Andrew Wilson migmog at gmail.com
Tue Oct 3 14:34:13 UTC 2006


My backend is configured to shut down if it is idle for 10 minutes. I
can use wake on lan to wake it up manually. It works well, with a few
caveats. The main problem is that when i'm farting about with mythweb
- scheduling recordings mainly - the backend still thinks that it is
idle.

Currently I get around this by logging into the backend. My .bashrc
calls mythshutdown --lock, and my .bash_logout (or whatever it's
called) calls mythshutdown --unlock. When I'm done mythwebbing, I log
out.

How hard would it be to fix this? I'm thinking something like this...
mythweb timestamps a database entry every time a page changes.
mythbackend idle check looks for this timestamp entry before deciding
it's really idle, and goes around 10 minute loop again if the
timestamp is recent.


Other things that would get this to work a bit better:
- get wake on lan working from S3 (suspended) for quicker backend
wakeup. Currently this seems to be broken on e100 ethernet driver
- point my browser to a redirector script which checks to see if the
backend is up or not. Wakes it up if not and displays a message /
progress dialog. Redirects straight to mythweb if it is up.

Has anyone done any work along these lines?


More information about the mythtv-users mailing list