how to make KEY_POWER work in terminal system

Lars-Peter Clausen lars at metafoo.de
Thu Nov 12 07:51:49 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Xiangfu Liu wrote:
> Hi
> 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:
>>> Xiangfu,
>>>
>>> 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.
>
>
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkr8BOUACgkQBX4mSR26RiMLtACdGFKhOFbyPXHxKt52WvV0Loq2
EJEAn31p39nzH95G2fqUkZ/6ETeDFnOz
=1VjS
-----END PGP SIGNATURE-----





More information about the discussion mailing list


interactive