[maemo-developers] Optimal battery life considerations in apps

From: Anderson Lizardo anderson.lizardo at openbossa.org
Date: Fri Jul 24 15:17:42 EEST 2009
On Fri, Jul 24, 2009 at 7:12 AM, Andrew Flegg<andrew at bleb.org> wrote:
> Where's the latest PyMaemo documentation and API reference? Using the
> C one is fine in most cases, but I'd like to see the Python specific
> stuff wherever possible. The following seems to link to bora-level
> documentation for Python-Hildon (and doesn't include HildonWindow):
>
>    http://pymaemo.garage.maemo.org/documentation_fremantle.html#documentation

It is at this same page, but on the top ("Python Hildon Manual"). I'll
fix the link to the python-hildon documentation to point the the newer
one:

http://pymaemo.garage.maemo.org/documentation/python_hildon_manual/html/

There is also the tutorial:

http://pymaemo.garage.maemo.org/documentation_fremantle.html#documentation

Note that they may contain some errors, as they were partially
converted from C docs. Feel free to report any errors you find in our
bugzilla.

>> If you could get a property-change event for any other property, I
>> doubt that's a PyMaemo specific bug, because there would be no special
>> handling for this specific property. If no property change at all is
>> triggering this event, than that would be a bug :)
>
> The only property change event I was looking for was this one; and
> trying it on Diablo (without app switching, testing visibility on
> Fremantle is... tricky at best) with the code here [search for
> "do_property_event"]:
>
>    https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/packages/horizon.pkg/framework.py?revision=280&root=mud-builder&view=markup

I will see if I can reproduce the problem here with a minimal example.

>
> It's my first real PyMaemo app, certainly my first green-field one
> which really needs to make sure it doesn't waste battery life.

I am interested to know how actually you measure battery usage. Are
you using any tool for that?

Regards,
-- 
Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil
More information about the maemo-developers mailing list