![]() |
#241 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 114
Karma: 26552
Join Date: Jan 2017
Device: Kobo Forma
|
Quote:
So i enable and then use it for a bit to test? |
|
![]() |
![]() |
![]() |
#242 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 114
Karma: 26552
Join Date: Jan 2017
Device: Kobo Forma
|
Ok have enabled debug and tested with about 20 to 30 pages - just cycling through pages. I think the time and date came up every 3rd page maybe?
How do i export the debug file? The debugging comes up live on the top left of the Forma too for some pages. |
![]() |
![]() |
![]() |
#243 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
there is no debug file yet... it just prints to the screen
so... does it print but not update the clock? then - just what did it print? ;-) (the debug output also comes with an additional 3 second delay so... with debug on, if you turn page too quickly, not updateing is normal) the interesting question is also if it prints anything when not interacting with the device at all ... basically there are events coming it that cause cooldown to kick in (when not in standby) I previously assumed the magnet event only goes crazy during standby (sleepcover closed) and not while reading... but that assumption, might be wrong, or the input devices on the forma do something else unexpected it's frustrating because everythign seems to be working just fine - on my H2O Last edited by frostschutz; 07-25-2019 at 02:38 AM. |
![]() |
![]() |
![]() |
#244 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 114
Karma: 26552
Join Date: Jan 2017
Device: Kobo Forma
|
Quote:
https://streamable.com/abzo7 And attached a photo of a long debug message that occurred at the end. |
|
![]() |
![]() |
![]() |
#245 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
OK, those are button events (KEY:F23 KEY:F24 in your video) as well as touchscreen event (ABS:MT_POSITION_X/Y on your photo). As long as you have these in your whitelist that is all normal up to here...
The version below changes the on-screen debug display to a debuglog.txt file to be found in .addons/miniclock/debuglog.txt (logs only if debug=1 is set in config file) ithe logfile looks like Code:
[1564039443 ABS:MT_TRACKING_ID 1] [1564039443 ABS:MT_TOUCH_MAJOR 1] [1564039443 ABS:MT_WIDTH_MAJOR 1] [1564039443 ABS:MT_POSITION_X 935] -- whitelist match -- -- cfg_delay = '1 1 1' -- -- clock update Thu Jul 25 09:24:05 CEST 2019 -- -- clock update Thu Jul 25 09:24:06 CEST 2019 -- -- clock update Thu Jul 25 09:24:07 CEST 2019 -- MiniClock debug event: [1564039461 KEY:F1 1] -- whitelist not matched - negative 1 -- MiniClock debug event: [1564039462 KEY:F1 1] -- whitelist not matched - negative 2 -- MiniClock debug event: [1564039472 KEY:F1 1] -- whitelist not matched - negative 3 -- -- cooldown start, Thu Jul 25 09:24:33 CEST 2019 -- -- cooldown end, Thu Jul 25 09:25:03 CEST 2019 -- this log will grow, uh, rather big over time. and although it prints times and dates, it might still be hard to corelate the log to real events if you don't remember when you pressed the keys ^^; so if you notice miniclock misbehaving maybe you could note down the time or something then see if anything is in the log for that time frame PS: oh, I see it actually misprints the BTN_TOUCH as 0x14a, gotta fix that (but unless you were trying to use BTN_TOUCH in the whitelist, that's not your issue) PPS: edit - fixed in 20190725_b_ Last edited by frostschutz; 07-29-2019 at 08:05 AM. |
![]() |
![]() |
![]() |
#246 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 114
Karma: 26552
Join Date: Jan 2017
Device: Kobo Forma
|
Ah ok got it. Use this version - it will output to .txt file that will get big but make note when things look haywire for times.
Ok will do! It does appear to be intermittent and will monitor over next few days. Thanks again. |
![]() |
![]() |
![]() |
#247 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@frostschutz,
I've attached a small debug log below. I started with a full reboot then read at normal speed for a few minutes. I also tried to manually note down when a next page button succeeded or failed: 10:56 fail 10:57 OK 10:59 fail 11:01 OK 11:03 OK 11:04 OK 11:06 fail 11:08 OK 11:10 OK 11:11 fail debuglog.txt Spoiler:
A small observation, in case it helps. I had a feeling that when a next button failed, there was a brief sighting of an updated time/battery display AFTER the button press but BEFORE the page actually turned. But once the page turn had completed the display was blank. ETA: I forgot to mention that there was no excessive battery drain overnight with the Forma on standby in a magnetic sleepcover. So definite progress on that front. Last edited by jackie_w; 07-25-2019 at 06:35 AM. Reason: ETA |
![]() |
![]() |
![]() |
#248 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Code:
[1564048341 REP:DELAY 400] [1564048341 REP:MAX 80] [1564048341 MSC:RAW 24] [1564048341 SYN:REPORT 0] [1564048341 MSC:RAW 28] [1564048341 SYN:REPORT 0] Code:
-- whitelist match -- -- cfg_delay = '1 1 1' -- -- clock update Thu Jul 25 10:54:36 BST 2019 -- -- clock update Thu Jul 25 10:54:37 BST 2019 -- -- clock update Thu Jul 25 10:56:11 BST 2019 -- This is probably a case of nickel putting background process in the freezer. EDIT: You could try and see if it improves by setting delay=1 or delay=2 onstead of 1 1 1. but delay=1 will miss update time if the pageturn (or other screen refresh action) is slower than 1 second. pageflips on H2O can be quite slow hence I used 1 1 1 but maybe Forma has faster pageflip so delay=1 will work. :EDIT With the current code I guess it is possible to miss the first event after wakeup... as during those 2 minutes, the update was still in progress and no new events were listened to. Most likely the 10:56:11 update then happened straight on wakeup, to be erased by the pageflip that follows. Last edited by frostschutz; 07-25-2019 at 07:12 AM. |
![]() |
![]() |
![]() |
#249 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
I suppose this extra rendering time might have contributed to the failure, but when I turned (via button) to the first page of the next chapter there was no failure. I'm going to turn off debug now and see how it goes. |
|
![]() |
![]() |
![]() |
#250 |
Member
![]() Posts: 21
Karma: 10
Join Date: Mar 2016
Device: Kobo Glo HD
|
Font Color
Hi, Like this a lot and have got it installed with a ttf and tuned-in position just right. My question is how to format for a font color other than black or white (i.e. gray)?
I see in the config file the following: # Color: (BLACK GRAY{1-9A-E} WHITE) # fg_color=BLACK bg_color=WHITE but any attempt I've made to get gray working breaks something. ![]() Any pointers? I've searched the thread but can't find anything. Thanks! |
![]() |
![]() |
![]() |
#251 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@Bean_There: Full list here (i.e., GRAY1 to GRAYE in base16).
@frostschutz: Ah, yeah, that'd be the Forma key repeats and the Gyro status over MSC events ![]() |
![]() |
![]() |
![]() |
#252 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@frostschutz: I was vaguely wondering if we could somewhat get rid of the delay= shenanigans by plotting a pixel (say, the last one on the bottom right) in a specific sentinel color (say, 0xEE), then checking regularly if it hadn't been cleared to white (as the very bottom-right corner pixel ought to be white pretty much everywhere except the USB screen), which would indicate that the page has been redrawn...
|
![]() |
![]() |
![]() |
#253 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
... unless the screen is in Inverted mode, when it would (mostly) be black.
|
![]() |
![]() |
![]() |
#254 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Not at the framebuffer level, the inversion is done by the eInk controller at refresh time
![]() (... unless you're running a mightily old legacy nightmode hack that did in in software, brrr.) |
![]() |
![]() |
![]() |
#255 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
I (almost) spend more time reading about e-readers than e-reading | Antoinekamel | General Discussions | 15 | 02-25-2013 10:48 AM |
360 PB360 display gets "stripes" from time to time | klaetsch | PocketBook | 1 | 01-05-2011 04:49 AM |
How to get the time to display | synic | Sony Reader | 9 | 06-10-2009 06:05 PM |
Time Display | Jenny123 | Sony Reader | 2 | 04-23-2009 02:06 PM |
Time Display? | MickeyC | Sony Reader | 3 | 02-10-2008 11:57 PM |