[maemo-developers] [maemo-developers] LibOSSO, DBUS and Battery

From: Antonio Orlando ant.o at libero.it
Date: Fri Sep 22 17:55:27 EEST 2006
> I believe the battery level reading was possible, and I think it has
> been answered earlier on the mailing list. Maybe you can find it from
> the mailing list archive.

I report this mail by Kalle Vahlman (Thu Dec 22 09:46:11 2005), maybe it's  
of some interest:

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...

More information about the maemo-developers mailing list