[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Runlevel for powersaving

On Wed, May 02, 2001 at 02:01:26PM -0400, Alan Shutko wrote:
>Arthur Korn <arthur@korn.ch> writes:
>> Looking at apmd(8), it seems "change power" would fit, but
>> unfortunately it doesn't tell you wheter AC was plugged in or
>> out.
>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                                        bod@compusol.com.au
Compusol Pty. Limited                  (NSW, Australia)  +61 2 9810 3633

Reply to: