Thread: clock
View Single Post
Posts: 883 | Thanked: 980 times | Joined on Jul 2007 @ Bern, Switzerland
#51
Originally Posted by aflegg View Post
Looks good. Have you tried stracing it or running it overnight on batteries to see what it does to your battery life?
Hopefully, looking at the screenshot it's sleeping for a minute before updating the display...
Edit: duh, it's got a seconds display, so it won't be sleeping long at all. You probably want to remove that, or at least make it not update the display, and sleep for much longer periods when the screen is blanked or the application isn't in the foreground. There are DBUS events for both of these.
Thanks for the feedback. I do indeed plan to remove the seconds display (only makes one nervous :-) I'll try to use whatever is available in the D-Bus stuff for Python - however, I'm still an absolute beginner with the maemo and linux plattform.
BTW: Got the osso.Context running - this stuff needs an initialized main loop first, otherwise it will fail... however, now I'm stuck with a not-yet working repeating call to device.display_blanking_pause(). Step by step...