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

Re: Automatically suspend when X minutes battery time remain.



On Thu, 23 Jan 2003, Alex Polite wrote:

> I have apm + apmd installed on my notebook. I can successfully "apm -s"
> from command line and resume by pressing the power on button.
>
> I want the system to automatically suspend when x minutes of battery
> time remain.
>
> I read the man for apmd and apm but still couldn't figure
> this one out. I did some googling but didn't manage to narrow the
> searches down to what I wanted.
>
> alex

Well, my laptop returns it's battery percentage remaining in /proc/apm
near the end, you could build yourself a very simple script to parse that
every minute or so, and have it apm -s when it hits the value you want.



Reply to: