how to make KEY_POWER work in terminal system
lars at metafoo.de
Thu Nov 12 07:51:49 EST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Xiangfu Liu wrote:
> I search a little about HAL and DeviceKit. do you think it's
> complicate for Ben? (just to handle the power key)
> I think maybe ATTACH is a better solution.
> disable the GPIO keys and write a driver for power button.
> Lars what do you think?
> Xiangfu Liu wrote:
>> Dmitry Torokhov wrote:
>>> I don't think you want to write a demon from scratch really. I don't
>>> know your platform/framework but I would expect you are using some
>>> kind of HAL daemon/layer that handles power mamagement and other system
>>> functions. That framework should handle powering off as well.
I think HAL or DeviceKit whould be way to bloated.
A simple script reading from the buttons event file should be enough
- - 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