Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-20-2021, 12:13 PM   #31
Phil_C
Addict
Phil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud of
 
Phil_C's Avatar
 
Posts: 234
Karma: 27924
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E
After a cold boot and a connect to USB, the log file was zero bytes and empty. A second connection to USB gave me this new log file:
Attached Files
File Type: txt nanoclock.log.txt (4.1 KB, 185 views)
Phil_C is online now   Reply With Quote
Old 06-20-2021, 12:16 PM   #32
Carmelocotonto
Connoisseur
Carmelocotonto began at the beginning.
 
Carmelocotonto's Avatar
 
Posts: 93
Karma: 12
Join Date: Nov 2018
Location: Salamanca
Device: kobo Clara HD, Onyxboox C67
Yes, I can see the clock under USBMS and it is updated correctly, with 0.9.6


[QUOTE=
@Carmelocotonto: Since you mentioned KOReader, one interesting data point would be to check if you actually see the clock ticking in KOReader's own USBMS tool... (as it's basically the same piece of code).[/QUOTE]
Carmelocotonto is offline   Reply With Quote
Advert
Old 06-20-2021, 12:46 PM   #33
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by Phil_C View Post
After a cold boot and a connect to USB, the log file was zero bytes and empty. A second connection to USB gave me this new log file:
Yeah, the round-trip is perfectly normal.

And that looks much better, actually .

It's conceivable the software clock is highly irregular and getting its ass kicked by NTP, I'll be adding some tweaks to detect that, and making the logs clearer, thanks!
NiLuJe is offline   Reply With Quote
Old 06-20-2021, 12:47 PM   #34
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by Carmelocotonto View Post
Yes, I can see the clock under USBMS and it is updated correctly, with 0.9.6
Note that I was speaking about the USBMS tool's own status bar, not NanoClock .

But then I remembered that on a Clara, you'll also get charge ticks, and those also update the status bar, so, that wasn't a great testcase anyway ^^.
NiLuJe is offline   Reply With Quote
Old 06-20-2021, 02:03 PM   #35
Carmelocotonto
Connoisseur
Carmelocotonto began at the beginning.
 
Carmelocotonto's Avatar
 
Posts: 93
Karma: 12
Join Date: Nov 2018
Location: Salamanca
Device: kobo Clara HD, Onyxboox C67
In any case, I confirm that both the koreader clock and the nanoclock are updated

Quote:
Originally Posted by NiLuJe View Post
Note that I was speaking about the USBMS tool's own status bar, not NanoClock .

But then I remembered that on a Clara, you'll also get charge ticks, and those also update the status bar, so, that wasn't a great testcase anyway ^^.
Carmelocotonto is offline   Reply With Quote
Advert
Old 06-20-2021, 02:28 PM   #36
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
There's also a bit of a catch-22 in that if NanoClock is displayed inside the status bar's region, then an update of the status bar will *also* update NanoClock ^^.
NiLuJe is offline   Reply With Quote
Old 06-20-2021, 05:51 PM   #37
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Okay, released v0.9.8 .

* On Mk. 6+ devices, the clock tick timer is now rearmed every time the clock suffers a discontinuous change (e.g., ntp). This should *hopefully* fix the autorefresh weirdness mentioned above.
(I'd have handled it everywhere if I could, but it depends on a feature introduced in summer 2011 (!!) in the Linux kernel, and older devices run a truly terribly ancient kernel).
* Handle some extreme corner cases where a refresh storm could lead to false negatives (i.e., missed clock updates). Shouldn't really ever happen in practice.
* Added some more logging, especially in debug mode, which should make why things happen (or not ;p) much clearer.
* Added some new configuration settings to control how exactly the {battery} & {frontlight} placeholders are expanded. In particular, this allows configuring the battery one both within and without the threshold (meaning if you like to put your battery meter between brackets or something, but got rid of the thresholds because it was ugly as sin otherwise, now you can actually get the whole thing working. See the default config for more details and an example of this).

Last edited by NiLuJe; 06-20-2021 at 05:55 PM.
NiLuJe is offline   Reply With Quote
Old 06-20-2021, 07:16 PM   #38
Phil_C
Addict
Phil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud of
 
Phil_C's Avatar
 
Posts: 234
Karma: 27924
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E
Here is the v0.9.8 log. I went into a book and the clock did not update for about 7 minutes, until I touched the screen. If I understand the log correctly, you can see at lines 81-82 that nothing updated between 17:43 and 17:50.
Attached Files
File Type: txt nanoclock.log.txt (13.1 KB, 184 views)
Phil_C is online now   Reply With Quote
Old 06-20-2021, 07:33 PM   #39
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@Phil_C: Were those seven actual minutes?

Because it looks like the clock is *severely* drifting for a while... until you get out of USB, which is a point at which Nickel may do a hard resync to the hardware clock, which might shock the thing into saner behavior...

I guess I can try to fire the clock ticks from another clock source, but I'm not sure it'll get any better, and it'll be a dumb "every 60s" timer, not "on every minute change" :s.

Last edited by NiLuJe; 06-20-2021 at 07:36 PM.
NiLuJe is offline   Reply With Quote
Old 06-20-2021, 07:45 PM   #40
Phil_C
Addict
Phil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud of
 
Phil_C's Avatar
 
Posts: 234
Karma: 27924
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E
Those were 7 actual minutes where I entered a book and just let the reader sit. Then I touched the screen and the clock updated. Clara was NOT connected to USB during this time.

I have to connect to USB, then disconnect, then connect once more to get the log for what I did before the first connect. As you said -- kind of clunky. But it's the only way I know how.
Phil_C is online now   Reply With Quote
Old 06-20-2021, 08:54 PM   #41
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Okay, then...

Does this version behave any better?

(I'm still mildly miffed I can't see the startup banner in your last log, which doesn't make much sense, unless something's mucking with your syslog daemon, but this is somewhat unrelated to the issue at hand ^^).

Last edited by NiLuJe; 06-21-2021 at 12:35 AM. Reason: Removed slightly broken experimental code
NiLuJe is offline   Reply With Quote
Old 06-20-2021, 09:47 PM   #42
Phil_C
Addict
Phil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud of
 
Phil_C's Avatar
 
Posts: 234
Karma: 27924
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E
Here I installed v0.9.8-12 and did a cold reboot of the Clara. On the Home screen starting at time 20:19, the clock updated to 20:20 on schedule.

I opened a book and changed a page or two and let it sit for 5 minutes. No further updates (stayed at 20:20) until I changed the page after those 5 minutes.

Back to the Home screen at 20:25 and you can see the clock updates as it should to 20:26 and beyond.

.ini file included just for fun.
Attached Files
File Type: txt nanoclock98-12.log.txt (11.5 KB, 172 views)
File Type: txt nanoclock98.ini.txt (7.2 KB, 192 views)
Phil_C is online now   Reply With Quote
Old 06-20-2021, 10:44 PM   #43
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Okay, new theory: the reader is putting the device to sleep when inactive.

This version *should* make that clear in the logs...

(In which case, it's a "good" thing. I mean, I can make the clock tick wake the device up, but that's not necessarily a great idea ^^).

EDIT: Yup, confirmed on the Forma (if I actually let it sit without Wi-Fi ;p).

Last edited by NiLuJe; 06-21-2021 at 12:35 AM. Reason: Removed slightly broken experimental code
NiLuJe is offline   Reply With Quote
Old 06-20-2021, 11:43 PM   #44
Phil_C
Addict
Phil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud of
 
Phil_C's Avatar
 
Posts: 234
Karma: 27924
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E
This one is worse. Sometimes the clock does not update on the HOME screen, so the Kobo clock and the NanoClock show different times -- until I touch the screen.

Here the clock failed to update in a book for 3 minutes from 22:14 to 22:17.

The clock failed to update on the Home screen from about 22:18 to 22:22. But the log does not appear to show this! A display glitch maybe? It does not happen every time on the home screen.

(Separate question: Do you ever sleep?!? )
Attached Files
File Type: txt nanoclock98-13.log.txt (13.9 KB, 175 views)
Phil_C is online now   Reply With Quote
Old 06-21-2021, 12:34 AM   #45
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Yeah, the fallback trickery ends up making things worse in this case (as either the timer's initial expiration is off, or not in sync w/ real wall time) ^^.

But, yeah, I confirmed my suspicion on the Forma.

And I just tried what happened if I attempted to break Nickel's careful planning by forcing a wakeup on clock ticks... and, yeah, it's as stupid as expected, and will royally screw with what it thinks is happening (i.e., just glanced at it, it tripped a full suspend on my Forma ).

Aaaanyway, many thanks for your patience and experiments, because most of the changes involved *are* sane and useful .

I'll be documenting that properly, clearing up the useless parts of the latest experiments, and doing a new release tomorrow ^^ (so: now, would be the answer to your question ^^).
NiLuJe is offline   Reply With Quote
Reply

Tags
clock, fbink, lua, miniclock, nanoclock


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cover images not persistent gogu1904 Kobo Reader 5 08-21-2020 10:55 AM
PW2 jailbreak not persistent chrnit Kindle Developer's Corner 3 01-06-2017 08:16 PM
Persistent Display? jessie102 Sony Reader 2 03-08-2010 09:45 PM
Persistent WIFI connection. tovarish iRex 2 11-16-2009 03:30 AM


All times are GMT -4. The time now is 11:33 AM.


MobileRead.com is a privately owned, operated and funded community.