Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-21-2021, 02:09 PM   #46
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,484
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
There we go, released v0.9.9.

As mentioned above, minor logging & documentation tweaks to make the aforementioned "ninja sleep" behavior clearer .

----

FWIW, I played a bit with *detecting* those and doing something (e.g., a tiny indicator that the clock is frozen), but it's mildly tricky, a lot race-y, somewhat intrusive, and the behavior is aggressive and predictable enough that it wouldn't serve much purpose anyway, as you can just assume that the device goes to bed ~5s after a page turn .

For curious people, all those experiments are in the public git history, and the final code was actually logically "sane", and actually achieved completely breaking the standby feature, thanks to the simple fact that the EPDC is itself a wakeup source, so catching the ninja in the act and sending a clock update right at that moment effectively *prevents* the suspend from succeeding. This isn't very nice though, and effectively launches Nickel into a repeated race with us to retry to suspend every 5s, which is why I dropped it .

Last edited by NiLuJe; 06-21-2021 at 05:12 PM.
NiLuJe is offline   Reply With Quote
Old 06-21-2021, 02:45 PM   #47
Phil_C
Addict
Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.
 
Phil_C's Avatar
 
Posts: 245
Karma: 391602
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E; Kobo Clara BW
OK, here is a log for 0.9.9 in case you need it.

And -- glad to help in my little way. You and a few others here give us a lot of good stuff. Thank you!
Attached Files
File Type: txt nanoclock99.log.txt (8.2 KB, 199 views)
Phil_C is offline   Reply With Quote
Advert
Old 06-21-2021, 05:05 PM   #48
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,484
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Thanks, more data is always nice to have ;o).

(In particular, it confirms that the forced time adjustment on resume appears to be discarding nanosecond precision (and/or it's just a timing artifact, but the bottom line is essentially similar: subsecond drift, either backwards or forwards) on those older kernels, which effectively translates into time going ever so slightly backwards, so I'm glad I actually kept the discontinuity check (I was considering relaxing it severely, because the whole thing forces us to run a couple syscalls just to correct that small subsecond drift after every page turn), because it's technically more "correct" ^^).

Timekeeping is fun. It'll be even more fun in 2038 when all of this will self-destruct .

Last edited by NiLuJe; 06-21-2021 at 05:13 PM.
NiLuJe is offline   Reply With Quote
Old 06-22-2021, 02:11 AM   #49
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
Hi, now the clock is never updated in nickel and never in koreader. I tried version 0.9.9.
So I go back to version 0.9.7
With version 0.9.7 it is always updated except while reading with nickel. With nickel is updated when I touch the screen.
Carmelocotonto is offline   Reply With Quote
Old 06-22-2021, 11:17 AM   #50
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,484
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@Carmelocotonto: Debug logs, please .
NiLuJe is offline   Reply With Quote
Advert
Old 06-22-2021, 01:30 PM   #51
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
Hi, now the clock is never updated in nickel and always in koreader. I tried version 0.9.9.

I said never in nickel and NEVER in koreader, but in koreader is updated.

This is de log
nanoclock.log.txt

Quote:
Originally Posted by NiLuJe View Post
@Carmelocotonto: Debug logs, please .
Carmelocotonto is offline   Reply With Quote
Old 06-22-2021, 02:08 PM   #52
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,484
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
AFAICT, it's behaving as expected.

You *appear* to have been modifying the *default* config (/usr/local/NanoClock/etc/nanoclock.ini) instead of the *user* config (/mnt/onboard/.adds/nanoclock/nanoclock.ini) though, and that *will* break a number of sanity checks.
NiLuJe is offline   Reply With Quote
Old 06-22-2021, 02:50 PM   #53
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,484
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
What you're seeing is a bad interaction between the autostandby, nickel's Homescreen clock, how it handles the refresh, and what happens after a resume on suspend.

* On views with a clock, before setting up the standby, Nickel programs a wake alarm to the first second of the next minute.
* Device wakes up according to said alarm.
* Standard "resume from suspend" operations happen, and that includes a hctosys (the system clock is reset based on the hardware clock).
* Nickel updates clock.

Now, NanoClock is setup to refresh *on the dot*, not on the first second.

So, resume from suspend triggers a discontinuous clock change (AFAICT, that one we can't do anything about, it's kernel related on platforms where nothing hardware ticks during suspend).
*Then*, the hctosys triggers a *second* discontinuous clock change.

Since those happen at :01, and we round *up*, latency means that we mostly never actually reach :00, which is what NanoClock expects for a clock tick induced refresh.

And I stopped forcing a clock refresh during those events, because they're not clock ticks per se, they're just the clock being *set*, and they're mostly duplicates of actual events that *do* already refresh the clock (page turns in the reader, and an actual tick here).

EDIT: I'm testing moving our ticks to :02 to ensure we always lose that race and get an actual actionable tick on our end.

Last edited by NiLuJe; 06-22-2021 at 06:20 PM.
NiLuJe is offline   Reply With Quote
Old 06-22-2021, 05:01 PM   #54
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
Oops!. I thought that I had to modify the default config with my user configuration.
I'm going to try to reinstall without modifying anything

Quote:
Originally Posted by NiLuJe View Post
AFAICT, it's behaving as expected.

You *appear* to have been modifying the *default* config (/usr/local/NanoClock/etc/nanoclock.ini) instead of the *user* config (/mnt/onboard/.adds/nanoclock/nanoclock.ini) though, and that *will* break a number of sanity checks.
Carmelocotonto is offline   Reply With Quote
Old 06-22-2021, 06:19 PM   #55
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,484
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Released v0.9.10, which should now properly deal with the aforementioned interaction with Nickel's own clock on affected devices.
NiLuJe is offline   Reply With Quote
Old 06-23-2021, 03:38 AM   #56
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
Hello, these are the steps I have followed and the results:

1.- I install version 0.9.10
2.- clock is updated on the main screen but not reading
3.- I exit the reading and generate the log
4.- I connect via usb and copy the log to the pc
5.- I safely eject the kobo without disconnecting the cable
6.- the clock is updated on the main screen
8.- I open a book and I don't touch anything
7.- the clock is updated every minute without touching anything. I do not turn the page
8.- I remove the cable from the pc and the clock no longer updates with the book open
9.- I go to the main screen and the clock is updated

'log' has very little information:

EDIT: the correct log is into the next message

Last edited by Carmelocotonto; 06-23-2021 at 03:50 AM.
Carmelocotonto is offline   Reply With Quote
Old 06-23-2021, 03:49 AM   #57
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
Sorry, this is the correct log:

nanoclock.log.txt

Quote:
Originally Posted by Carmelocotonto View Post
Hello, these are the steps I have followed and the results:

1.- I install version 0.9.10
2.- clock is updated on the main screen but not reading
3.- I exit the reading and generate the log
4.- I connect via usb and copy the log to the pc
5.- I safely eject the kobo without disconnecting the cable
6.- the clock is updated on the main screen
8.- I open a book and I don't touch anything
7.- the clock is updated every minute without touching anything. I do not turn the page
8.- I remove the cable from the pc and the clock no longer updates with the book open
9.- I go to the main screen and the clock is updated
Carmelocotonto is offline   Reply With Quote
Old 06-23-2021, 06:39 AM   #58
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,484
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Yep, that's the expected behavior on all counts .
NiLuJe is offline   Reply With Quote
Old 06-23-2021, 07:47 AM   #59
jamalau
Connoisseur
jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.
 
Posts: 78
Karma: 25542
Join Date: Nov 2013
Location: NRW Germany
Device: Kobo Forma
Hello, with v0.9.10 i cannot use my own config in .adds/nanoclock/nanoclick.ini
I think ther is a standard conf in use!
If i install v0.9.9 without to change anything, my own ini works fine!
What can i do?
jamalau is offline   Reply With Quote
Old 06-23-2021, 08:23 AM   #60
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,484
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@jamalau: Any setting in particular?

(The only change between 0.9.9 and 0.9.10 is that truetype_format inherits the *default* format value instead of the user's. That was possibly somewhat ill-advised ^^).

Last edited by NiLuJe; 06-23-2021 at 08:25 AM.
NiLuJe is offline   Reply With Quote
Reply

Tags
clock, fbink, lua, miniclock, nanoclock

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:59 PM.


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