[Gpe-list] Fwd: Patch for gpesummary to start gpecalendar when an alarm occurs
Graham Cobb
g+gpe at cobb.uk.net
Sat Jun 7 13:20:06 CEST 2008
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.
Anyone (particularly Christoph!) know of any problem this might cause?
I am also intending to remove the gpe-calendar homepage plugin. I don't think
it works any more -- I certainly don't test it. And I don't think it does
anything that gpesummary doesn't do better. Any objections? I will add a
dependency so gpesummary is installed whenever gpe-calendar, gpe-contacts or
gpe-todo is installed (that doesn't mean anyone has to run it, of course,
just that it will automatically be installed and available on the home page
applets menu).
Graham
P.S. to Lars and others... I know the best solution is to use the maemo alarms
mechanism. But Andrew's patch is an improvement and someone else has done
the work for me! And the other changes above are worthwhile anyway, I think.
More information about the Gpe-list
mailing list