[Gpe-list] Fwd: Patch for gpesummary to start gpecalendar when an alarm occurs

Graham Cobb g+gpe at cobb.uk.net
Fri Jun 13 21:25:01 CEST 2008


On Saturday 07 June 2008 12:20:06 Graham Cobb wrote:
> On Monday 02 June 2008 20:33:43 Ryan Pavlik wrote:
> > Before integration someone should strace gpesummary, since home applets
> > that do unneeded activity, even rarely, can seriously negatively impact
> > battery life - in order to get a reasonable (1 day standby) battery life
> > on my N800 I had to remove almost all my applets, including the stock FM
> > Radio one (apparently a new fixed version is on the way).  Wouldn't want
> > to miss alarms because I had to remove gpesummary to be safe.
>
> Good point.  I have straced the unmodified gpesummary and it currently runs
> every 5 seconds.  Not the end of the world but not good.  In the code this
> calls "update_clock" (which does not just update the clock, it updates
> everything).
>
> I think I will change this so that it runs every minute, just as the minute
> changes.  I will also hook Andrew's alarm waking code into this same
> action.

I made the changes to gpesummary last weekend and checked them in. Packages 
are now available for testing in my daily build repositories (for Chinook, 
Bora and Gregale).

I have not changed gpe-calendar yet: it still iconises when you try to close 
it using the box in the corner.  However, if you exit gpe-calendar using the 
menu, gpesummary will restart it when necessary to display an alarm.

I have tested the changes (including strace, to make sure it only wakes up 
once per minute).  They turned out to be bigger than I had expected to make 
sure that it handled things like noticing updates made in gpe-calendar.  One 
effect of these changes is that gpesummary does an automatic refresh whenever 
it notices that the calendar database has been updated.  I would appreciate 
any reports of problems with this behaviour, especially from people with 
large databases of events or contacts.

Also, I haven't checked all combinations of the various gpesummary options to 
make sure they all work well.

If you can help, please install the new gpesummary and try it out.  Please 
report any problems either to this list or (even better) in the bugzilla.

By the way, my plan is to try to have a new public release of GPE for Maemo 
sometime in the next few weeks, with all the various bugfixes as well as this 
change and the change to gpe-calendar to exit normally.  This will probably 
mean that I create new packages for the extras-devel repository around the 
end of June and, if no problems are reported, promote them to the extras 
repository sometime in July.

If anyone is planning an important fix or change which should get into that 
release, let me know.

Graham



More information about the Gpe-list mailing list