[maemo-developers] [maemo-developers] Battery Management X Maemo

From: Kalle Vahlman kalle.vahlman at gmail.com
Date: Thu Dec 22 09:46:08 EET 2005
On 12/22/05, geovane at larces.uece.br <geovane at larces.uece.br> wrote:
> Hi all!
> I have a problem:
> I need to discover the level of available battery of the device. I return
> this value to an application that it aims at to save energy. I have only
> two problems:
> 1.  I do not have Nokia 770 :P
> 2.  The directory that could contain the information,
> /proc/acpi/battery is empty - why it will be? XP

If you are talking about the one showing up in scratchbox, that's you
machines "real" proc you are looking at. It shows the battery on this
laptop just fine, but AFAIK will be of no use on the 770.

> Well, is possible to get these information in the Maemo?

You can listen to certain dbus signals to find out a rough number (I
think it was in four or five steps of battery level?), but I'm afraid
anything more detailed than that is not available.

Someone with the approperiate signals at hand and more details should
probably add it to the wiki, this feels like a thing that will be of
interest to many...

--
Kalle Vahlman, zuh at iki.fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi

More information about the maemo-developers mailing list