ACPI CMBAT notify's never reach devd?
nate at root.org
Thu Jan 14 17:42:47 UTC 2010
Guido van Rooij wrote:
> On Wed, Jan 13, 2010 at 05:55:42PM -0800, Nate Lawson wrote:
>> Most battery systems don't generate the notifies on level changes. So
>> our ACPI battery implementation itself is polled. You should probably
>> just run a cron job that checks the level.
> That can be done of course, but devd seems a better place.
Yes, I just meant for now.
>> Perhaps we could add a low and high mark to the kernel code,
>> configurable by the user. It would be checked by the cmbat polling code
>> and generate an artificial notify to devd if there was a match.
> Can you tell me which function in acpi_cmbat is used for polling,
> as it seems to me thee is no regular polling. There is a define
> CMBAT_POLLRATE but it is never used.
It's been a long time since I looked at the code. I think it does it
synchronously, in the context of a user requesting the value. So we
don't have a periodic polling thread currently.
More information about the freebsd-acpi