how to make KEY_POWER work in terminal system

Xiangfu Liu xiangfu at
Sat Nov 14 02:14:14 EST 2009

Hi lars
I try the /dev/input/event1 (the keyboard)
all keys work fine.

but the /dev/input/event0 (power button) always have problem.
I think it's hardware issue.

Lars-Peter Clausen wrote:
> Hash: SHA1
> Xiangfu Liu wrote:
>> 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.
> Do you think that it is a hardware or a software issue?

More information about the discussion mailing list