Subject: Re: PROPOSAL: API for environmental sensors
To: Bill Studenmund <wrstuden@nas.nasa.gov>
From: Erik Fair <fair@clock.org>
List: tech-kern
Date: 11/16/1999 14:00:01
At 9:28 -0800 11/16/99, Bill Studenmund wrote:

>What exactly would this discipline do?

Mostly, convert the UPS serial protocol into something useable by 
both the kernel power manager, and possibly a user-space daemon to 
decide on what to do when various events are handed to it (e.g. "city 
power gone; 5 min to bye-bye").

Perhaps that daemon is /sbin/init. Such a daemon would need to be 
around in single user mode, on the presumption that a power fail has 
occurred, the system has been shut down to single user mode, the UPS 
is about to run out of battery, but you don't want to send a "power 
off" signal to the hardware because that will prevent the system from 
coming back up without external intervention when power returns (I 
know that SPARCs with software power off behave this way).

	Erik <fair@clock.org>