how to make KEY_POWER work in terminal system
lars at metafoo.de
Sun Nov 15 19:46:57 EST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Xiangfu Liu wrote:
> Hi lars I try the /dev/input/event1 (the keyboard) all keys work
> but the /dev/input/event0 (power button) always have problem. I
> think it's hardware issue.
I took a look at the problem:
The gpio-keys driver needs support for irqs which are triggered on
falling and rising edges.
The jz4740 supports only falling or rising edge. I added some code to
the gpio irq handler to emulate the desired behaviour.
Your daemon should work fine now.
- - Lars
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the discussion