View Single Post
Old 08-27-2010, 08:18 AM   #51
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Talking We have it!!! automatic clock resfreshes!

Quote:
Originally Posted by Mackx View Post
Yes keeping it 'awake', just for the clock isn't a good idea.
I assume that UDS after a page change sends the updatePageCounter-message to popupmenu, maybe also the updatesFinished-message. Is it possible to react on those event to update the clock (on a page-change), i.e. update the clock in the statusbar_update_toolbar() - function. (Or is that already working with the current implementation?)
Ok, We have it!!! Now clock label does automatic refreshes, no need to change page or anything.

The trick was Mackx's idea of using an eripc call with updatePageCounter message. A bit hackish but it works.
You can see the code in: https://bitbucket.org/inigoserna/dr8...t/3ee425f2e073

Clock is updated every 30 secs but I can't see any battery drain. It continues on 89% as 10 minutes ago when I installed the new popupmenu.
Anyway, perhaps we should change to do the checks every 1 min.

EDIT: WARNING: I've observed some inestabilities after installing this version of popupmenu!

Btw, I've already uploaded new erbrowse and notepad versions to BB.

Could anyone test if they work correctly before launching a new release tomorrow? They work well both in qemu and in my DR800S.

Last edited by Iņigo; 08-27-2010 at 08:57 AM.
Iņigo is offline   Reply With Quote