how to make KEY_POWER work in terminal system

Xiangfu Liu xiangfu at qi-hardware.com
Thu Nov 12 10:00:45 EST 2009


Lars-Peter Clausen wrote:
> Hi
> 
> I think HAL or DeviceKit whould be way to bloated.
> A simple script reading from the buttons event file should be enough
> for now.
> 
> - Lars
I try to write a daemon to handle the poweroff, attach is the simple one.

but I think there is some problem with the WAKEUP irq. 
it's not always print the message when I press the power key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: findkey.c
Type: text/x-csrc
Size: 560 bytes
Desc: not available
URL: <http://lists.en.qi-hardware.com/pipermail/discussion/attachments/20091112/5f42e907/attachment.c>


More information about the discussion mailing list


interactive