Re: Runlevel for powersaving

2001-05-03 Thread Brendan O'Dea
On Wed, May 02, 2001 at 02:01:26PM -0400, Alan Shutko wrote:
Arthur Korn [EMAIL PROTECTED] 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.

Regards,
-- 
Brendan O'Deabod@compusol.com.au
Compusol Pty. Limited  (NSW, Australia)  +61 2 9810 3633




Re: Runlevel for powersaving

2001-05-02 Thread Arthur Korn
Ho

[EMAIL PROTECTED] schrieb:
 I have a suggestion, Why not define Runlevel 35 as
 Powersaving mode console/powersaving mode graphics and put
 some laptop specific services in those runlevels.

I did a very similar thing on my notebook as well, it's really
nice, but using apmd events for this would be even cuter,
since apm knows when AC is plugged in anyway.

Looking at apmd(8), it seems change power would fit, but
unfortunately it doesn't tell you wheter AC was plugged in or
out. Maybe something like change power [ AC | battery ] would
serve better ...

ciao, 2ri
-- 
Nearly all men can stand adversity, but if you want to test a man's
character, give him power.
-- Abraham Lincoln




Re: Runlevel for powersaving

2001-05-02 Thread Alan Shutko
Arthur Korn [EMAIL PROTECTED] 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.

-- 
Alan Shutko [EMAIL PROTECTED] - In a variety of flavors!
According to the obituary notices, a mean and unimportant person never dies.