View Single Post
Old 05-08-2020, 06:24 AM   #1
pso33
Member
pso33 ought to be getting tired of karma fortunes by now.pso33 ought to be getting tired of karma fortunes by now.pso33 ought to be getting tired of karma fortunes by now.pso33 ought to be getting tired of karma fortunes by now.pso33 ought to be getting tired of karma fortunes by now.pso33 ought to be getting tired of karma fortunes by now.pso33 ought to be getting tired of karma fortunes by now.pso33 ought to be getting tired of karma fortunes by now.pso33 ought to be getting tired of karma fortunes by now.pso33 ought to be getting tired of karma fortunes by now.pso33 ought to be getting tired of karma fortunes by now.
 
Posts: 21
Karma: 6408408
Join Date: May 2020
Location: Hungary
Device: Pocketbook InkPad X
InkPad X + koreader tweaks

Hello,

I've bought a month ago an InkPad X, and tried to use koreader (already used koreader on a kobo aura h2o 2nd ed 7" with great success and speed, so have an easy comparison).

I stick to koreader vs PB software for these 3 things:
- file browser much quicker (only filename)
- configurable contrast(boldness) feature really makes reading easier, when pdf is shrinked
- rich gestures, avoiding screen refresh

In a nutshell, I've resolved 2 problems:
(1) in page view + fit to content, after switching from another document, seen sometimes every page from a different document. This was always resolved by either emptying cache, or setting DGLOBAL_CACHE_SIZE_MINIMUM/MAX... to 0 in advanced setting (used it for a longer time)
I experienced this also with v2020.03.2 too.
(2) the dreaded suspend issue, experienced almost every file open (using koreader's file browser), partially fixed by applying [WIP] Pocketbook-suspend plugin #3540 (it was easy, no code conflict)

I've managed to rebuild a custom koreader for pocketbook, but replacing the 5.17 SDK by 5.19 (modifying koxtoolchain/gen-tc.sh + had to insert a #include <stdbool.h> row in inkview.h).
I'm using the docker image recommended by the wiki, on top of git master (few commits away from v2020.04.1).
It was also necessary to execute "./gen-tc.sh pocketbook" before "./kodev release pocketbook" as wiki simply says (for kobo, had no problem).
With these build tweaks, I've successfully resolved (1) - exactly after switching to the new SDK ! (I did try with 5.17, too - where the cache error still present)
Note than some headers not present in 5.19 (bookstate.h), can be freely removed.

My InkPad X's details:
- Software version: U1040.5.20.1476
- Release date: 20191011_163330

For addressing (2), I've just pulled #3540 (plugin appears under a name "PocketBookInsomnia"). To me it's clear what it does in highlevel, though never programmed any .lua before, and unaware of any pocketbook internals... I've tweaked it further to call avoiding suspend, taking example code from other plugins (using UIManager:scheduleIn)).
The outcome is, it still hangs (with bottom led off) when a pdf is heavy to load (seems not even scheduling an event helps), and lasts longer than 2 secods, but the fast pdf starts no more hanging, and these type of hangs (led is off) can easily get over by touching the screen.
Page turns also got more reactive.
Only drawback is, the power consumption seemingly got higher.
For some rare documents however, I really see forever hangs, however I open those pdfs with PB soft.

All in all, I've got to a state where my InkPad X is very well useable with koreader!
It would be nice to:
- provide separate PocketBuild build with the new SDK (5.19 at least)
- include #3540 even in it's unfinished state, so see the problem much rare (with heavier PDFs), perhaps tweaking further scheduling an awake every second
After 1 week heavy use of many type of PDFs, I highly confirm #3540 is much better to include, than not having it.

Note: I've tried fedorchenko's free apps, however they either don't start, or app works weird (screen shifted, etc...) pushing me in a doubt that todays PB device would work with an old SDK.

Peter
pso33 is offline   Reply With Quote