[mythtv-users] Tapping/monitoring devinput events

Craig Huff huffcslists at gmail.com
Mon Jun 20 13:12:17 UTC 2011


On Jun 20, 2011 6:49 AM, "dargllun" <dargllun at googlemail.com> wrote:
>
> Hello,
>
> I'm using lircd with devinput to control Myth. I would like to extend my
> home-grown shutdown monitor script to keep the system idle as long as
> there are still commands coming in from the remote control.
>
> I looked that the System Events bits in the configuration, but was not
> able to create a script which would be called upon input events.
>
> How could I archieve this?
>
> TIA,
> Greg

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.

Craig.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20110620/013f077e/attachment.html 


More information about the mythtv-users mailing list