About dbus for hardware events

मयंक जैन (makuchaku) mayank.gnu at gmail.com
Wed Apr 4 23:07:46 PDT 2007


On 4/5/07, Swetha Ranganathan <swetha_r17 at yahoo.com> wrote:
> Hi!
>
> I have a simple hello application for Maemo. I want the application to react
> to hardware events like battery events, alarm etc. That is, if one of these
> hardware events occur, the application should receive the event and do an
> appropriate task. I would like to know how this could be done by attaching
> dbus feature to the application. I have attached the simple hello.c program.
> Can anyone please tell me what statements of code I should add for the dbus
> feature?

Hi Swetha,

What you are looking for is listening for signals generated from HAL
(org.freedesktop.Hal) ...& to see exactly how you can do this, have a
look at the documentation section of
http://www.freedesktop.org/wiki/Software/dbus

:)
I hope this helps...

--
makuchaku
http://www.makuchaku.info/blog


More information about the dbus mailing list