Subject: Re: AC adapter event
To: Takayoshi Kochi <kochi@netbsd.org>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: port-i386
Date: 05/03/2004 13:41:23
--Apple-Mail-6-82985139
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed
On May 2, 2004, at 7:40 AM, Takayoshi Kochi wrote:
> 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.
Thanks for doing this work. This is exactly what I had in mind when I
implemented powerd(8) the way I did ... put all of the heavy lifting
into scripts that can be configured to do the right thing through the
use of other tools.
> Please note that powerd(8) can only react against events _after_
> it's executed, and it doesn't know the initial status at boot.
Hm. Perhaps things like AC Adapter drivers should enqueue their
initial state when the driver attaches, and sysmon_power should allow
certain types of events to be enqueued regardless of something
listening on the sysmon_power communication device. That would allow
powerd(8) to notice the initial state of an AC Adapter as soon as it
starts up.
-- Jason R. Thorpe <thorpej@wasabisystems.com>
--Apple-Mail-6-82985139
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQFAlq5zOpVKkaBm8XkRAtdrAJ49ntqiFeRX0BbCdgS5R5JlDZNNEgCgu1nF
0lIOZgwp3JWIjp5lTanzy88=
=DMKZ
-----END PGP SIGNATURE-----
--Apple-Mail-6-82985139--