[mythtv-users] Power off from remote

R. G. Newbury newbury at mandamus.org
Fri Aug 10 16:13:17 UTC 2012


On 08/10/2012 09:57 AM, Thomas Boehm wrote:
> Joel Ebel wrote:
>> I got around to setting up wake-on-lan, and I have a widget on my
>> phone to easily turn on my frontend, but now I need a way to get my IR
>> remote to turn off the frontend.  What's the best way to do this?  Is
>> there an existing keybinding that can be used to immediately shut down
>> or suspend a front-end?  Perhaps I could set it up as a keystroke
>> event handler, and have mythtv's lircrc create that keystroke.
>> Alternatively, I could do it outside of mythtv with irexec, but I
>> already run irexec on demand when I use mythgames, and running a
>> separate one with a separate config file just to shut down my machine
>> seems excessive if mythtv could already do it.  I'm curious how other
>> people are handling this.
>
>
> cat /home/mythtv/.lirc/irexec
> # LIRCRC Auto Generated by Mythbuntu Lirc Generator
> # Author(s): Mario Limonciello, Nick Fox, John Baab
> # Created for use with Mythbuntu
>
> begin
>      remote = mceusb
>      prog = irexec
>      button = Clear
>      config = /path/to/script1
>      repeat = 2
>      delay = 3
> end
>
> begin
>      remote = mceusb
>      prog = irexec
>      button = Power
>      config = /path/to/script2
>      repeat = 0
>      delay = 0
> end


You are partway there. This has been discussed before. You will need a 
key on your remote to dedicate for this. You can use the same key to 
toggle the frontend on and off. The scripts are given in this thread:

http://www.gossamer-threads.com/lists/mythtv/users/488979?search_string=newbury%20remote%20irexec;#488979


G




More information about the mythtv-users mailing list