Re: Runlevel for powersaving
On Wed, May 02, 2001 at 02:01:26PM -0400, Alan Shutko wrote:
>Arthur Korn <firstname.lastname@example.org> writes:
>> Looking at apmd(8), it seems "change power" would fit, but
>> unfortunately it doesn't tell you wheter AC was plugged in or
>Your script could query `apm | grep on-line` or something.
The apmd package contains a little program called /usr/bin/on_ac_power
to determine the AC/battery status.
Brendan O'Dea email@example.com
Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633