Subject: Re: AC adapter event
To: None <lukem@NetBSD.org>
From: Takayoshi Kochi <kochi@netbsd.org>
List: port-i386
Date: 05/03/2004 11:00:28
Hi,

> On Sun, May 02, 2004 at 11:40:48PM +0900, Takayoshi Kochi wrote:
>   | Hi all,
>   | 
>   | I'd like to add ACPI AC adapter event support for powerd(8).
>   | With recent commit of Enhanced SpeedStep stuff, it'll be useful
>   | to change power-consumption status of CPU.  Patches to the kernel
>   | and the powerd are attached.
> 
> Looks good to me.

Thanks.

>   | Sample /etc/powerd/scripts/acadapter is also attached.
>   | 
>   | Please note that powerd(8) can only react against events _after_
>   | it's executed, and it doesn't know the initial status at boot.
> 
> That's slightly unfortunate, but apparantly of our control.

We want some kind of power management policy control in the long run.

But doing initial state control in powerd seems to me too much right now.
You can do something in rc.local or whatever using envstat, sysctl etc. now.

---
Takayoshi Kochi