how do hal works?
Andrwe Lord Weber
lord-weber-andrwe at renona-studios.org
Mon Mar 23 01:50:45 PDT 2009
Danny Kukawka schrieb:
> On Montag, 23. März 2009, Andrwe Lord Weber wrote:
>
>> Hi all,
>>
>> how do HAL get the values it offers?
>>
>
> From sysfs or proc, depending on your system and kernel/hal configuration.
>
>
In my kernel sysfs is active.
>> I'm asking because it sets a wrong value as present-rate of my battery:
>>
>> battery.charge_level.rate = 1889
>> battery.reporting.rate = 1889
>>
>> This I get as present rate from HAL that is why HAL also calculate a
>> wrong charge/discharge time.
>>
>> What can be wrong?
>>
>
> It shouldn't but it can be, e.g. if the kernel or the battery reports wrong
> values. You should check the info in sysfs/proc to see if something is wrong.
>
> Danny
> _______________________________________________
> hal mailing list
> hal at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/hal
>
I've checked both sysfs and procfs. In procfs all value are correct,
there is also a correct looking entry for present rate but I can't find
an entry of present rate in the sysfs files.
Regards,
Andrwe
More information about the hal
mailing list