Re: [dev] How to monitor battery status

From: Kurt H Maier <karmaflux_AT_gmail.com>
Date: Mon, 20 Jun 2011 06:47:35 -0400

On Mon, Jun 20, 2011 at 5:59 AM, ilf <ilf_AT_zeromail.org> wrote:
> I have done this the /proc/acpi/battery/BAT0/state | shell way for years and
> found it to be way more resource intense then calling acpi -b.
>
> Let's face it, the Shell/Perl/Python/whatever scripting is relatively easy,
> but very inefficient.

I update my status bar every 50 seconds. I sacrifice, for this,
approximately thirty seconds of battery life on a battery that lasts
on the order of seven hours to a charge. I'm not particularly
concerned by this 'inefficiency,' to be honest.

-- 
# Kurt H Maier
Received on Mon Jun 20 2011 - 12:47:35 CEST

This archive was generated by hypermail 2.2.0 : Mon Jun 20 2011 - 13:00:03 CEST