Subject: New power management framework for sysmon
To: None <current-users@netbsd.org>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: current-users
Date: 04/17/2003 22:52:33
Folks...

Wasabi Systems, Inc. has contributed (and I have just checked in) some 
basic support for taking action when the power-related buttons on your 
ACPI-aware PC are pressed.  They now generate events in a new generic 
power management framework that is part of the system monitoring 
pseudo-device, sysmon.

As a companion to this, there is a new power management daemon, 
powerd(8), which can run scripts based on these events, in order to 
implement the power management policy defined by the system 
administrator.

This stuff is very much a work-in-progress, and I am hoping that folks 
will step up to convert e.g. APM and the other power management 
implementations that emulate APM currently over to the new framework.  
Obviously, some additional work on the new framework will be needed.  I 
have a pretty good idea about what it should all look like, so if 
you're interested in working on it, please contact me off-list, and we 
can chat about it.

In any case, the upshot is that if you have ACPI enabled, and you're 
running powerd(8), you can press the power button, and the system will 
perform a graceful shutdown.  This is much better than the previous 
situation :-)

Enjoy!

         -- Jason R. Thorpe <thorpej@wasabisystems.com>