![]() |
#256 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49
Karma: 139260
Join Date: Dec 2016
Device: KV, Forma, Libra Colour
|
Quote:
IE: I have mine set to only refresh after X number of pages (say 10). With this method, pages 1-9 the pixel would still be set. What we really need is a way to 1) check if currently reading a book (probably could get this from the events but would need to watch the sqlite db then) 2) monitor for frame buffer calls... If both of those were true, the clock would need to be redrawn. This is an off the wall question I know but has anyone looked into using the actual Kobo plugins to extend functionality?? Ran across an older github example that shows doing things like hiding the footer, etc utilizing that. Last edited by desterly; 07-25-2019 at 04:06 PM. |
|
![]() |
![]() |
![]() |
#257 |
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
|
Nope, the reader re-renders the full page no matter what (you can check by running fbink -Vmph -y -1 " ", that'll draw a black band at the bottom of the screen).
(Note that *drawing* and *refreshing* are two different concepts. Although, in this case, it's somewhat irrelevant, since the reader does *both* anyway. Whether the screen flashes or not is simply another *type* of refresh ![]() 1/ We've tried that before, and the results were... inconclusive (IIRC, the least unreliable way was the Event table, which is only updated in batches, and needs to be actively tracked to pinpoint what actually happened, which makes the whole thing tedious and not-actually terribly reliable ;p). I don't recall where the latest round of discussions occurred, exactly, but there was a small amount of messages on the subject, with at least @davidfor and myself participating, if you want to take a look at that ![]() ![]() 2/ That's essentially what @frostschutz was hinting at by mentioning the nightmode hack (because it interposes the MXCFB refresh ioctl). While hooking that, and writing to the fb before executing the incoming call as-is might be neat, the extra processing involved might end up significantly delaying the call. Probably better to just pass it through, and simply do another draw+refresh *after* that. AFAIK (before my time), the plugins system dates back to earlier Qt4 versions of Nickel, so, nope ![]() Last edited by NiLuJe; 07-25-2019 at 06:15 PM. |
![]() |
![]() |
![]() |
#258 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49
Karma: 139260
Join Date: Dec 2016
Device: KV, Forma, Libra Colour
|
Quote:
The plugins system is actually still in the recent firmware... I'm looking at it in IDA right now. Be interesting to see if we can still utilize it (even if no one hasn't yet). I'm sure it needs to be updated from the existing examples as they are a few years old. I might setup the koboreader build box and see if it still works. If it does and can be hooked into readingview, even if it still utilizes FBInk, it might simplify a few other things. |
|
![]() |
![]() |
![]() |
#259 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Well... I (think I) have an improvement for the current freeze issue, and I'll reimplement the touchscreen/button option that went missing last update, and then... it's gotta be "good enough" at some point. Delays and such are customizable for a reason after all...
I'll upload a new version over the weekend. Hopefully to be the final version, at least for a while. Tracking pixels is not something I will explore myself, good luck to anyone who makes the attempt... when reading Japanese ebooks, the pageflips actually don't re-draw full screen for me, top and bottom rows of pixels survive. (edit: actually just the top few rows, after testing it again just now... even so, full page re-draws are not guaranteed so perhaps track the bounding box [four corners] of the clock display itself?) Last edited by frostschutz; 07-25-2019 at 06:41 PM. |
![]() |
![]() |
![]() |
#260 |
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
|
Huh. Wouldn't have thought there'd be extra shenanigans for Japanese...
For reference, after an eval $(fbink -e) the final *visible* pixel can be read by our friend dd as such: dd if=/dev/fb0 skip=$(( ((viewWidth - 1) * (BPP>>3)) + ((viewHeight + (viewVertOrigin - viewVertOffset) - 1) * lineLength) )) count=$((BPP>>3)) bs=1 (It's essentially (x * bpp/4) + (y * line_length), with extra craptastic arithmetics because of the crappy viewports on the H2O & Aura, to make sure we don't end up reading a dead, under the bezel pixel, which Nickel won't necessarily touch). Pipe to hexdump -vC for testing ![]() EDIT²: Fixed it! With a bit of help from FBInk master, because I wasn't exporting line_length before. Last edited by NiLuJe; 07-25-2019 at 08:00 PM. |
![]() |
![]() |
![]() |
#261 |
Member
![]() Posts: 21
Karma: 10
Join Date: Mar 2016
Device: Kobo Glo HD
|
|
![]() |
![]() |
![]() |
#262 | |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Quote:
the touchscreen=1, button=1 that stopped working in the last few experimental updates, now merged into a generic input_devices settings: Code:
# # which /dev/input/eventX number devices to listen to # # input_devices=1 - event1 = touchscreen # input_devices=0 - event0 = keyboard/buttons/magnet # input_devices=1 0 - event1 event0 = both of the above # input_devices=1 0 download here (20190729 version) If you have any issues with it please don't report them to me because I don't want to update it anymore ![]() j/k, let me know if it works |
|
![]() |
![]() |
![]() |
#263 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
![]() I must admit I'm totally confused because you say that button=1 is no longer required (and has been removed from miniclock.example.cfg) but there is still a reference to it in miniclock.sh (line 180). Does this mean that the built-in patch to libnickel is no longer required either? |
|
![]() |
![]() |
![]() |
#264 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Damnation, I forgot about the patch. X_X It worked for me because of course, the patch was already applied.
now, if you look closely ![]() Last edited by frostschutz; 07-29-2019 at 11:05 AM. |
![]() |
![]() |
![]() |
#265 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78
Karma: 25542
Join Date: Nov 2013
Location: NRW Germany
Device: Kobo Forma
|
Works well with my Forma, thanks!
Gesendet von meinem SM-N960F mit Tapatalk |
![]() |
![]() |
![]() |
#266 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 114
Karma: 26552
Join Date: Jan 2017
Device: Kobo Forma
|
EDIT: worked it out!
Last edited by poczynek; 08-07-2019 at 08:37 PM. |
![]() |
![]() |
![]() |
#267 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 62
Karma: 3010
Join Date: Feb 2019
Device: kobo h2o
|
Hello, I am testing this plugin and work perfectly.
Is difficult to add light % level to the format string like the battery %? (I love koreader status bar and I wan emulate it) Thanks in advance! Enviado desde mi SM-A705FN mediante Tapatalk Last edited by albare; 09-24-2019 at 10:09 AM. |
![]() |
![]() |
![]() |
#268 |
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
|
@albare: Not on anything earlier than Mk. 7 devices, which are the first ones to introduce an easy way to actually *read* the frontlight status.
We can work it around in KOReader because we're the ones to *set* the value in the first place, so we keep track of that (and it's a huge pile of kludges). |
![]() |
![]() |
![]() |
#269 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 62
Karma: 3010
Join Date: Feb 2019
Device: kobo h2o
|
And how knows koreader the light level when I change it with nickel? If I set the level in nickel and I start koreader the light level is the same and the status bar shows it correctly.
Could be nickel write it in some file. Enviado desde mi SM-A705FN mediante Tapatalk |
![]() |
![]() |
![]() |
#270 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,805
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
All the KoReader posts belong in the KOReader forum.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |