<p>On Jun 20, 2011 6:49 AM, "dargllun" <<a href="mailto:dargllun@googlemail.com">dargllun@googlemail.com</a>> wrote:<br>
><br>
> Hello,<br>
><br>
> I'm using lircd with devinput to control Myth. I would like to extend my<br>
> home-grown shutdown monitor script to keep the system idle as long as<br>
> there are still commands coming in from the remote control.<br>
><br>
> I looked that the System Events bits in the configuration, but was not<br>
> able to create a script which would be called upon input events.<br>
><br>
> How could I archieve this?<br>
><br>
> TIA,<br>
> Greg<br></p>
<p> Use irexec on top of current lirc config to touch a file for any/all key presses and have your script test if date (-u, IIRC -- seconds since epoch) minus file modification date is less than "n"seconds.</p>
<p>Craig.</p>