You need to use irexec (make it run at system startup), then change your config to...<br><br>begin<br> prog = irexec<br> button = Power<br> config = /local/power.sh &<br>end<br><br>That should then work (so long as /local/power.sh is the correct path to your script),
<br>Ash.<br><br><br><div><span class="gmail_quote">On 22/03/06, <b class="gmail_sendername">James Armstrong</b> <<a href="mailto:james@thearmstrongs.org">james@thearmstrongs.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>On Mar 21, 2006, at 10:22 PM, Sean Watkins wrote:<br><br>> Hi,<br>><br>> I started using MythTV a few days ago. I have gone and customized the<br>> lircrc in ~mythtv/.mythtv as to how I wanted it. Basically some
<br>> buttons were setup kind of weird.<br>><br>> I would like to run a power down script (which sends a Power Off to<br>> my TV and Home Theatre System) whenever I push the power button on my<br>> remote.<br>
><br>> My lircrc contains this:<br>> ...<br>> begin<br>> prog = mythtv<br>> button = Power<br>> config = /local/power.sh &<br>> end<br>> ...<br>><br>I don't know a good answer because I am no expert, but I was just
<br>looking at the lirc code in myth for another issues I had and saw<br>there is a configurable external script that can be run on each<br>keypress. I don't know if the key that was pressed is passed or not,<br>I don't have the code in front of me now. It is mainly used so you
<br>can have feedback from keypresses such as an led.<br><br>Look at lirc.cpp in libs/libmythtv<br><br>- James<br><br>> But it doesn't do anything - I get this error<br>><br>> LircClient warning: attempt to convert '/local/power.sh &' to a key
<br>> sequence failed. Fix your key mappings.<br>><br>><br>> Ideas?<br>><br>> Sean<br>><br>><br>><br>> _______________________________________________<br>> mythtv-users mailing list<br>>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>> <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br><br>_______________________________________________
<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br></blockquote></div><br>