Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Power off Television after period of time with no user input.

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


robbinsck1 at gmail

Jul 17, 2008, 1:52 PM

Post #1 of 4 (589 views)
Permalink
Power off Television after period of time with no user input.

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
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


myth at dermanouelian

Jul 17, 2008, 2:00 PM

Post #2 of 4 (573 views)
Permalink
Re: Power off Television after period of time with no user input. [In reply to]

On Jul 17, 2008, at 1:52 PM, Kevin Robbins 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.

Mine does this by default with xscreensaver and DPMS. It actually just
puts the TV to sleep instead of off which I prefer because then a
keypress on the remote wakes it back up again.

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


robbinsck1 at gmail

Jul 18, 2008, 6:00 AM

Post #3 of 4 (535 views)
Permalink
Re: Power off Television after period of time with no user input. [In reply to]

On Thu, Jul 17, 2008 at 5:00 PM, Brad DerManouelian
<myth [at] dermanouelian> wrote:
> On Jul 17, 2008, at 1:52 PM, Kevin Robbins 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.
>
> Mine does this by default with xscreensaver and DPMS. It actually just
> puts the TV to sleep instead of off which I prefer because then a
> keypress on the remote wakes it back up again.
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

Yeah My TV goes to sleep (sorta) it goes black and says no input but
the backlight is still on and kinda hard to detect, so it gets
overlooked like its off.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


bcromwell.mailinglists at gmail

Jul 22, 2008, 6:11 PM

Post #4 of 4 (475 views)
Permalink
Re: Power off Television after period of time with no user input. [In reply to]

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> 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
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.