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, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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...
_______________________________________________
maemo-developers mailing list
[email protected]
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to