[mythtv-users] Sleep mythfrontend from remote

Hika van den Hoven hikavdh at gmail.com
Tue Jan 20 21:21:23 UTC 2015


Hoi Peter,

Tuesday, January 20, 2015, 10:16:16 PM, you wrote:

> On 01/20/2015 11:42 AM, Josu Lazkano wrote:
>> Hello list,
>>
>> I have a frontend in the bedroom and I want to configure to shutdown
>> in a certain time (30/60/90 minutes). Maybe a bash script executed
>> with a remote key.
>>
>> Anyone got it?
>>
>> Regards.
>>
> Maybe this is what you want (these are the settings I use so that when
> somebody goes away and leaves it running it eventually shuts down):

> Front end idle
(Setup->>Video->Playback) Live TV idle timeout 60
Setup->>general->shutdown/reboot settings -> idle time before entering
> standby mode (mins) -> 5

> These apply to shutting off if you are watching live tv. If you are
> watching a recording if will play to the end of it.

> In conjunction with these I have a bash script that shuts down the
> system when there is no connection to the backend.
> This runs continuously

>     while true ; do
>         sleep 300
>         if  $scriptpath/mythshutdown.sh ; then
>             setsid $scriptpath/systemshutdown.sh || true
>         fi
>     done

Why not put that in cron? I have jobs in cron (or actualy fcron)
running every minute to check on processes I want to restart if they
for whatever reason crash. Like mythbackend, or dhcpd. Fcron at the
same time then mails me.

> This is part of monitor.sh. See the script and the other scripts here
> http://mythtv-scripts.googlecode.com/svn/trunk/install/opt/mythtv/bin

> Peter




> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org





Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens



More information about the mythtv-users mailing list