06-21-2021, 02:09 PM | #46 |
BLAM!
Posts: 13,477
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. |
06-21-2021, 02:45 PM | #47 |
Addict
Posts: 236
Karma: 391602
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E
|
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! |
Advert | |
|
06-21-2021, 05:05 PM | #48 |
BLAM!
Posts: 13,477
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. |
06-22-2021, 02:11 AM | #49 |
Connoisseur
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. |
06-22-2021, 11:17 AM | #50 |
BLAM!
Posts: 13,477
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 .
|
Advert | |
|
06-22-2021, 01:30 PM | #51 |
Connoisseur
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 |
06-22-2021, 02:08 PM | #52 |
BLAM!
Posts: 13,477
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. |
06-22-2021, 02:50 PM | #53 |
BLAM!
Posts: 13,477
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. |
06-22-2021, 05:01 PM | #54 |
Connoisseur
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 |
06-22-2021, 06:19 PM | #55 |
BLAM!
Posts: 13,477
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.
|
06-23-2021, 03:38 AM | #56 |
Connoisseur
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. |
06-23-2021, 03:49 AM | #57 | |
Connoisseur
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:
|
|
06-23-2021, 06:39 AM | #58 |
BLAM!
Posts: 13,477
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 .
|
06-23-2021, 07:47 AM | #59 |
Connoisseur
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? |
06-23-2021, 08:23 AM | #60 |
BLAM!
Posts: 13,477
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. |
Tags |
clock, fbink, lua, miniclock, nanoclock |
|
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 |