acpid

Richard Hughes hughsient at gmail.com
Fri Sep 15 01:42:37 PDT 2006


On Fri, 2006-09-15 at 09:26 +0100, samata talera wrote:
> thanks a lot for the reply.
> i have already written a mount program which wud take the details from
> udev and mount the hotpluggable device without use of hal or g-v-m.

Why?

> i am now trying to write a power manager which wud have support for
> battery, ac_adaptor and frequency...

But HAL can already abstract this for you. To abstract the concept of a
battery is a vast task, something that we (hal guys) have been working
on for years.

> as u replied, the lshal gives only the data related to the cpu,fan
> etc. but i want to write a code which wud perform an appropriate
> action on an event which has occured (present in /proc/acpi/event).
> so for that i need to poll this file(proc/acpi/event) and identify the
> event occured and check for the action from /etc/acpi/, and perform
> that particular action.
> am i going the right way....

No. You are re-designing the wheel for no real gain. acpid is really not
the best service to be designing a power management solution around.

Richard.




More information about the hal mailing list