I don't know lirc very well, but you might want to look into the lircrc file to handle this problem. The lirc web page has more details. I hope this helps.



On Tue, Sep 23, 2008 at 12:44 AM, Nan Null <hovh03@yahoo.com> wrote:
If user accidentally press the power button, the multimedia machine shutdown.  I need to capture this, and at least show a confirmation dialog.  How do I handle this?  I heard that if I put a event handler script in lircd.conf for the power button, it would call the script instead of shutting down.  Is that correct?  Do I have to edit the bios or some other thing to prevent it from shutting down?
Also, how do I know which code to map to the power button?




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/