How to get info into HAL?
Richard Hughes
hughsient at gmail.com
Fri Jul 14 12:28:47 PDT 2006
On Mon, 2006-07-10 at 15:54 -0700, bsmith wrote:
> Hi
> I'm writing a battery driver for an ARM system and
> I'd like HAL to keep the battery info. HAL sees the /sys
> entry but it needs the current_charge info.
>
> - How do you get a property into HAL?
> - Is is part of the configuration in one of the udi files?
> - Does it need to be hard coded into a helper app?
> - If the later, how does HAL tie to the helper app?
> - Is there a programer's manual that describes all this?
It's probably best to write a little addon, you should look at the
addon-hid-ups addon for an example of how to extract the battery info
from a custom source and expose it in HAL.
Tell us how you get on.
Richard.
More information about the hal
mailing list