[mythtv-users] Slightly OT: can't get power button script to restart front end (From Jarod's guide)

Daniel Bennett danhome at vegasmicro.com
Thu Nov 3 16:29:00 EST 2005


Jon Kunze wrote:

> I have this
>
> begin
> prog = irexec
> button = OFF
> repeat = 4
> config = /usr/local/bin/mythpowerbutton.sh
> end
>
> Assigned to my power button, just the same as Jarod's guide, and yet 
> when I press the button, it doesn't shutdown mythfrontend, nor does it 
> restart it if it has crashed. Hence my tring to execute it manually.
>
> On 11/3/05, *Neil Bird* <neil at fnxweb.com <mailto:neil at fnxweb.com>> wrote:
>
>     Around about 03/11/05 12:35, Jon Kunze typed ...
>     > $irexec /usr/local/bin/mythpowerbutton.sh
>     > That is when i get the error on line 2 (or atleast I assume the
>     :2 means
>     > that the error is on line two.
>
>        irxec takes a config. file, not an executable argument (man
>     irexec).
>
>        You want 'irexec --daemon' with the following somewhere in your
>     ~/.lircrc:
>
>     # Power Off/Exit
>     ##begin
>     ##prog = mythtv
>     ##button = OFF
>     ##config = Esc
>     ##end
>     begin
>     prog = irexec
>     button = OFF
>     repeat = 4
>     config = /usr/local/bin/mythpowerbutton.sh
>     end
>
>
>        Ref. http://wilsonet.com/mythtv/tips.php
>

Make sure the button entry is has the same name as your power button as 
detailed in your lirc.conf
My power button is listed as "Power" not "OFF"


More information about the mythtv-users mailing list