[patch] make ACPI event call libhal_device_rescan

David Zeuthen david at fubar.dk
Wed Mar 2 14:19:37 PST 2005


On Wed, 2005-03-02 at 22:02 +0000, Richard Hughes wrote:
>On Wed, 2005-03-02 at 16:32 -0500, David Zeuthen wrote:
>>OK, maybe it's just the ACPI code on my Thinkpad T41 that is broken; I
>>should test this on my Dell too. I've committed some code to do the
>>refresh on this event; it seems to work fine for me also when removing
>>the battery since I do get the events there. I've also added code to
>>poll every ten seconds so it sort-of-works even for my broken laptop.
>
>Quality, I just might be the odd-one-out here with my Toshiba A10. With
>the polling, is there going to be a key on battery like
>battery.poll_delay? i.e. setting it to zero would stop the polling, but
>you could increase the resolution by setting the poll_delay lower at the
>expense of disk I/O. That way we wouldn't need any nasty kludges
>checking for different types of battery or set a system-wide default.

I don't think this is needed at all - the polling doesn't incur any I/O
on hard drives or other battery intensive things; it's just reading data
exposed by the kernel in /proc.

David


_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list