[mythtv-users] Power off Television after period of time with no user input.

Bryan Cromwell bcromwell.mailinglists at gmail.com
Wed Jul 23 01:11:23 UTC 2008


Here is the script I use, Was made for Minimyth but you can modify the sleep
command and it will prob work for most any system.

http://minimyth.org/forum/viewtopic.php?t=1470

The only thing I really added was this bit of code(to checkbuttonpress) to
use osd_cat to display a message on the screen. I used osd_cat since
mythnotify only works in livetv and videos.

echo `date` 'check last button push:' $DIFF '
seconds'>>/home/minimyth/messages
if [ $DIFF -gt 5000 ] # at 5000 seconds let user know getting ready for
sleep mode
then
echo "!! Getting ready to go in to sleep mode press any button to abort !!"|
osd_cat -d 10
fi


On Thu, Jul 17, 2008 at 4:52 PM, Kevin Robbins <robbinsck1 at gmail.com> wrote:

> I'm looking for pointers for the following.
>
> I remember reading that someone had done this with a usb-uirt, lirc and
> cron.
>
> Here is exactly what I'd like to do.
>
> Run a cron job every 2 hours that checks to see if A) There has been
> any remote signals sent and B) Check if Myth is playing a video or is
> just idle.
>
> If both conditions are met, I'd like to display a notice that lasts
> for 10-20 seconds (which a keypress will cancel) or send a power off
> command to the Television.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20080722/9dc6d47b/attachment.htm 


More information about the mythtv-users mailing list