Re: [dev] How to monitor battery status

From: Stefan Mark <mark_AT_unserver.de>
Date: Mon, 20 Jun 2011 13:26:27 +0200

On 20.06.2011 12:47, Kurt H Maier wrote:
> 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.
>
On one of my system im really concerned about the ram usage.
But mostly its because i dont like to waste resources. It just nags me
having a perl script running that uses twice the memory as the window
manager just to display some status information. And it adds up. 2 for
the status, 6 for a python based notifier, maybe a wallpaper changer or
a udev daemon...
Received on Mon Jun 20 2011 - 13:26:27 CEST

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