Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to launch KOReader on PocketBook Basic 611 #6505

Closed
anlar opened this issue Aug 15, 2020 · 40 comments
Closed

Unable to launch KOReader on PocketBook Basic 611 #6505

anlar opened this issue Aug 15, 2020 · 40 comments
Labels
firmware help-wanted We'd like help with this issue PocketBook

Comments

@anlar
Copy link

anlar commented Aug 15, 2020

  • KOReader version: v2020.07.1
  • Device: PocketBook Basic 611

Issue

I'm trying to launch KOReader's recent version on PocketBook 611. I've taken v2020.07.1, added to device.lua definitions from #6481 and running it. But after that device is frozen. See attached crash.log - last line is from the moment when I have turned off device.

Steps to reproduce

  1. Deploy to applications directory v2020.07.1 with updated device.lua config:
<snip/>

-- PocketBook Basic (611)
local PocketBook611 = PocketBook:new{
    model = "PB611",
    display_dpi = 167,
    isTouchDevice = no,
    hasFrontlight = no,
    hasDPad = yes,
    hasFewKeys = yes,
}

<snip/>

elseif codename == "PocketBook 611" then
    return PocketBook611

<snip/>
  1. Launch koreader.
crash.log
---------------------------------------------
                launching...
  _  _____  ____                _
 | |/ / _ \|  _ \ ___  __ _  __| | ___ _ __
 | ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
 | . \ |_| |  _ <  __/ (_| | (_| |  __/ |
 |_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|

 It's a scroll... It's a codex... It's KOReader!

 [*] Current time: 01/16/37-17:39:44
 [*] Version: v2020.07.1

ffi.load: SDL2
ffi.load (warning): libSDL2.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so
ffi.load (warning): libSDL2-2.0.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so.0
ffi.load (warning): libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
SDL2 not loaded:	./setupkoenv.lua:27: Not able to load dynamic library: libSDL2-2.0.so.0
ffi.load: inkview
01/16/37-17:39:44 INFO  SoftwareVersion:  E611.15.8.0
01/16/37-17:39:44 INFO  Blacklisting the C BB on this device
Tweaking LuaJIT's max loop unroll factor (15 -> 45)
FB: computed size: 1024000
FB: id           : mxc_epdc_fb
FB: smem_len     : 2179072
FB: line_length  : 800
FB: xres         : 800
FB: xres_virtual : 800
FB: yres         : 600
FB: yres_virtual : 1280
FB: bpp          : 8
Atached mp shm: id 0 addr 2b09c000 size 17260
hw_eink_init()
EINK_VERSION: 0000
ndepth:4 hqdepth:4
attach_shm: fb key=10560257 size=979232
Atached fb shm: id 8001 addr 2b190000 size 979232
allocated 244112 bytes for ecmd
ffi.load: inkview
01/16/37-17:39:44 INFO  initializing for device PB611
01/16/37-17:39:44 INFO  framebuffer resolution: {
    ["h"] = 600,
    ["w"] = 800
}
ffi.load: libs/libmupdf.so
ffi.load: libs/libwrap-mupdf.so
ffi.load: libs/libfreetype.so.6
01/16/37-17:39:46 INFO  opening file ./help/quickstart-en-v2020.07.1.html
01/16/37-17:39:46 INFO  Loading plugins from directory: plugins
ffi.load: sqlite3
ffi.load: z
ffi.load: sqlite3
01/16/37-17:39:47 INFO  Plugin  plugins/autosuspend.koplugin/main.lua  has been disabled.
01/16/37-17:39:47 INFO  Plugin  plugins/keepalive.koplugin/main.lua  has been disabled.
01/16/37-17:39:47 INFO  Plugin  plugins/autofrontlight.koplugin/main.lua  has been disabled.
01/16/37-17:39:47 INFO  Plugin  plugins/SSH.koplugin/main.lua  has been disabled.
01/16/37-17:39:47 INFO  Plugin  plugins/hello.koplugin/main.lua  has been disabled.
01/16/37-17:39:47 INFO  RD loaded plugin autoturn at plugins/autoturn.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin backgroundrunner at plugins/backgroundrunner.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin batterystat at plugins/batterystat.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin calibre at plugins/calibre.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin coverbrowser at plugins/coverbrowser.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin docsettingtweak at plugins/docsettingtweak.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin evernote at plugins/evernote.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin goodreads at plugins/goodreads.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin kosync at plugins/kosync.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin movetoarchive at plugins/movetoarchive.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin newsdownloader at plugins/newsdownloader.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin perceptionexpander at plugins/perceptionexpander.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin profiles at plugins/profiles.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin readtimer at plugins/readtimer.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin send2ebook at plugins/send2ebook.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin statistics at plugins/statistics.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin systemstat at plugins/systemstat.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin terminal at plugins/terminal.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin texteditor at plugins/texteditor.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin timesync at plugins/timesync.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin wallabag at plugins/wallabag.koplugin
01/16/37-17:39:47 INFO  RD loaded plugin zsync at plugins/zsync.koplugin
Atached mqueue: id 8001
Called func hw_fullupdate_internal
Called func hw_update_orientation, new orientation 0
01/16/37-17:43:28 WARN  got error waiting for events: Waiting for input failed: 4
@NiLuJe NiLuJe added firmware help-wanted We'd like help with this issue PocketBook labels Aug 15, 2020
@NiLuJe
Copy link
Member

NiLuJe commented Aug 15, 2020

I'd try a current nightly directly, just in case you simply botched the patching ;).

@anlar
Copy link
Author

anlar commented Aug 15, 2020

I've tried latest nightly build - v2020.07.1-49-gd935ca6_2020-08-13.

At first I've got new error:

---------------------------------------------
                launching...
  _  _____  ____                _
 | |/ / _ \|  _ \ ___  __ _  __| | ___ _ __
 | ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
 | . \ |_| |  _ <  __/ (_| | (_| |  __/ |
 |_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|

 It's a scroll... It's a codex... It's KOReader!

 [*] Current time: 01/16/37-18:49:52
 [*] Version: v2020.07.1-49-gd935ca6_2020-08-13

ffi.load: SDL2
ffi.load (warning): libSDL2.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so
ffi.load (warning): libSDL2-2.0.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so.0
ffi.load (warning): libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
SDL2 not loaded:	./setupkoenv.lua:27: Not able to load dynamic library: libSDL2-2.0.so.0
ffi.load: inkview
01/16/37-18:49:52 INFO  SoftwareVersion:  E611.15.8.0
01/16/37-18:49:52 INFO  Blacklisting the C BB on this device
Tweaking LuaJIT's max loop unroll factor (15 -> 45)
FB: computed size: 1024000
FB: id           : mxc_epdc_fb
FB: smem_len     : 2179072
FB: line_length  : 800
FB: xres         : 800
FB: xres_virtual : 800
FB: yres         : 600
FB: yres_virtual : 1280
FB: bpp          : 8
Atached mp shm: id 0 addr 2b09c000 size 17260
hw_eink_init()
EINK_VERSION: 0000
ndepth:4 hqdepth:4
attach_shm: fb key=10560257 size=979232
Atached fb shm: id 8001 addr 2b190000 size 979232
allocated 244112 bytes for ecmd
ffi.load: inkview
01/16/37-18:49:52 INFO  initializing for device PB611
01/16/37-18:49:52 INFO  framebuffer resolution: {
    ["h"] = 600,
    ["w"] = 800
}
ffi.load: libs/libmupdf.so
ffi.load: libs/libwrap-mupdf.so
ffi.load: libs/libfreetype.so.6
./luajit: frontend/device/pocketbook/device.lua:197: /usr/lib/libinkview.so: undefined symbol: GetNetState
stack traceback:
	[C]: in function '__index'
	frontend/device/pocketbook/device.lua:197: in function 'isWifiOn'
	frontend/ui/network/manager.lua:90: in function 'init'
	frontend/ui/network/manager.lua:657: in main chunk
	[C]: in function 'require'
	frontend/apps/reader/modules/readerdictionary.lua:14: in main chunk
	[C]: in function 'require'
	frontend/apps/reader/readerui.lua:31: in main chunk
	[C]: in function 'require'
	./reader.lua:274: in main chunk
	[C]: at 0x00013f31
Segmentation fault

I've changed device.lua to:

function NetworkMgr:isWifiOn()
    return false
end

And after that it is back to initial error:

---------------------------------------------
                launching...
  _  _____  ____                _
 | |/ / _ \|  _ \ ___  __ _  __| | ___ _ __
 | ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
 | . \ |_| |  _ <  __/ (_| | (_| |  __/ |
 |_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|

 It's a scroll... It's a codex... It's KOReader!

 [*] Current time: 01/16/37-18:56:24
 [*] Version: v2020.07.1-49-gd935ca6_2020-08-13

ffi.load: SDL2
ffi.load (warning): libSDL2.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so
ffi.load (warning): libSDL2-2.0.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so.0
ffi.load (warning): libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
SDL2 not loaded:	./setupkoenv.lua:27: Not able to load dynamic library: libSDL2-2.0.so.0
ffi.load: inkview
01/16/37-18:56:24 INFO  SoftwareVersion:  E611.15.8.0
01/16/37-18:56:24 INFO  Blacklisting the C BB on this device
Tweaking LuaJIT's max loop unroll factor (15 -> 45)
FB: computed size: 1024000
FB: id           : mxc_epdc_fb
FB: smem_len     : 2179072
FB: line_length  : 800
FB: xres         : 800
FB: xres_virtual : 800
FB: yres         : 600
FB: yres_virtual : 1280
FB: bpp          : 8
Atached mp shm: id 0 addr 2b07c000 size 17260
hw_eink_init()
EINK_VERSION: 0000
ndepth:4 hqdepth:4
attach_shm: fb key=10560257 size=979232
Atached fb shm: id 8001 addr 2b170000 size 979232
allocated 244112 bytes for ecmd
ffi.load: inkview
01/16/37-18:56:25 INFO  initializing for device PB611
01/16/37-18:56:25 INFO  framebuffer resolution: {
    ["h"] = 600,
    ["w"] = 800
}
ffi.load: libs/libmupdf.so
ffi.load: libs/libwrap-mupdf.so
ffi.load: libs/libfreetype.so.6
01/16/37-18:56:26 INFO  opening file ./help/quickstart-en-v2020.07.1-49-gd935ca6_2020-08-13.html
01/16/37-18:56:27 INFO  Loading plugins from directory: plugins
01/16/37-18:56:27 INFO  Plugin  plugins/gestures.koplugin/main.lua  has been disabled.
01/16/37-18:56:27 INFO  Plugin  plugins/hello.koplugin/main.lua  has been disabled.
ffi.load: sqlite3
ffi.load: z
ffi.load: sqlite3
01/16/37-18:56:27 INFO  Plugin  plugins/autosuspend.koplugin/main.lua  has been disabled.
01/16/37-18:56:27 INFO  Plugin  plugins/keepalive.koplugin/main.lua  has been disabled.
01/16/37-18:56:27 INFO  Plugin  plugins/SSH.koplugin/main.lua  has been disabled.
01/16/37-18:56:27 INFO  Plugin  plugins/autofrontlight.koplugin/main.lua  has been disabled.
01/16/37-18:56:28 INFO  RD loaded plugin autoturn at plugins/autoturn.koplugin
01/16/37-18:56:28 INFO  RD loaded plugin backgroundrunner at plugins/backgroundrunner.koplugin
01/16/37-18:56:28 INFO  RD loaded plugin batterystat at plugins/batterystat.koplugin
01/16/37-18:56:28 INFO  RD loaded plugin calibre at plugins/calibre.koplugin
01/16/37-18:56:28 INFO  CoverBrowser: setting default display modes
01/16/37-18:56:28 INFO  RD loaded plugin coverbrowser at plugins/coverbrowser.koplugin
01/16/37-18:56:28 INFO  RD loaded plugin docsettingtweak at plugins/docsettingtweak.koplugin
01/16/37-18:56:28 INFO  RD loaded plugin evernote at plugins/evernote.koplugin
01/16/37-18:56:28 INFO  RD loaded plugin goodreads at plugins/goodreads.koplugin
01/16/37-18:56:28 INFO  RD loaded plugin kosync at plugins/kosync.koplugin
01/16/37-18:56:28 INFO  RD loaded plugin movetoarchive at plugins/movetoarchive.koplugin
01/16/37-18:56:28 INFO  RD loaded plugin newsdownloader at plugins/newsdownloader.koplugin
01/16/37-18:56:28 INFO  RD loaded plugin perceptionexpander at plugins/perceptionexpander.koplugin
01/16/37-18:56:28 INFO  RD loaded plugin profiles at plugins/profiles.koplugin
01/16/37-18:56:28 INFO  RD loaded plugin readtimer at plugins/readtimer.koplugin
01/16/37-18:56:28 INFO  RD loaded plugin send2ebook at plugins/send2ebook.koplugin
01/16/37-18:56:29 INFO  RD loaded plugin statistics at plugins/statistics.koplugin
01/16/37-18:56:29 INFO  RD loaded plugin systemstat at plugins/systemstat.koplugin
01/16/37-18:56:29 INFO  RD loaded plugin terminal at plugins/terminal.koplugin
01/16/37-18:56:29 INFO  RD loaded plugin texteditor at plugins/texteditor.koplugin
01/16/37-18:56:29 INFO  RD loaded plugin timesync at plugins/timesync.koplugin
01/16/37-18:56:29 INFO  RD loaded plugin wallabag at plugins/wallabag.koplugin
01/16/37-18:56:29 INFO  RD loaded plugin zsync at plugins/zsync.koplugin
Called func hw_fullupdate_internal
Called func hw_update_orientation, new orientation 0
01/16/37-18:57:12 WARN  got error waiting for events: Waiting for input failed: 4

@NiLuJe
Copy link
Member

NiLuJe commented Aug 15, 2020 via email

@roshavagarga
Copy link
Contributor

roshavagarga commented Aug 15, 2020

@NiLuJe It does, according to the manual.

This is one of the devices I'd thought might be problematic - it's running firmware 16.0 which seems to be from February 2013, so it's probably even more ancient and might need some bonus stuff to work?

Edit: Also, this specific device is running the older 15.8 version, the newer version might have updated Wi-Fi parts, since the changelog mentions some related stuff.

@NiLuJe
Copy link
Member

NiLuJe commented Aug 15, 2020

If anything, stuff should behave better on ancient FW on PB ;).

@roshavagarga
Copy link
Contributor

Are you sure? I know the new devices on the 6+ firmware are giving hiccups, but the oldest ones we had before this one were on firmware 4 and that's newer than whatever this firmware is, so I thought it might have an older kernel or whatnot. Either way I'm talking out of my ass, I can send you a link to the firmware update bin if that would be useful :)

@Frenzie
Copy link
Member

Frenzie commented Aug 15, 2020

It was? PB support goes back to 2015, for the Touch Lux 2, which is from 2013 or 2014 or something. But I don't know any details about firmware versions.

@roshavagarga
Copy link
Contributor

PocketBook Basic 611 firmware 16.0 - clicky
Pocketbook Basic 614 (Basic 3) firmware 5.17 - clicky

@anlar
Copy link
Author

anlar commented Aug 16, 2020

I've updated device to v16.0.

Initially still got that error with WI-FI:

---------------------------------------------
                launching...
  _  _____  ____                _
 | |/ / _ \|  _ \ ___  __ _  __| | ___ _ __
 | ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
 | . \ |_| |  _ <  __/ (_| | (_| |  __/ |
 |_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|

 It's a scroll... It's a codex... It's KOReader!

 [*] Current time: 08/16/20-18:04:33
 [*] Version: v2020.07.1-49-gd935ca6_2020-08-13

ffi.load: SDL2
ffi.load (warning): libSDL2.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so
ffi.load (warning): libSDL2-2.0.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so.0
ffi.load (warning): libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
SDL2 not loaded:	./setupkoenv.lua:27: Not able to load dynamic library: libSDL2-2.0.so.0
ffi.load: inkview
08/16/20-18:04:33 INFO  SoftwareVersion:  E611.16.0.240
08/16/20-18:04:33 INFO  Blacklisting the C BB on this device
Tweaking LuaJIT's max loop unroll factor (15 -> 45)
FB: computed size: 1089536
FB: id           : mxc_epdc_fb
FB: smem_len     : 2179072
FB: line_length  : 608
FB: xres         : 600
FB: xres_virtual : 608
FB: yres         : 800
FB: yres_virtual : 1792
FB: bpp          : 8
Atached mp shm: id 0 addr 2b1a3000 size 17856
attach_shm: mtfb key=251331748 size=518336
Atached mtfb shm: id 60008 addr 2b223000 size 518336
-------------------------
The task - koreader.app have
 xres=600 yres=800 bpp=4 vdepth=8
-------------------------
ndepth:4 hqdepth:4 orientation:0
attach_shm: ref key=2130378752 size=480000
Atached ref shm: id 8001 addr 2b2a2000 size 480000
OpenTheme: /ebrmain/themes/Contrast.pbt
ffi.load: inkview
08/16/20-18:04:33 INFO  initializing for device PB611
08/16/20-18:04:33 INFO  framebuffer resolution: {
    ["h"] = 800,
    ["w"] = 600
}
Atached mqueue: id 8001
ffi.load: libs/libmupdf.so
ffi.load: libs/libwrap-mupdf.so
ffi.load: libs/libfreetype.so.6
./luajit: frontend/device/pocketbook/device.lua:197: /usr/lib/libinkview.so: undefined symbol: GetNetState
stack traceback:
	[C]: in function '__index'
	frontend/device/pocketbook/device.lua:197: in function 'isWifiOn'
	frontend/ui/network/manager.lua:90: in function 'init'
	frontend/ui/network/manager.lua:657: in main chunk
	[C]: in function 'require'
	frontend/apps/reader/modules/readerdictionary.lua:14: in main chunk
	[C]: in function 'require'
	frontend/apps/reader/readerui.lua:31: in main chunk
	[C]: in function 'require'
	./reader.lua:274: in main chunk
	[C]: at 0x00013f31
Segmentation fault

But after disabling isWifiOn() as before I managed to launch app:

---------------------------------------------
                launching...
  _  _____  ____                _
 | |/ / _ \|  _ \ ___  __ _  __| | ___ _ __
 | ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
 | . \ |_| |  _ <  __/ (_| | (_| |  __/ |
 |_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|

 It's a scroll... It's a codex... It's KOReader!

 [*] Current time: 08/16/20-18:13:58
 [*] Version: v2020.07.1-49-gd935ca6_2020-08-13

ffi.load: SDL2
ffi.load (warning): libSDL2.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so
ffi.load (warning): libSDL2-2.0.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so.0
ffi.load (warning): libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
SDL2 not loaded:	./setupkoenv.lua:27: Not able to load dynamic library: libSDL2-2.0.so.0
ffi.load: inkview
08/16/20-18:13:58 INFO  SoftwareVersion:  E611.16.0.240
08/16/20-18:13:58 INFO  Blacklisting the C BB on this device
Tweaking LuaJIT's max loop unroll factor (15 -> 45)
FB: computed size: 1089536
FB: id           : mxc_epdc_fb
FB: smem_len     : 2179072
FB: line_length  : 608
FB: xres         : 600
FB: xres_virtual : 608
FB: yres         : 800
FB: yres_virtual : 1792
FB: bpp          : 8
Atached mp shm: id 0 addr 2b183000 size 17856
attach_shm: mtfb key=251331818 size=518336
Atached mtfb shm: id 70008 addr 2b203000 size 518336
-------------------------
The task - koreader.app have
 xres=600 yres=800 bpp=4 vdepth=8
-------------------------
ndepth:4 hqdepth:4 orientation:0
attach_shm: ref key=2130378752 size=480000
Atached ref shm: id 8001 addr 2b282000 size 480000
OpenTheme: /ebrmain/themes/Contrast.pbt
ffi.load: inkview
08/16/20-18:13:59 INFO  initializing for device PB611
08/16/20-18:13:59 INFO  framebuffer resolution: {
    ["h"] = 800,
    ["w"] = 600
}
Atached mqueue: id 8001
ffi.load: libs/libmupdf.so
ffi.load: libs/libwrap-mupdf.so
ffi.load: libs/libfreetype.so.6
08/16/20-18:14:00 INFO  opening file ./help/quickstart-en-v2020.07.1-49-gd935ca6_2020-08-13.html
08/16/20-18:14:01 INFO  Loading plugins from directory: plugins
08/16/20-18:14:01 INFO  Plugin  plugins/gestures.koplugin/main.lua  has been disabled.
08/16/20-18:14:01 INFO  Plugin  plugins/hello.koplugin/main.lua  has been disabled.
ffi.load: sqlite3
ffi.load: z
ffi.load: sqlite3
08/16/20-18:14:02 INFO  Plugin  plugins/autosuspend.koplugin/main.lua  has been disabled.
08/16/20-18:14:02 INFO  Plugin  plugins/keepalive.koplugin/main.lua  has been disabled.
08/16/20-18:14:02 INFO  Plugin  plugins/SSH.koplugin/main.lua  has been disabled.
08/16/20-18:14:02 INFO  Plugin  plugins/autofrontlight.koplugin/main.lua  has been disabled.
08/16/20-18:14:02 INFO  RD loaded plugin autoturn at plugins/autoturn.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin backgroundrunner at plugins/backgroundrunner.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin batterystat at plugins/batterystat.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin calibre at plugins/calibre.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin coverbrowser at plugins/coverbrowser.koplugin
08/16/20-18:14:02 WARN  Failed reading ./settings/directory_defaults.lua (probably corrupted).
08/16/20-18:14:02 WARN  no usable backup file for ./settings/directory_defaults.lua to read from
08/16/20-18:14:02 INFO  RD loaded plugin docsettingtweak at plugins/docsettingtweak.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin evernote at plugins/evernote.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin goodreads at plugins/goodreads.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin kosync at plugins/kosync.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin movetoarchive at plugins/movetoarchive.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin newsdownloader at plugins/newsdownloader.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin perceptionexpander at plugins/perceptionexpander.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin profiles at plugins/profiles.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin readtimer at plugins/readtimer.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin send2ebook at plugins/send2ebook.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin statistics at plugins/statistics.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin systemstat at plugins/systemstat.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin terminal at plugins/terminal.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin texteditor at plugins/texteditor.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin timesync at plugins/timesync.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin wallabag at plugins/wallabag.koplugin
08/16/20-18:14:02 INFO  RD loaded plugin zsync at plugins/zsync.koplugin
08/16/20-18:14:13 INFO  FM loaded plugin backgroundrunner at plugins/backgroundrunner.koplugin
08/16/20-18:14:13 INFO  FM loaded plugin batterystat at plugins/batterystat.koplugin
08/16/20-18:14:13 INFO  FM loaded plugin calibre at plugins/calibre.koplugin
08/16/20-18:14:13 INFO  FM loaded plugin coverbrowser at plugins/coverbrowser.koplugin
08/16/20-18:14:13 WARN  Failed reading ./settings/directory_defaults.lua (probably corrupted).
08/16/20-18:14:13 WARN  no usable backup file for ./settings/directory_defaults.lua to read from
08/16/20-18:14:13 INFO  FM loaded plugin docsettingtweak at plugins/docsettingtweak.koplugin
08/16/20-18:14:13 INFO  FM loaded plugin evernote at plugins/evernote.koplugin
08/16/20-18:14:13 INFO  FM loaded plugin goodreads at plugins/goodreads.koplugin
08/16/20-18:14:13 INFO  FM loaded plugin movetoarchive at plugins/movetoarchive.koplugin
08/16/20-18:14:13 INFO  FM loaded plugin newsdownloader at plugins/newsdownloader.koplugin
08/16/20-18:14:13 INFO  FM loaded plugin perceptionexpander at plugins/perceptionexpander.koplugin
08/16/20-18:14:13 INFO  FM loaded plugin profiles at plugins/profiles.koplugin
08/16/20-18:14:13 INFO  FM loaded plugin readtimer at plugins/readtimer.koplugin
08/16/20-18:14:13 INFO  FM loaded plugin send2ebook at plugins/send2ebook.koplugin
08/16/20-18:14:14 INFO  FM loaded plugin statistics at plugins/statistics.koplugin
08/16/20-18:14:14 INFO  FM loaded plugin systemstat at plugins/systemstat.koplugin
08/16/20-18:14:14 INFO  FM loaded plugin terminal at plugins/terminal.koplugin
08/16/20-18:14:14 INFO  FM loaded plugin texteditor at plugins/texteditor.koplugin
08/16/20-18:14:14 INFO  FM loaded plugin timesync at plugins/timesync.koplugin
08/16/20-18:14:14 INFO  FM loaded plugin wallabag at plugins/wallabag.koplugin
ffi.load: libs/liblept.so.5
ffi.load: libs/libk2pdfopt.so.2
ffi.load: libs/liblept.so.5
ffi.load: libs/libk2pdfopt.so.2

It's launching and I'm able to open books and scroll through them. But it's like only OK, back and forward buttons are working (and arrow buttons are not), so:

  1. Open browser, press OK (popup menu with cut, copy etc actions opened) - and everything frozen.
  2. Open browser, scroll using only back/forward buttons, press OK to open book, press OK (settings menu opened at the bottom of screen) - and everything frozen.

@roshavagarga
Copy link
Contributor

You're probably going to have to figure out what codes your buttons use, so that they can be added @anlar - you can find more info on that in #6311

@NiLuJe
Copy link
Member

NiLuJe commented Aug 16, 2020 via email

@anlar
Copy link
Author

anlar commented Aug 17, 2020

@roshavagarga, how to enable debug logging for keys?

@Frenzie
Copy link
Member

Frenzie commented Aug 17, 2020

You can enable debug logging through the file browser → tools menu → developer options (might be on page 2).

(This should really also be in the reader now that we have that more tools menu…)

@roshavagarga
Copy link
Contributor

If you can't do that, just do an evtest @anlar

@roshavagarga
Copy link
Contributor

@anlar When you have information - reach out so somebody can try and fix this, otherwise the device may never be fixed.

@anlar
Copy link
Author

anlar commented Aug 20, 2020

I have checked it further and it seems that keys are not working only for selecting items in lists - file browser, file browser context menu, top and bottom menus in book viewer.

  1. File browser - I could switch pages, open context menu, open book (the one at the first position on the current page) and exit. But can't use up and down keys to select book.
  2. Context menu in file browser - only can exit from it with left key.
  3. Book viewer - could turn pages, open both up and bottom menus.
  4. Book viewer menus - could exit from them and turn pages in the top one. Can't select and action any item in them.

I can't enable debug from developer options in menu and not sure how to user evtest in pocket book. So here is my debug log with following actions:

  1. Opened Koreader.
  2. Pressed PgFwd - next page opened.
  3. Pressed Down - nothing happened.
  4. Pressed Up - nothing happened.
  5. Pressed PgBack - previous page opened.
  6. Pressed Left - app closed.
---------------------------------------------
                launching...
  _  _____  ____                _
 | |/ / _ \|  _ \ ___  __ _  __| | ___ _ __
 | ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
 | . \ |_| |  _ <  __/ (_| | (_| |  __/ |
 |_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|

 It's a scroll... It's a codex... It's KOReader!

 [*] Current time: 08/20/20-22:08:10
 [*] Version: v2020.08

ffi.load: SDL2
ffi.load (warning): libSDL2.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so
ffi.load (warning): libSDL2-2.0.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so.0
ffi.load (warning): libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
SDL2 not loaded:	./setupkoenv.lua:27: Not able to load dynamic library: libSDL2-2.0.so.0
ffi.load: inkview
08/20/20-22:08:10 INFO  SoftwareVersion:  E611.16.0.240
08/20/20-22:08:10 INFO  Blacklisting the C BB on this device
Tweaking LuaJIT's max loop unroll factor (15 -> 45)
FB: computed size: 1089536
FB: id           : mxc_epdc_fb
FB: smem_len     : 2179072
FB: line_length  : 608
FB: xres         : 600
FB: xres_virtual : 608
FB: yres         : 800
FB: yres_virtual : 1792
FB: bpp          : 8
Atached mp shm: id 0 addr 2b183000 size 17856
attach_shm: mtfb key=251331756 size=518336
Atached mtfb shm: id 60008 addr 2b203000 size 518336
-------------------------
The task - koreader.app have
 xres=600 yres=800 bpp=4 vdepth=8
-------------------------
ndepth:4 hqdepth:4 orientation:0
attach_shm: ref key=2130378752 size=480000
Atached ref shm: id 8001 addr 2b282000 size 480000
OpenTheme: /ebrmain/themes/Contrast.pbt
ffi.load: inkview
08/20/20-22:08:10 INFO  initializing for device PB611
08/20/20-22:08:10 INFO  framebuffer resolution: {
    ["h"] = 800,
    ["w"] = 600
}
Atached mqueue: id 8001
ffi.load: libs/libmupdf.so
ffi.load: libs/libwrap-mupdf.so
ffi.load: libs/libfreetype.so.6
08/20/20-22:08:11 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/20/20-22:08:11 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/20/20-22:08:11 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/20/20-22:08:11 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/20/20-22:08:11 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/20/20-22:08:11 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf
08/20/20-22:08:11 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/20/20-22:08:11 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf
08/20/20-22:08:11 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/20/20-22:08:12 DEBUG ImageWidget: _render'ing resources/icons/appbar.home.png 35 35
08/20/20-22:08:12 DEBUG renderImageData: using MuPDF
08/20/20-22:08:12 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c9d95d8
08/20/20-22:08:12 DEBUG cache image|resources/icons/appbar.home.png|35|35
08/20/20-22:08:12 DEBUG ImageWidget: initial offsets 0 0
08/20/20-22:08:12 DEBUG ImageWidget: _render'ing resources/icons/appbar.plus.png 35 35
08/20/20-22:08:12 DEBUG renderImageData: using MuPDF
08/20/20-22:08:12 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c729028
08/20/20-22:08:12 DEBUG cache image|resources/icons/appbar.plus.png|35|35
08/20/20-22:08:12 DEBUG ImageWidget: initial offsets 0 0
08/20/20-22:08:12 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/20/20-22:08:12 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.left.png
08/20/20-22:08:12 DEBUG renderImageData: using MuPDF
08/20/20-22:08:12 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c708630
08/20/20-22:08:12 DEBUG cache image|resources/icons/appbar.chevron.left.png||
08/20/20-22:08:12 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.right.png
08/20/20-22:08:12 DEBUG renderImageData: using MuPDF
08/20/20-22:08:12 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c2d79e0
08/20/20-22:08:12 DEBUG cache image|resources/icons/appbar.chevron.right.png||
08/20/20-22:08:12 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.first.png
08/20/20-22:08:12 DEBUG renderImageData: using MuPDF
08/20/20-22:08:12 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c4fb328
08/20/20-22:08:12 DEBUG cache image|resources/icons/appbar.chevron.first.png||
08/20/20-22:08:12 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.last.png
08/20/20-22:08:12 DEBUG renderImageData: using MuPDF
08/20/20-22:08:12 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c738a48
08/20/20-22:08:12 DEBUG cache image|resources/icons/appbar.chevron.last.png||
08/20/20-22:08:12 DEBUG ImageWidget: _render'ing resources/icons/appbar.arrow.left.up.png
08/20/20-22:08:12 DEBUG renderImageData: using MuPDF
08/20/20-22:08:12 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c4d1e70
08/20/20-22:08:12 DEBUG cache image|resources/icons/appbar.arrow.left.up.png||
08/20/20-22:08:12 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/20/20-22:08:12 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf
08/20/20-22:08:12 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/20/20-22:08:12 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/20/20-22:08:12 DEBUG setDirty via a func from widget table: 0x2caf9900
08/20/20-22:08:12 DEBUG Getting list of dictionaries
08/20/20-22:08:12 DEBUG found 0 dictionaries
08/20/20-22:08:12 INFO  Loading plugins from directory: plugins
08/20/20-22:08:12 INFO  Plugin  plugins/gestures.koplugin/main.lua  has been disabled.
08/20/20-22:08:12 INFO  Plugin  plugins/hello.koplugin/main.lua  has been disabled.
ffi.load: sqlite3
ffi.load: z
ffi.load: sqlite3
08/20/20-22:08:12 INFO  Plugin  plugins/autosuspend.koplugin/main.lua  has been disabled.
08/20/20-22:08:12 INFO  Plugin  plugins/keepalive.koplugin/main.lua  has been disabled.
08/20/20-22:08:12 INFO  Plugin  plugins/SSH.koplugin/main.lua  has been disabled.
08/20/20-22:08:12 INFO  Plugin  plugins/autofrontlight.koplugin/main.lua  has been disabled.
08/20/20-22:08:13 DEBUG BackgroundRunnerWidget: start running @  1597946893
08/20/20-22:08:13 INFO  FM loaded plugin backgroundrunner at plugins/backgroundrunner.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin batterystat at plugins/batterystat.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin calibre at plugins/calibre.koplugin
08/20/20-22:08:13 DEBUG CoverBrowser: setting FileManager display mode to: list_image_meta
08/20/20-22:08:13 DEBUG CoverBrowser: setting History display mode to: mosaic_image
08/20/20-22:08:13 DEBUG CoverBrowser: setting Collection display mode to: classic
08/20/20-22:08:13 INFO  FM loaded plugin coverbrowser at plugins/coverbrowser.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin docsettingtweak at plugins/docsettingtweak.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin evernote at plugins/evernote.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin goodreads at plugins/goodreads.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin movetoarchive at plugins/movetoarchive.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin newsdownloader at plugins/newsdownloader.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin perceptionexpander at plugins/perceptionexpander.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin profiles at plugins/profiles.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin readtimer at plugins/readtimer.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin send2ebook at plugins/send2ebook.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin statistics at plugins/statistics.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin systemstat at plugins/systemstat.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin terminal at plugins/terminal.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin texteditor at plugins/texteditor.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin timesync at plugins/timesync.koplugin
08/20/20-22:08:13 INFO  FM loaded plugin wallabag at plugins/wallabag.koplugin
08/20/20-22:08:13 DEBUG show widget: table: 0x2caf9900
08/20/20-22:08:13 DEBUG setDirty nil from widget table: 0x2caf9900 w/ NO region 
08/20/20-22:08:13 DEBUG painting widget: table: 0x2c9b1970
08/20/20-22:08:13 DEBUG blitFrom 10 5 0 0 35 35
08/20/20-22:08:13 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/20/20-22:08:13 DEBUG blitFrom 555 5 0 0 35 35
08/20/20-22:08:13 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/20/20-22:08:13 DEBUG Found font: NotoSansArabicUI-Regular.ttf in ./fonts/noto/NotoSansArabicUI-Regular.ttf
08/20/20-22:08:13 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/20/20-22:08:13 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/20/20-22:08:13 DEBUG blitFrom 197 750 0 0 48 48
08/20/20-22:08:13 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/20/20-22:08:13 DEBUG blitFrom 355 750 0 0 48 48
08/20/20-22:08:13 DEBUG _refresh: Enqueued ui update for region 0 0 600 800 
08/20/20-22:08:13 DEBUG refresh: ui-mode 0 0 600 800
08/20/20-22:08:13 DEBUG mxc_update: 600x800 region @ (0, 0) with marker 1 (WFM: 2 & UPD: 0)
08/20/20-22:08:13 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/20/20-22:08:13 DEBUG Found font: NotoSansArabicUI-Bold.ttf in ./fonts/noto/NotoSansArabicUI-Bold.ttf
08/20/20-22:08:13 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:13 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/20/20-22:08:13 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:13 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:13 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:13 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:13 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:13 DEBUG setDirty via a func from widget table: 0x2caf9900
08/20/20-22:08:13 DEBUG setDirty via a func from widget table: 0x2caf9900
08/20/20-22:08:13 DEBUG painting widget: table: 0x2c9b1970
08/20/20-22:08:13 DEBUG blitFrom 10 5 0 0 35 35
08/20/20-22:08:13 DEBUG blitFrom 555 5 0 0 35 35
08/20/20-22:08:13 DEBUG blitFrom 12 345 0 0 40 62
08/20/20-22:08:13 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/20/20-22:08:13 DEBUG blitFrom 12 412 0 0 40 62
08/20/20-22:08:13 DEBUG blitFrom 12 479 0 0 40 62
08/20/20-22:08:13 DEBUG blitFrom 12 546 0 0 40 62
08/20/20-22:08:13 DEBUG blitFrom 12 613 0 0 40 62
08/20/20-22:08:13 DEBUG blitFrom 12 680 0 0 40 62
08/20/20-22:08:13 DEBUG blitFrom 113 750 0 0 48 48
08/20/20-22:08:13 DEBUG blitFrom 197 750 0 0 48 48
08/20/20-22:08:13 DEBUG blitFrom 355 750 0 0 48 48
08/20/20-22:08:13 DEBUG blitFrom 439 750 0 0 48 48
08/20/20-22:08:13 DEBUG _repaint: it was dithered, infecting the refresh queue
08/20/20-22:08:13 DEBUG _refresh: Enqueued ui update for region 0 74 600 726 w/ HW dithering
08/20/20-22:08:13 DEBUG _refresh: Enqueued ui update for region 0 0 600 800 w/ HW dithering
08/20/20-22:08:13 DEBUG refresh: ui-mode 0 0 600 800
08/20/20-22:08:13 DEBUG refresh: wait for completion of (previous) marker 1
08/20/20-22:08:14 DEBUG mxc_update: 600x800 region @ (0, 0) with marker 2 (WFM: 2 & UPD: 0)
08/20/20-22:08:14 DEBUG input event => type: 21, code: 0(nil), value: 0, time: 1597946890.797801
08/20/20-22:08:14 DEBUG input event => type: 23, code: 0(nil), value: 0, time: 1597946890.797840
08/20/20-22:08:14 DEBUG input event => type: 151, code: 1196(nil), value: 0, time: 1597946890.822092
08/20/20-22:08:15 DEBUG BackgroundRunner: _execute() @  1597946895
08/20/20-22:08:15 DEBUG BackgroundRunnerWidget: start running @  1597946895
08/20/20-22:08:16 DEBUG input event => type: 25, code: 25(LPgFwd), value: 0, time: 1597946896.643371
08/20/20-22:08:16 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:16 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:16 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:16 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:16 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:16 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:16 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:16 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:16 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:16 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:16 DEBUG setDirty via a func from widget table: 0x2caf9900
08/20/20-22:08:16 DEBUG painting widget: table: 0x2c9b1970
08/20/20-22:08:16 DEBUG blitFrom 10 5 0 0 35 35
08/20/20-22:08:16 DEBUG blitFrom 555 5 0 0 35 35
08/20/20-22:08:16 DEBUG blitFrom 12 77 0 0 40 62
08/20/20-22:08:16 DEBUG blitFrom 12 144 0 0 40 62
08/20/20-22:08:16 DEBUG blitFrom 12 211 0 0 39 62
08/20/20-22:08:16 DEBUG blitFrom 12 278 0 0 40 62
08/20/20-22:08:16 DEBUG blitFrom 12 345 0 0 40 62
08/20/20-22:08:16 DEBUG blitFrom 12 412 0 0 40 62
08/20/20-22:08:16 DEBUG blitFrom 12 479 0 0 40 62
08/20/20-22:08:16 DEBUG blitFrom 12 546 0 0 40 62
08/20/20-22:08:16 DEBUG blitFrom 12 613 0 0 40 62
08/20/20-22:08:16 DEBUG blitFrom 12 680 0 0 40 62
08/20/20-22:08:16 DEBUG blitFrom 113 750 0 0 48 48
08/20/20-22:08:16 DEBUG blitFrom 197 750 0 0 48 48
08/20/20-22:08:16 DEBUG blitFrom 355 750 0 0 48 48
08/20/20-22:08:16 DEBUG blitFrom 439 750 0 0 48 48
08/20/20-22:08:16 DEBUG _repaint: it was dithered, infecting the refresh queue
08/20/20-22:08:16 DEBUG _refresh: Enqueued ui update for region 0 74 600 726 w/ HW dithering
08/20/20-22:08:16 DEBUG refresh: ui-mode 0 74 600 726
08/20/20-22:08:16 DEBUG refresh: wait for completion of (previous) marker 2
08/20/20-22:08:16 DEBUG mxc_update: 600x726 region @ (0, 74) with marker 3 (WFM: 2 & UPD: 0)
08/20/20-22:08:16 DEBUG input event => type: 26, code: 25(LPgFwd), value: 0, time: 1597946896.845267
08/20/20-22:08:17 DEBUG BackgroundRunner: _execute() @  1597946897
08/20/20-22:08:17 DEBUG BackgroundRunnerWidget: start running @  1597946897
08/20/20-22:08:19 DEBUG BackgroundRunner: _execute() @  1597946899
08/20/20-22:08:19 DEBUG BackgroundRunnerWidget: start running @  1597946899
08/20/20-22:08:21 DEBUG BackgroundRunner: _execute() @  1597946901
08/20/20-22:08:21 DEBUG BackgroundRunnerWidget: start running @  1597946901
08/20/20-22:08:22 DEBUG input event => type: 25, code: 18(Down), value: 0, time: 1597946902.613103
08/20/20-22:08:22 DEBUG Cursor position : 2 : 1
08/20/20-22:08:22 DEBUG _refresh: Enqueued fast update for region 0 0 600 800 w/ HW dithering
08/20/20-22:08:22 DEBUG setDirty fast from widget table: 0x2caf9900 w/ NO region AND w/ HW dithering
08/20/20-22:08:22 DEBUG painting widget: table: 0x2c9b1970
08/20/20-22:08:22 DEBUG blitFrom 10 5 0 0 35 35
08/20/20-22:08:22 DEBUG blitFrom 555 5 0 0 35 35
08/20/20-22:08:22 DEBUG blitFrom 12 77 0 0 40 62
08/20/20-22:08:22 DEBUG blitFrom 12 144 0 0 40 62
08/20/20-22:08:22 DEBUG blitFrom 12 211 0 0 39 62
08/20/20-22:08:22 DEBUG blitFrom 12 278 0 0 40 62
08/20/20-22:08:22 DEBUG blitFrom 12 345 0 0 40 62
08/20/20-22:08:22 DEBUG blitFrom 12 412 0 0 40 62
08/20/20-22:08:22 DEBUG blitFrom 12 479 0 0 40 62
08/20/20-22:08:22 DEBUG blitFrom 12 546 0 0 40 62
08/20/20-22:08:22 DEBUG blitFrom 12 613 0 0 40 62
08/20/20-22:08:22 DEBUG blitFrom 12 680 0 0 40 62
08/20/20-22:08:22 DEBUG blitFrom 113 750 0 0 48 48
08/20/20-22:08:22 DEBUG blitFrom 197 750 0 0 48 48
08/20/20-22:08:22 DEBUG blitFrom 355 750 0 0 48 48
08/20/20-22:08:22 DEBUG blitFrom 439 750 0 0 48 48
08/20/20-22:08:22 DEBUG _repaint: it was dithered, infecting the refresh queue
08/20/20-22:08:22 DEBUG refresh: fast 0 0 600 800
08/20/20-22:08:22 DEBUG mxc_update: 600x800 region @ (0, 0) with marker 4 (WFM: 4 & UPD: 0)
08/20/20-22:08:22 DEBUG input event => type: 26, code: 18(Down), value: 0, time: 1597946902.854652
08/20/20-22:08:23 DEBUG BackgroundRunner: _execute() @  1597946903
08/20/20-22:08:23 DEBUG BackgroundRunnerWidget: start running @  1597946903
08/20/20-22:08:25 DEBUG BackgroundRunner: _execute() @  1597946905
08/20/20-22:08:25 DEBUG BackgroundRunnerWidget: start running @  1597946905
08/20/20-22:08:27 DEBUG BackgroundRunner: _execute() @  1597946907
08/20/20-22:08:27 DEBUG BackgroundRunnerWidget: start running @  1597946907
08/20/20-22:08:27 DEBUG input event => type: 25, code: 17(Up), value: 0, time: 1597946907.416152
08/20/20-22:08:27 DEBUG Cursor position : 1 : 1
08/20/20-22:08:27 DEBUG _refresh: Enqueued fast update for region 0 0 600 800 w/ HW dithering
08/20/20-22:08:27 DEBUG setDirty fast from widget table: 0x2caf9900 w/ NO region AND w/ HW dithering
08/20/20-22:08:27 DEBUG painting widget: table: 0x2c9b1970
08/20/20-22:08:27 DEBUG blitFrom 10 5 0 0 35 35
08/20/20-22:08:27 DEBUG blitFrom 555 5 0 0 35 35
08/20/20-22:08:27 DEBUG blitFrom 12 77 0 0 40 62
08/20/20-22:08:27 DEBUG blitFrom 12 144 0 0 40 62
08/20/20-22:08:27 DEBUG blitFrom 12 211 0 0 39 62
08/20/20-22:08:27 DEBUG blitFrom 12 278 0 0 40 62
08/20/20-22:08:27 DEBUG blitFrom 12 345 0 0 40 62
08/20/20-22:08:27 DEBUG blitFrom 12 412 0 0 40 62
08/20/20-22:08:27 DEBUG blitFrom 12 479 0 0 40 62
08/20/20-22:08:27 DEBUG blitFrom 12 546 0 0 40 62
08/20/20-22:08:27 DEBUG blitFrom 12 613 0 0 40 62
08/20/20-22:08:27 DEBUG blitFrom 12 680 0 0 40 62
08/20/20-22:08:27 DEBUG blitFrom 113 750 0 0 48 48
08/20/20-22:08:27 DEBUG blitFrom 197 750 0 0 48 48
08/20/20-22:08:27 DEBUG blitFrom 355 750 0 0 48 48
08/20/20-22:08:27 DEBUG blitFrom 439 750 0 0 48 48
08/20/20-22:08:27 DEBUG _repaint: it was dithered, infecting the refresh queue
08/20/20-22:08:27 DEBUG refresh: fast 0 0 600 800
08/20/20-22:08:27 DEBUG mxc_update: 600x800 region @ (0, 0) with marker 5 (WFM: 4 & UPD: 0)
08/20/20-22:08:32 DEBUG input event => type: 26, code: 17(Up), value: 0, time: 1597946907.677610
08/20/20-22:08:32 DEBUG BackgroundRunner: _execute() @  1597946912
08/20/20-22:08:32 DEBUG BackgroundRunnerWidget: start running @  1597946912
08/20/20-22:08:34 DEBUG BackgroundRunner: _execute() @  1597946914
08/20/20-22:08:34 DEBUG BackgroundRunnerWidget: start running @  1597946914
08/20/20-22:08:36 DEBUG BackgroundRunner: _execute() @  1597946916
08/20/20-22:08:36 DEBUG BackgroundRunnerWidget: start running @  1597946916
08/20/20-22:08:38 DEBUG BackgroundRunner: _execute() @  1597946918
08/20/20-22:08:38 DEBUG BackgroundRunnerWidget: start running @  1597946918
08/20/20-22:08:40 DEBUG BackgroundRunner: _execute() @  1597946920
08/20/20-22:08:40 DEBUG BackgroundRunnerWidget: start running @  1597946920
08/20/20-22:08:42 DEBUG BackgroundRunner: _execute() @  1597946922
08/20/20-22:08:42 DEBUG BackgroundRunnerWidget: start running @  1597946922
08/20/20-22:08:44 DEBUG BackgroundRunner: _execute() @  1597946924
08/20/20-22:08:44 DEBUG BackgroundRunnerWidget: start running @  1597946924
08/20/20-22:08:46 DEBUG BackgroundRunner: _execute() @  1597946926
08/20/20-22:08:46 DEBUG BackgroundRunnerWidget: start running @  1597946926
08/20/20-22:08:47 DEBUG input event => type: 25, code: 24(LPgBack), value: 0, time: 1597946927.474171
08/20/20-22:08:47 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:47 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:47 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:47 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:47 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:47 DEBUG ImageWidget: _render'ing data
08/20/20-22:08:47 DEBUG setDirty via a func from widget table: 0x2caf9900
08/20/20-22:08:47 DEBUG painting widget: table: 0x2c9b1970
08/20/20-22:08:47 DEBUG blitFrom 10 5 0 0 35 35
08/20/20-22:08:47 DEBUG blitFrom 555 5 0 0 35 35
08/20/20-22:08:47 DEBUG blitFrom 12 345 0 0 40 62
08/20/20-22:08:47 DEBUG blitFrom 12 412 0 0 40 62
08/20/20-22:08:47 DEBUG blitFrom 12 479 0 0 40 62
08/20/20-22:08:47 DEBUG blitFrom 12 546 0 0 40 62
08/20/20-22:08:47 DEBUG blitFrom 12 613 0 0 40 62
08/20/20-22:08:47 DEBUG blitFrom 12 680 0 0 40 62
08/20/20-22:08:47 DEBUG blitFrom 113 750 0 0 48 48
08/20/20-22:08:47 DEBUG blitFrom 197 750 0 0 48 48
08/20/20-22:08:47 DEBUG blitFrom 355 750 0 0 48 48
08/20/20-22:08:47 DEBUG blitFrom 439 750 0 0 48 48
08/20/20-22:08:47 DEBUG _repaint: it was dithered, infecting the refresh queue
08/20/20-22:08:47 DEBUG _refresh: Enqueued ui update for region 0 74 600 726 w/ HW dithering
08/20/20-22:08:47 DEBUG refresh: ui-mode 0 74 600 726
08/20/20-22:08:47 DEBUG refresh: wait for completion of (previous) marker 5
08/20/20-22:08:52 DEBUG mxc_update: 600x726 region @ (0, 74) with marker 6 (WFM: 2 & UPD: 0)
08/20/20-22:08:57 DEBUG input event => type: 26, code: 24(LPgBack), value: 0, time: 1597946927.660514
08/20/20-22:08:57 DEBUG BackgroundRunner: _execute() @  1597946937
08/20/20-22:08:57 DEBUG BackgroundRunnerWidget: start running @  1597946937
08/20/20-22:08:59 DEBUG BackgroundRunner: _execute() @  1597946939
08/20/20-22:08:59 DEBUG BackgroundRunnerWidget: start running @  1597946939
08/20/20-22:09:01 DEBUG BackgroundRunner: _execute() @  1597946941
08/20/20-22:09:01 DEBUG BackgroundRunnerWidget: start running @  1597946941
08/20/20-22:09:03 DEBUG BackgroundRunner: _execute() @  1597946943
08/20/20-22:09:03 DEBUG BackgroundRunnerWidget: start running @  1597946943
08/20/20-22:09:05 DEBUG BackgroundRunner: _execute() @  1597946945
08/20/20-22:09:05 DEBUG BackgroundRunnerWidget: start running @  1597946945
08/20/20-22:09:05 DEBUG input event => type: 25, code: 19(Left), value: 0, time: 1597946945.991692
08/20/20-22:09:05 DEBUG close widget: table: 0x2cc108a0
08/20/20-22:09:06 DEBUG CoverMenu:onCloseWidget: terminating jobs if needed
08/20/20-22:09:06 DEBUG terminating 0 subprocesses
08/20/20-22:09:06 DEBUG _refresh: Enqueued partial update for region 0 0 600 800 
08/20/20-22:09:06 DEBUG setDirty partial from widget nil w/ NO region 
08/20/20-22:09:06 DEBUG Lower widget table: 0x2caf9900 was dithered, honoring the dithering hint
08/20/20-22:09:06 DEBUG close filemanager
08/20/20-22:09:06 DEBUG close widget: table: 0x2caf9900
08/20/20-22:09:06 INFO  no dialog left to show
08/20/20-22:09:06 INFO  quitting uimanager
Failed to generate emu event.

@roshavagarga
Copy link
Contributor

@anlar Comparing this to my own experience in #6311 shows similarities:
Up = 17
Down = 18
Left = 19
Back = 24
Forward = 25

What is missing is you using the right button (code 20) or the central button (code 10). Since up and down are registered, that means they were successfully picked up and unless I'm missing something they should be okay? Can you do another log and check right and central buttons before exiting? Just search for 'input event' in the log and confirm whether they use the same codes as mentioned before.

An evtest (which might honestly be useless in this case? A dev will have to confirm) is easy to do if you have adb/root on the device. You can see how I did it on a Bookeen device in #6043.

@Frenzie @NiLuJe Might this have something to do with lines 132-136 in the PB's device.lua file? My train of thoughts is that this PB is using a kernel predating 3.0 which might mean it handles input events differently.

@NiLuJe
Copy link
Member

NiLuJe commented Aug 20, 2020

@roshavagarga: As the comment in that code excerpt says, we trust InkView for input, and we fake evdev events ourselves. So the kernel shouldn't have any impact, only what InkView reports ;)

(And, besides, we handle god-awful kernels just fine on a lot of other devices ^^).

EDIT: This also means, that, yeah, evtest won't be much use in this context ;).

@anlar
Copy link
Author

anlar commented Aug 21, 2020

@roshavagarga Logs from using right and central buttons (both working - context menu and book opening:

08/21/20-19:25:47 DEBUG input event => type: 26, code: 20(Right), value: 0, time: 1598023547.341749
08/21/20-19:25:48 DEBUG input event => type: 25, code: 10(Press), value: 0, time: 1598023548.869318

@roshavagarga
Copy link
Contributor

Well, the codes for those are the same as on the newer Basic 3 device I have.
Please make a full list of all of the issues you're running into, maybe add screenshots/photos to accentuate where you're experiencing difficulties. Some of these are probably general issues - right now dpad/hasfewkeys devices like the 611/614/etc can't leave the statistics window.

@ezdiy
Copy link
Member

ezdiy commented Aug 22, 2020

re:wifi, on pre-4.x inkview, all one can reliably do is QueryNetwork, EnumConnections and NetConnect.

@anlar
Copy link
Author

anlar commented Aug 26, 2020

@roshavagarga Currently I have 2 issues:

Issue 1 - Unable to launch application due to Wi-Fi error

Same issue as in #6548.

Stacktrace:

./luajit: frontend/device/pocketbook/device.lua:197: /usr/lib/libinkview.so: undefined symbol: GetNetState
stack traceback:
        [C]: in function '__index'
        frontend/device/pocketbook/device.lua:197: in function 'isWifiOn'
        frontend/ui/network/manager.lua:90: in function 'init'
        frontend/ui/network/manager.lua:657: in main chunk
        [C]: in function 'require'
        frontend/apps/reader/modules/readerdictionary.lua:14: in main chunk
        [C]: in function 'require'
        frontend/apps/reader/readerui.lua:31: in main chunk
        [C]: in function 'require'
        ./reader.lua:274: in main chunk
        [C]: at 0x00013f31
Segmentation fault

Workaround - update device.lua to:

function NetworkMgr:isWifiOn()
    return false
end

Issue 2 - Up and Down buttons are not working

All buttons except Up and Down are working fine. These 2 buttons are detected according to logs, but nothing happens when I press on them.

@roshavagarga
Copy link
Contributor

@anlar You might want to test a nightly build and see if that helps. Another option is on top of the latest nightly, replace your device.lua file (frontend/device/pocketbook folder, etc.) with this one and see if that offers anything.

@anlar
Copy link
Author

anlar commented Aug 27, 2020

@roshavagarga I've tried nightly build - both issues still there.
Changed device.lua and got new error:

---------------------------------------------
                launching...
  _  _____  ____                _
 | |/ / _ \|  _ \ ___  __ _  __| | ___ _ __
 | ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
 | . \ |_| |  _ <  __/ (_| | (_| |  __/ |
 |_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|

 It's a scroll... It's a codex... It's KOReader!

 [*] Current time: 08/27/20-19:20:49
 [*] Version: v2020.08.1-18-g1919764_2020-08-27

./luajit: frontend/device.lua:54: attempt to index local 'dev' (a boolean value)
stack traceback:
	frontend/device.lua:54: in main chunk
	[C]: in function 'require'
	./reader.lua:119: in main chunk
	[C]: at 0x00013f31
ffi.load: SDL2
ffi.load (warning): libSDL2.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so
ffi.load (warning): libSDL2-2.0.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so.0
ffi.load (warning): libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
SDL2 not loaded:	./setupkoenv.lua:27: Not able to load dynamic library: libSDL2-2.0.so.0

@ezdiy
Copy link
Member

ezdiy commented Aug 27, 2020

@anlar Looks like there's nonsense inside frontend/device/pocketbook/device.lua as it doesn't even seem to even run. You sure you just download raw file, and place it there verbatim?

@anlar
Copy link
Author

anlar commented Aug 27, 2020

@ezdiy Right, re-downloaded file and app is starting, but all buttons are not working now. Start log:

---------------------------------------------
                launching...
  _  _____  ____                _
 | |/ / _ \|  _ \ ___  __ _  __| | ___ _ __
 | ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
 | . \ |_| |  _ <  __/ (_| | (_| |  __/ |
 |_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|

 It's a scroll... It's a codex... It's KOReader!

 [*] Current time: 08/27/20-20:04:06
 [*] Version: v2020.08.1-18-g1919764_2020-08-27

ffi.load: SDL2
ffi.load (warning): libSDL2.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so
ffi.load (warning): libSDL2-2.0.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so.0
ffi.load (warning): libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
SDL2 not loaded:        ./setupkoenv.lua:27: Not able to load dynamic library: libSDL2-2.0.so.0
ffi.load: inkview
ffi.load: inkview-compat
08/27/20-20:04:06 DEBUG Switchin on compat, compat2
08/27/20-20:04:06 INFO  SoftwareVersion:  E611.16.0.240
08/27/20-20:04:06 INFO  Blacklisting the C BB on this device
08/27/20-20:04:06 DEBUG OpenScreen()
Atached mp shm: id 0 addr 2b083000 size 17856
attach_shm: mtfb key=251331754 size=518336
Atached mtfb shm: id 60008 addr 2b103000 size 518336
-------------------------
The task - koreader.app have
 xres=600 yres=800 bpp=4 vdepth=8
-------------------------
ndepth:4 hqdepth:4 orientation:0
attach_shm: ref key=2130378752 size=480000
Atached ref shm: id 8001 addr 2b182000 size 480000
OpenTheme: /ebrmain/themes/Contrast.pbt
08/27/20-20:04:06 DEBUG OpenScreen() done
Tweaking LuaJIT's max loop unroll factor (15 -> 45)
FB: computed size: 1089536
FB: id           : mxc_epdc_fb
FB: smem_len     : 2179072
FB: line_length  : 608
FB: xres         : 600
FB: xres_virtual : 608
FB: yres         : 800
FB: yres_virtual : 1792
FB: bpp          : 8
ffi.load: inkview
08/27/20-20:04:06 DEBUG powerd init done
08/27/20-20:04:06 DEBUG PrepareForLoop()
08/27/20-20:04:06 DEBUG PrepareForLoop() done
08/27/20-20:04:06 INFO  initializing for device PB611
08/27/20-20:04:06 INFO  framebuffer resolution: {
    ["h"] = 800,
    ["w"] = 600
}
ffi.load: libs/libmupdf.so
ffi.load: libs/libwrap-mupdf.so
ffi.load: libs/libfreetype.so.6
08/27/20-20:04:07 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-20:04:07 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-20:04:07 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-20:04:07 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-20:04:07 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-20:04:07 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf
08/27/20-20:04:07 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-20:04:07 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf
08/27/20-20:04:07 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-20:04:08 DEBUG ImageWidget: _render'ing resources/icons/appbar.home.png 35 35
08/27/20-20:04:08 DEBUG renderImageData: using MuPDF
08/27/20-20:04:08 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c380420
08/27/20-20:04:08 DEBUG cache image|resources/icons/appbar.home.png|35|35
08/27/20-20:04:08 DEBUG ImageWidget: initial offsets 0 0
08/27/20-20:04:08 DEBUG ImageWidget: _render'ing resources/icons/appbar.plus.png 35 35
08/27/20-20:04:08 DEBUG renderImageData: using MuPDF
08/27/20-20:04:08 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c38daa0
08/27/20-20:04:08 DEBUG cache image|resources/icons/appbar.plus.png|35|35
08/27/20-20:04:08 DEBUG ImageWidget: initial offsets 0 0
08/27/20-20:04:08 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-20:04:08 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.left.png
08/27/20-20:04:08 DEBUG renderImageData: using MuPDF
08/27/20-20:04:08 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c2de468
08/27/20-20:04:08 DEBUG cache image|resources/icons/appbar.chevron.left.png||
08/27/20-20:04:08 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.right.png
08/27/20-20:04:08 DEBUG renderImageData: using MuPDF
08/27/20-20:04:08 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c2fd0b0
08/27/20-20:04:08 DEBUG cache image|resources/icons/appbar.chevron.right.png||
08/27/20-20:04:08 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.first.png
08/27/20-20:04:08 DEBUG renderImageData: using MuPDF
08/27/20-20:04:08 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c377470
08/27/20-20:04:08 DEBUG cache image|resources/icons/appbar.chevron.first.png||
08/27/20-20:04:08 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.last.png
08/27/20-20:04:08 DEBUG renderImageData: using MuPDF
08/27/20-20:04:08 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c3b8f48
08/27/20-20:04:08 DEBUG cache image|resources/icons/appbar.chevron.last.png||
08/27/20-20:04:08 DEBUG ImageWidget: _render'ing resources/icons/appbar.arrow.left.up.png
08/27/20-20:04:08 DEBUG renderImageData: using MuPDF
08/27/20-20:04:08 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c2dfbd0
08/27/20-20:04:08 DEBUG cache image|resources/icons/appbar.arrow.left.up.png||
08/27/20-20:04:08 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-20:04:08 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf
08/27/20-20:04:08 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-20:04:08 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-20:04:08 DEBUG setDirty via a func from widget table: 0x2bd8fa98
08/27/20-20:04:08 DEBUG Getting list of dictionaries
08/27/20-20:04:08 DEBUG found 0 dictionaries
08/27/20-20:04:08 INFO  Loading plugins from directory: plugins
08/27/20-20:04:08 INFO  Plugin  plugins/gestures.koplugin/main.lua  has been disabled.
08/27/20-20:04:08 INFO  Plugin  plugins/hello.koplugin/main.lua  has been disabled.
ffi.load: sqlite3
ffi.load: z
ffi.load: sqlite3
08/27/20-20:04:08 INFO  Plugin  plugins/autosuspend.koplugin/main.lua  has been disabled.
08/27/20-20:04:08 INFO  Plugin  plugins/keepalive.koplugin/main.lua  has been disabled.
08/27/20-20:04:08 INFO  Plugin  plugins/SSH.koplugin/main.lua  has been disabled.
08/27/20-20:04:08 INFO  Plugin  plugins/autofrontlight.koplugin/main.lua  has been disabled.
08/27/20-20:04:09 DEBUG BackgroundRunnerWidget: start running @  1598544249
08/27/20-20:04:09 INFO  FM loaded plugin backgroundrunner at plugins/backgroundrunner.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin batterystat at plugins/batterystat.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin calibre at plugins/calibre.koplugin
08/27/20-20:04:09 DEBUG CoverBrowser: setting FileManager display mode to: list_image_meta
08/27/20-20:04:09 DEBUG CoverBrowser: setting History display mode to: mosaic_image
08/27/20-20:04:09 DEBUG CoverBrowser: setting Collection display mode to: classic
08/27/20-20:04:09 INFO  FM loaded plugin coverbrowser at plugins/coverbrowser.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin docsettingtweak at plugins/docsettingtweak.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin evernote at plugins/evernote.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin goodreads at plugins/goodreads.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin movetoarchive at plugins/movetoarchive.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin newsdownloader at plugins/newsdownloader.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin perceptionexpander at plugins/perceptionexpander.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin profiles at plugins/profiles.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin readtimer at plugins/readtimer.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin send2ebook at plugins/send2ebook.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin statistics at plugins/statistics.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin systemstat at plugins/systemstat.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin terminal at plugins/terminal.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin texteditor at plugins/texteditor.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin timesync at plugins/timesync.koplugin
08/27/20-20:04:09 INFO  FM loaded plugin wallabag at plugins/wallabag.koplugin
08/27/20-20:04:09 DEBUG show widget: table: 0x2bd8fa98
08/27/20-20:04:09 DEBUG setDirty nil from widget table: 0x2bd8fa98 w/ NO region 
08/27/20-20:04:09 DEBUG painting widget: table: 0x2d980b90
08/27/20-20:04:09 DEBUG blitFrom 10 5 0 0 35 35
08/27/20-20:04:09 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-20:04:09 DEBUG blitFrom 555 5 0 0 35 35
08/27/20-20:04:09 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-20:04:09 DEBUG Found font: NotoSansArabicUI-Regular.ttf in ./fonts/noto/NotoSansArabicUI-Regular.ttf
08/27/20-20:04:09 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-20:04:09 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-20:04:09 DEBUG blitFrom 197 750 0 0 48 48
08/27/20-20:04:09 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-20:04:09 DEBUG blitFrom 355 750 0 0 48 48
08/27/20-20:04:09 DEBUG _refresh: Enqueued ui update for region 0 0 600 800 
08/27/20-20:04:09 DEBUG refresh: ui-mode 0 0 600 800
08/27/20-20:04:09 DEBUG mxc_update: 600x800 region @ (0, 0) with marker 1 (WFM: 2 & UPD: 0)
08/27/20-20:04:09 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-20:04:09 DEBUG Found font: NotoSansArabicUI-Bold.ttf in ./fonts/noto/NotoSansArabicUI-Bold.ttf
08/27/20-20:04:09 DEBUG ImageWidget: _render'ing data
08/27/20-20:04:09 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-20:04:09 DEBUG ImageWidget: _render'ing data
08/27/20-20:04:09 DEBUG ImageWidget: _render'ing data
08/27/20-20:04:09 DEBUG ImageWidget: _render'ing data
08/27/20-20:04:09 DEBUG ImageWidget: _render'ing data
08/27/20-20:04:09 DEBUG ImageWidget: _render'ing data
08/27/20-20:04:09 DEBUG setDirty via a func from widget table: 0x2bd8fa98
08/27/20-20:04:09 DEBUG setDirty via a func from widget table: 0x2bd8fa98
08/27/20-20:04:09 DEBUG painting widget: table: 0x2d980b90
08/27/20-20:04:09 DEBUG blitFrom 10 5 0 0 35 35
08/27/20-20:04:09 DEBUG blitFrom 555 5 0 0 35 35
08/27/20-20:04:09 DEBUG blitFrom 12 345 0 0 40 62
08/27/20-20:04:09 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-20:04:09 DEBUG blitFrom 12 412 0 0 40 62
08/27/20-20:04:10 DEBUG blitFrom 12 479 0 0 40 62
08/27/20-20:04:10 DEBUG blitFrom 12 546 0 0 40 62
08/27/20-20:04:10 DEBUG blitFrom 12 613 0 0 40 62
08/27/20-20:04:10 DEBUG blitFrom 12 680 0 0 40 62
08/27/20-20:04:10 DEBUG blitFrom 113 750 0 0 48 48
08/27/20-20:04:10 DEBUG blitFrom 197 750 0 0 48 48
08/27/20-20:04:10 DEBUG blitFrom 355 750 0 0 48 48
08/27/20-20:04:10 DEBUG blitFrom 439 750 0 0 48 48
08/27/20-20:04:10 DEBUG _repaint: it was dithered, infecting the refresh queue
08/27/20-20:04:10 DEBUG _refresh: Enqueued ui update for region 0 74 600 726 w/ HW dithering
08/27/20-20:04:10 DEBUG _refresh: Enqueued ui update for region 0 0 600 800 w/ HW dithering
08/27/20-20:04:10 DEBUG refresh: ui-mode 0 0 600 800
08/27/20-20:04:10 DEBUG refresh: wait for completion of (previous) marker 1
08/27/20-20:04:10 DEBUG mxc_update: 600x800 region @ (0, 0) with marker 2 (WFM: 2 & UPD: 0)
08/27/20-20:04:10 DEBUG ProcessEventLoop()
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG adaptive suspend event far into future, reset delay
08/27/20-20:04:10 DEBUG adaptive suspend new delay 2
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.885158
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.886279
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.888144
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.889275
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.889967
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.890617
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.891219
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.892051
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.893075
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.893886
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.894452
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.894983
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.895499
08/27/20-20:04:10 DEBUG received event 0 0 0
08/27/20-20:04:10 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-20:04:10 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598544250.896178
...

@ezdiy
Copy link
Member

ezdiy commented Aug 27, 2020

@anlar

Now we're getting closer. Replace libinkview-compat.so in koreader/libs with this one

libinkview-compat.zip

@anlar
Copy link
Author

anlar commented Aug 27, 2020

@ezdiy Same behavior - buttons are not working:

---------------------------------------------
                launching...
  _  _____  ____                _
 | |/ / _ \|  _ \ ___  __ _  __| | ___ _ __
 | ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
 | . \ |_| |  _ <  __/ (_| | (_| |  __/ |
 |_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|

 It's a scroll... It's a codex... It's KOReader!

 [*] Current time: 08/27/20-22:06:40
 [*] Version: v2020.08.1-18-g1919764_2020-08-27

ffi.load: SDL2
ffi.load (warning): libSDL2.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so
ffi.load (warning): libSDL2-2.0.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so.0
ffi.load (warning): libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
SDL2 not loaded:	./setupkoenv.lua:27: Not able to load dynamic library: libSDL2-2.0.so.0
ffi.load: inkview
ffi.load: inkview-compat
08/27/20-22:06:40 DEBUG Switchin on compat, compat2
08/27/20-22:06:40 INFO  SoftwareVersion:  E611.16.0.240
08/27/20-22:06:40 INFO  Blacklisting the C BB on this device
08/27/20-22:06:40 DEBUG OpenScreen()
Atached mp shm: id 0 addr 2b0e3000 size 17856
attach_shm: mtfb key=251331903 size=518336
Atached mtfb shm: id 98008 addr 2b163000 size 518336
-------------------------
The task - koreader.app have
 xres=600 yres=800 bpp=4 vdepth=8
-------------------------
ndepth:4 hqdepth:4 orientation:0
attach_shm: ref key=2130378752 size=480000
Atached ref shm: id 8001 addr 2b1e2000 size 480000
OpenTheme: /ebrmain/themes/Contrast.pbt
08/27/20-22:06:40 DEBUG OpenScreen() done
Tweaking LuaJIT's max loop unroll factor (15 -> 45)
FB: computed size: 1089536
FB: id           : mxc_epdc_fb
FB: smem_len     : 2179072
FB: line_length  : 608
FB: xres         : 600
FB: xres_virtual : 608
FB: yres         : 800
FB: yres_virtual : 1792
FB: bpp          : 8
ffi.load: inkview
08/27/20-22:06:40 DEBUG powerd init done
08/27/20-22:06:40 DEBUG PrepareForLoop()
08/27/20-22:06:40 DEBUG PrepareForLoop() done
08/27/20-22:06:40 INFO  initializing for device PB611
08/27/20-22:06:40 INFO  framebuffer resolution: {
    ["w"] = 600,
    ["h"] = 800
}
ffi.load: libs/libmupdf.so
ffi.load: libs/libwrap-mupdf.so
ffi.load: libs/libfreetype.so.6
08/27/20-22:06:41 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-22:06:41 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-22:06:41 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-22:06:41 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-22:06:41 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-22:06:41 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf
08/27/20-22:06:41 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-22:06:41 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf
08/27/20-22:06:42 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-22:06:42 DEBUG ImageWidget: _render'ing resources/icons/appbar.home.png 35 35
08/27/20-22:06:42 DEBUG renderImageData: using MuPDF
08/27/20-22:06:42 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c432868
08/27/20-22:06:42 DEBUG cache image|resources/icons/appbar.home.png|35|35
08/27/20-22:06:42 DEBUG ImageWidget: initial offsets 0 0
08/27/20-22:06:42 DEBUG ImageWidget: _render'ing resources/icons/appbar.plus.png 35 35
08/27/20-22:06:42 DEBUG renderImageData: using MuPDF
08/27/20-22:06:42 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c4204d0
08/27/20-22:06:42 DEBUG cache image|resources/icons/appbar.plus.png|35|35
08/27/20-22:06:42 DEBUG ImageWidget: initial offsets 0 0
08/27/20-22:06:42 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-22:06:42 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.left.png
08/27/20-22:06:42 DEBUG renderImageData: using MuPDF
08/27/20-22:06:42 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c416fc8
08/27/20-22:06:42 DEBUG cache image|resources/icons/appbar.chevron.left.png||
08/27/20-22:06:42 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.right.png
08/27/20-22:06:42 DEBUG renderImageData: using MuPDF
08/27/20-22:06:42 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c430fb0
08/27/20-22:06:42 DEBUG cache image|resources/icons/appbar.chevron.right.png||
08/27/20-22:06:42 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.first.png
08/27/20-22:06:42 DEBUG renderImageData: using MuPDF
08/27/20-22:06:42 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c439d88
08/27/20-22:06:42 DEBUG cache image|resources/icons/appbar.chevron.first.png||
08/27/20-22:06:42 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.last.png
08/27/20-22:06:42 DEBUG renderImageData: using MuPDF
08/27/20-22:06:42 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2bb0e4a8
08/27/20-22:06:42 DEBUG cache image|resources/icons/appbar.chevron.last.png||
08/27/20-22:06:42 DEBUG ImageWidget: _render'ing resources/icons/appbar.arrow.left.up.png
08/27/20-22:06:42 DEBUG renderImageData: using MuPDF
08/27/20-22:06:42 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c3fc7f0
08/27/20-22:06:42 DEBUG cache image|resources/icons/appbar.arrow.left.up.png||
08/27/20-22:06:42 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-22:06:42 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf
08/27/20-22:06:42 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-22:06:42 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-22:06:42 DEBUG setDirty via a func from widget table: 0x2c3dc528
08/27/20-22:06:42 DEBUG Getting list of dictionaries
08/27/20-22:06:42 DEBUG found 0 dictionaries
08/27/20-22:06:42 INFO  Loading plugins from directory: plugins
08/27/20-22:06:42 INFO  Plugin  plugins/gestures.koplugin/main.lua  has been disabled.
08/27/20-22:06:42 INFO  Plugin  plugins/hello.koplugin/main.lua  has been disabled.
ffi.load: sqlite3
ffi.load: z
ffi.load: sqlite3
08/27/20-22:06:42 INFO  Plugin  plugins/autosuspend.koplugin/main.lua  has been disabled.
08/27/20-22:06:42 INFO  Plugin  plugins/keepalive.koplugin/main.lua  has been disabled.
08/27/20-22:06:42 INFO  Plugin  plugins/SSH.koplugin/main.lua  has been disabled.
08/27/20-22:06:42 INFO  Plugin  plugins/autofrontlight.koplugin/main.lua  has been disabled.
08/27/20-22:06:43 DEBUG BackgroundRunnerWidget: start running @  1598551603
08/27/20-22:06:43 INFO  FM loaded plugin backgroundrunner at plugins/backgroundrunner.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin batterystat at plugins/batterystat.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin calibre at plugins/calibre.koplugin
08/27/20-22:06:43 DEBUG CoverBrowser: setting FileManager display mode to: list_image_meta
08/27/20-22:06:43 DEBUG CoverBrowser: setting History display mode to: mosaic_image
08/27/20-22:06:43 DEBUG CoverBrowser: setting Collection display mode to: classic
08/27/20-22:06:43 INFO  FM loaded plugin coverbrowser at plugins/coverbrowser.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin docsettingtweak at plugins/docsettingtweak.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin evernote at plugins/evernote.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin goodreads at plugins/goodreads.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin movetoarchive at plugins/movetoarchive.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin newsdownloader at plugins/newsdownloader.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin perceptionexpander at plugins/perceptionexpander.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin profiles at plugins/profiles.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin readtimer at plugins/readtimer.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin send2ebook at plugins/send2ebook.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin statistics at plugins/statistics.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin systemstat at plugins/systemstat.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin terminal at plugins/terminal.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin texteditor at plugins/texteditor.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin timesync at plugins/timesync.koplugin
08/27/20-22:06:43 INFO  FM loaded plugin wallabag at plugins/wallabag.koplugin
08/27/20-22:06:43 DEBUG show widget: table: 0x2c3dc528
08/27/20-22:06:43 DEBUG setDirty nil from widget table: 0x2c3dc528 w/ NO region 
08/27/20-22:06:43 DEBUG painting widget: table: 0x2d9e3c00
08/27/20-22:06:43 DEBUG blitFrom 10 5 0 0 35 35
08/27/20-22:06:43 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-22:06:43 DEBUG blitFrom 555 5 0 0 35 35
08/27/20-22:06:43 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-22:06:43 DEBUG Found font: NotoSansArabicUI-Regular.ttf in ./fonts/noto/NotoSansArabicUI-Regular.ttf
08/27/20-22:06:43 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-22:06:43 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-22:06:43 DEBUG blitFrom 197 750 0 0 48 48
08/27/20-22:06:43 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-22:06:43 DEBUG blitFrom 355 750 0 0 48 48
08/27/20-22:06:43 DEBUG _refresh: Enqueued ui update for region 0 0 600 800 
08/27/20-22:06:43 DEBUG refresh: ui-mode 0 0 600 800
08/27/20-22:06:43 DEBUG mxc_update: 600x800 region @ (0, 0) with marker 1 (WFM: 2 & UPD: 0)
08/27/20-22:06:43 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-22:06:43 DEBUG Found font: NotoSansArabicUI-Bold.ttf in ./fonts/noto/NotoSansArabicUI-Bold.ttf
08/27/20-22:06:43 DEBUG ImageWidget: _render'ing data
08/27/20-22:06:43 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-22:06:43 DEBUG ImageWidget: _render'ing data
08/27/20-22:06:44 DEBUG ImageWidget: _render'ing data
08/27/20-22:06:44 DEBUG ImageWidget: _render'ing data
08/27/20-22:06:44 DEBUG ImageWidget: _render'ing data
08/27/20-22:06:44 DEBUG ImageWidget: _render'ing data
08/27/20-22:06:44 DEBUG setDirty via a func from widget table: 0x2c3dc528
08/27/20-22:06:44 DEBUG setDirty via a func from widget table: 0x2c3dc528
08/27/20-22:06:44 DEBUG painting widget: table: 0x2d9e3c00
08/27/20-22:06:44 DEBUG blitFrom 10 5 0 0 35 35
08/27/20-22:06:44 DEBUG blitFrom 555 5 0 0 35 35
08/27/20-22:06:44 DEBUG blitFrom 12 345 0 0 40 62
08/27/20-22:06:44 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-22:06:44 DEBUG blitFrom 12 412 0 0 40 62
08/27/20-22:06:44 DEBUG blitFrom 12 479 0 0 40 62
08/27/20-22:06:44 DEBUG blitFrom 12 546 0 0 40 62
08/27/20-22:06:44 DEBUG blitFrom 12 613 0 0 40 62
08/27/20-22:06:44 DEBUG blitFrom 12 680 0 0 40 62
08/27/20-22:06:44 DEBUG blitFrom 113 750 0 0 48 48
08/27/20-22:06:44 DEBUG blitFrom 197 750 0 0 48 48
08/27/20-22:06:44 DEBUG blitFrom 355 750 0 0 48 48
08/27/20-22:06:44 DEBUG blitFrom 439 750 0 0 48 48
08/27/20-22:06:44 DEBUG _repaint: it was dithered, infecting the refresh queue
08/27/20-22:06:44 DEBUG _refresh: Enqueued ui update for region 0 74 600 726 w/ HW dithering
08/27/20-22:06:44 DEBUG _refresh: Enqueued ui update for region 0 0 600 800 w/ HW dithering
08/27/20-22:06:44 DEBUG refresh: ui-mode 0 0 600 800
08/27/20-22:06:44 DEBUG refresh: wait for completion of (previous) marker 1
08/27/20-22:06:44 DEBUG mxc_update: 600x800 region @ (0, 0) with marker 2 (WFM: 2 & UPD: 0)
08/27/20-22:06:45 DEBUG ProcessEventLoop()
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG adaptive suspend event far into future, reset delay
08/27/20-22:06:45 DEBUG adaptive suspend new delay 2
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-22:06:45 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598551605.35074
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-22:06:45 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598551605.36556
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-22:06:45 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598551605.37983
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-22:06:45 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598551605.39178
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-22:06:45 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598551605.40383
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-22:06:45 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598551605.41155
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-22:06:45 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598551605.41849
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-22:06:45 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598551605.42730
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-22:06:45 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598551605.43547
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-22:06:45 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598551605.44741
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-22:06:45 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598551605.45537
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-22:06:45 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598551605.46140
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-22:06:45 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1598551605.46710
08/27/20-22:06:45 DEBUG received event 0 0 0
08/27/20-22:06:45 DEBUG ProcessEventLoop() end, eventq =  1
...

@ezdiy
Copy link
Member

ezdiy commented Aug 27, 2020

@anlar Ok third time is the charm.

libinkview-compat-v3.zip

@anlar
Copy link
Author

anlar commented Aug 27, 2020

@ezdiy Tried third version - all buttons except Up and Down are working fine.

---------------------------------------------
                launching...
  _  _____  ____                _
 | |/ / _ \|  _ \ ___  __ _  __| | ___ _ __
 | ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
 | . \ |_| |  _ <  __/ (_| | (_| |  __/ |
 |_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|

 It's a scroll... It's a codex... It's KOReader!

 [*] Current time: 08/27/20-23:22:00
 [*] Version: v2020.08.1-18-g1919764_2020-08-27

ffi.load: SDL2
ffi.load (warning): libSDL2.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so
ffi.load (warning): libSDL2-2.0.so: cannot open shared object file: No such file or directory
ffi.load: libSDL2-2.0.so.0
ffi.load (warning): libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
SDL2 not loaded:	./setupkoenv.lua:27: Not able to load dynamic library: libSDL2-2.0.so.0
ffi.load: inkview
ffi.load: inkview-compat
08/27/20-23:22:00 DEBUG Switchin on compat, compat2
08/27/20-23:22:00 INFO  SoftwareVersion:  E611.16.0.240
08/27/20-23:22:00 INFO  Blacklisting the C BB on this device
08/27/20-23:22:00 DEBUG OpenScreen()
Atached mp shm: id 0 addr 2b062000 size 17856
attach_shm: mtfb key=251331622 size=518336
Atached mtfb shm: id 40008 addr 2b0e2000 size 518336
-------------------------
The task - koreader.app have
 xres=600 yres=800 bpp=4 vdepth=8
-------------------------
ndepth:4 hqdepth:4 orientation:0
attach_shm: ref key=2130378752 size=480000
Atached ref shm: id 8001 addr 2b161000 size 480000
OpenTheme: /ebrmain/themes/Contrast.pbt
08/27/20-23:22:00 DEBUG OpenScreen() done
Tweaking LuaJIT's max loop unroll factor (15 -> 45)
FB: computed size: 1089536
FB: id           : mxc_epdc_fb
FB: smem_len     : 2179072
FB: line_length  : 608
FB: xres         : 600
FB: xres_virtual : 608
FB: yres         : 800
FB: yres_virtual : 1792
FB: bpp          : 8
ffi.load: inkview
08/27/20-23:22:00 DEBUG powerd init done
08/27/20-23:22:01 DEBUG PrepareForLoop()
prepare event loop
08/27/20-23:22:01 DEBUG PrepareForLoop() done
08/27/20-23:22:01 INFO  initializing for device PB611
08/27/20-23:22:01 INFO  framebuffer resolution: {
    ["w"] = 600,
    ["h"] = 800
}
ivm proc 21 0 0
ffi.load: libs/libmupdf.so
ffi.load: libs/libwrap-mupdf.so
ffi.load: libs/libfreetype.so.6
08/27/20-23:22:01 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-23:22:01 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-23:22:01 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-23:22:01 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-23:22:01 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-23:22:01 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf
08/27/20-23:22:01 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-23:22:01 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf
08/27/20-23:22:02 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-23:22:02 DEBUG ImageWidget: _render'ing resources/icons/appbar.home.png 35 35
08/27/20-23:22:02 DEBUG renderImageData: using MuPDF
08/27/20-23:22:02 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2cb7a1f0
08/27/20-23:22:02 DEBUG cache image|resources/icons/appbar.home.png|35|35
08/27/20-23:22:02 DEBUG ImageWidget: initial offsets 0 0
08/27/20-23:22:02 DEBUG ImageWidget: _render'ing resources/icons/appbar.plus.png 35 35
08/27/20-23:22:02 DEBUG renderImageData: using MuPDF
08/27/20-23:22:02 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c289d78
08/27/20-23:22:02 DEBUG cache image|resources/icons/appbar.plus.png|35|35
08/27/20-23:22:02 DEBUG ImageWidget: initial offsets 0 0
08/27/20-23:22:02 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-23:22:02 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.left.png
08/27/20-23:22:02 DEBUG renderImageData: using MuPDF
08/27/20-23:22:02 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2cb9cad0
08/27/20-23:22:02 DEBUG cache image|resources/icons/appbar.chevron.left.png||
08/27/20-23:22:02 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.right.png
08/27/20-23:22:02 DEBUG renderImageData: using MuPDF
08/27/20-23:22:02 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2cba6468
08/27/20-23:22:02 DEBUG cache image|resources/icons/appbar.chevron.right.png||
08/27/20-23:22:02 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.first.png
08/27/20-23:22:02 DEBUG renderImageData: using MuPDF
08/27/20-23:22:02 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2cbbf800
08/27/20-23:22:02 DEBUG cache image|resources/icons/appbar.chevron.first.png||
08/27/20-23:22:02 DEBUG ImageWidget: _render'ing resources/icons/appbar.chevron.last.png
08/27/20-23:22:02 DEBUG renderImageData: using MuPDF
08/27/20-23:22:02 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2c2c38a0
08/27/20-23:22:02 DEBUG cache image|resources/icons/appbar.chevron.last.png||
08/27/20-23:22:02 DEBUG ImageWidget: _render'ing resources/icons/appbar.arrow.left.up.png
08/27/20-23:22:02 DEBUG renderImageData: using MuPDF
08/27/20-23:22:02 DEBUG Mupdf.renderImage true cdata<struct BlitBuffer8>: 0x2caa84c0
08/27/20-23:22:02 DEBUG cache image|resources/icons/appbar.arrow.left.up.png||
08/27/20-23:22:02 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-23:22:02 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf
08/27/20-23:22:02 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-23:22:02 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-23:22:02 DEBUG setDirty via a func from widget table: 0x2cb652f8
08/27/20-23:22:02 DEBUG Getting list of dictionaries
08/27/20-23:22:02 DEBUG found 0 dictionaries
08/27/20-23:22:02 INFO  Loading plugins from directory: plugins
08/27/20-23:22:02 INFO  Plugin  plugins/gestures.koplugin/main.lua  has been disabled.
08/27/20-23:22:02 INFO  Plugin  plugins/hello.koplugin/main.lua  has been disabled.
ffi.load: sqlite3
ffi.load: z
ffi.load: sqlite3
08/27/20-23:22:02 INFO  Plugin  plugins/autosuspend.koplugin/main.lua  has been disabled.
08/27/20-23:22:02 INFO  Plugin  plugins/keepalive.koplugin/main.lua  has been disabled.
08/27/20-23:22:02 INFO  Plugin  plugins/SSH.koplugin/main.lua  has been disabled.
08/27/20-23:22:02 INFO  Plugin  plugins/autofrontlight.koplugin/main.lua  has been disabled.
08/27/20-23:22:03 DEBUG BackgroundRunnerWidget: start running @  1598556123
08/27/20-23:22:03 INFO  FM loaded plugin backgroundrunner at plugins/backgroundrunner.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin batterystat at plugins/batterystat.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin calibre at plugins/calibre.koplugin
08/27/20-23:22:03 DEBUG CoverBrowser: setting FileManager display mode to: list_image_meta
08/27/20-23:22:03 DEBUG CoverBrowser: setting History display mode to: mosaic_image
08/27/20-23:22:03 DEBUG CoverBrowser: setting Collection display mode to: classic
08/27/20-23:22:03 INFO  FM loaded plugin coverbrowser at plugins/coverbrowser.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin docsettingtweak at plugins/docsettingtweak.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin evernote at plugins/evernote.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin goodreads at plugins/goodreads.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin movetoarchive at plugins/movetoarchive.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin newsdownloader at plugins/newsdownloader.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin perceptionexpander at plugins/perceptionexpander.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin profiles at plugins/profiles.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin readtimer at plugins/readtimer.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin send2ebook at plugins/send2ebook.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin statistics at plugins/statistics.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin systemstat at plugins/systemstat.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin terminal at plugins/terminal.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin texteditor at plugins/texteditor.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin timesync at plugins/timesync.koplugin
08/27/20-23:22:03 INFO  FM loaded plugin wallabag at plugins/wallabag.koplugin
08/27/20-23:22:03 DEBUG show widget: table: 0x2cb652f8
08/27/20-23:22:03 DEBUG setDirty nil from widget table: 0x2cb652f8 w/ NO region 
08/27/20-23:22:03 DEBUG painting widget: table: 0x2e15b918
08/27/20-23:22:03 DEBUG blitFrom 10 5 0 0 35 35
08/27/20-23:22:03 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-23:22:03 DEBUG blitFrom 555 5 0 0 35 35
08/27/20-23:22:03 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-23:22:03 DEBUG Found font: NotoSansArabicUI-Regular.ttf in ./fonts/noto/NotoSansArabicUI-Regular.ttf
08/27/20-23:22:03 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-23:22:03 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-23:22:03 DEBUG blitFrom 197 750 0 0 48 48
08/27/20-23:22:03 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-23:22:03 DEBUG blitFrom 355 750 0 0 48 48
08/27/20-23:22:03 DEBUG _refresh: Enqueued ui update for region 0 0 600 800 
08/27/20-23:22:03 DEBUG refresh: ui-mode 0 0 600 800
08/27/20-23:22:03 DEBUG mxc_update: 600x800 region @ (0, 0) with marker 1 (WFM: 2 & UPD: 0)
08/27/20-23:22:03 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
08/27/20-23:22:03 DEBUG Found font: NotoSansArabicUI-Bold.ttf in ./fonts/noto/NotoSansArabicUI-Bold.ttf
08/27/20-23:22:03 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:03 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
08/27/20-23:22:03 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:04 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:04 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:04 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:04 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:04 DEBUG setDirty via a func from widget table: 0x2cb652f8
08/27/20-23:22:04 DEBUG setDirty via a func from widget table: 0x2cb652f8
08/27/20-23:22:04 DEBUG painting widget: table: 0x2e15b918
08/27/20-23:22:04 DEBUG blitFrom 10 5 0 0 35 35
08/27/20-23:22:04 DEBUG blitFrom 555 5 0 0 35 35
08/27/20-23:22:04 DEBUG blitFrom 12 345 0 0 40 62
08/27/20-23:22:04 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
08/27/20-23:22:04 DEBUG blitFrom 12 412 0 0 40 62
08/27/20-23:22:04 DEBUG blitFrom 12 479 0 0 40 62
08/27/20-23:22:04 DEBUG blitFrom 12 546 0 0 40 62
08/27/20-23:22:04 DEBUG blitFrom 12 613 0 0 40 62
08/27/20-23:22:04 DEBUG blitFrom 12 680 0 0 40 62
08/27/20-23:22:04 DEBUG blitFrom 113 750 0 0 48 48
08/27/20-23:22:04 DEBUG blitFrom 197 750 0 0 48 48
08/27/20-23:22:04 DEBUG blitFrom 355 750 0 0 48 48
08/27/20-23:22:04 DEBUG blitFrom 439 750 0 0 48 48
08/27/20-23:22:04 DEBUG _repaint: it was dithered, infecting the refresh queue
08/27/20-23:22:04 DEBUG _refresh: Enqueued ui update for region 0 74 600 726 w/ HW dithering
08/27/20-23:22:04 DEBUG _refresh: Enqueued ui update for region 0 0 600 800 w/ HW dithering
08/27/20-23:22:04 DEBUG refresh: ui-mode 0 0 600 800
08/27/20-23:22:04 DEBUG refresh: wait for completion of (previous) marker 1
08/27/20-23:22:04 DEBUG mxc_update: 600x800 region @ (0, 0) with marker 2 (WFM: 2 & UPD: 0)
08/27/20-23:22:05 DEBUG ProcessEventLoop()
dispatch 21 0 0
08/27/20-23:22:05 DEBUG received event 21 0 0
08/27/20-23:22:05 DEBUG adaptive suspend event far into future, reset delay
08/27/20-23:22:05 DEBUG adaptive suspend new delay 2
08/27/20-23:22:05 DEBUG EVT_INIT
08/27/20-23:22:05 DEBUG SetPanelType(PANEL_DISABLED) done
08/27/20-23:22:05 DEBUG ProcessEventLoop() end, eventq =  0
Atached mqueue: id 8001
ivm proc 23 0 0
dispatch 23 0 0
08/27/20-23:22:05 DEBUG received event 23 0 0
08/27/20-23:22:05 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-23:22:05 DEBUG input event => type: 23, code: 0(nil), value: 0, time: 1598556125.48685
ivm proc 151 1062 0
dispatch 151 1062 0
08/27/20-23:22:05 DEBUG received event 151 1062 0
08/27/20-23:22:05 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-23:22:05 DEBUG input event => type: 151, code: 1062(nil), value: 0, time: 1598556125.52839
08/27/20-23:22:05 DEBUG setDirty on all widgets: found a dithered widget, infecting the refresh queue
08/27/20-23:22:05 DEBUG _refresh: Enqueued partial update for region 0 0 600 800 w/ HW dithering
08/27/20-23:22:05 DEBUG setDirty partial from widget all w/ NO region AND w/ HW dithering
08/27/20-23:22:05 DEBUG painting widget: table: 0x2e15b918
08/27/20-23:22:05 DEBUG blitFrom 10 5 0 0 35 35
08/27/20-23:22:05 DEBUG blitFrom 555 5 0 0 35 35
08/27/20-23:22:05 DEBUG blitFrom 12 345 0 0 40 62
08/27/20-23:22:05 DEBUG blitFrom 12 412 0 0 40 62
08/27/20-23:22:05 DEBUG blitFrom 12 479 0 0 40 62
08/27/20-23:22:05 DEBUG blitFrom 12 546 0 0 40 62
08/27/20-23:22:05 DEBUG blitFrom 12 613 0 0 40 62
08/27/20-23:22:05 DEBUG blitFrom 12 680 0 0 40 62
08/27/20-23:22:05 DEBUG blitFrom 113 750 0 0 48 48
08/27/20-23:22:05 DEBUG blitFrom 197 750 0 0 48 48
08/27/20-23:22:05 DEBUG blitFrom 355 750 0 0 48 48
08/27/20-23:22:05 DEBUG blitFrom 439 750 0 0 48 48
08/27/20-23:22:05 DEBUG _repaint: it was dithered, infecting the refresh queue
08/27/20-23:22:05 DEBUG refresh: partial 0 0 600 800
08/27/20-23:22:05 DEBUG refresh: wait for completion of (previous) marker 2
08/27/20-23:22:06 DEBUG mxc_update: 600x800 region @ (0, 0) with marker 3 (WFM: 2 & UPD: 0)
08/27/20-23:22:06 DEBUG BackgroundRunner: _execute() @  1598556126
08/27/20-23:22:06 DEBUG BackgroundRunnerWidget: start running @  1598556126
08/27/20-23:22:08 DEBUG iv_sleepmode(1)
08/27/20-23:22:08 DEBUG BackgroundRunner: _execute() @  1598556128
08/27/20-23:22:08 DEBUG BackgroundRunnerWidget: start running @  1598556128
ivm proc 25 25 0
dispatch 25 25 0
08/27/20-23:22:22 DEBUG received event 25 25 0
08/27/20-23:22:22 DEBUG adaptive suspend new delay 3
08/27/20-23:22:22 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-23:22:22 DEBUG input event => type: 25, code: 25(LPgFwd), value: 0, time: 1598556142.573785
08/27/20-23:22:22 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:22 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:22 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:22 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:22 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:22 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:22 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:22 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:22 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:22 DEBUG ImageWidget: _render'ing data
08/27/20-23:22:22 DEBUG setDirty via a func from widget table: 0x2cb652f8
08/27/20-23:22:22 DEBUG BackgroundRunner: _execute() @  1598556142
08/27/20-23:22:22 DEBUG BackgroundRunnerWidget: start running @  1598556142
08/27/20-23:22:22 DEBUG painting widget: table: 0x2e15b918
08/27/20-23:22:22 DEBUG blitFrom 10 5 0 0 35 35
08/27/20-23:22:22 DEBUG blitFrom 555 5 0 0 35 35
08/27/20-23:22:22 DEBUG blitFrom 12 77 0 0 40 62
08/27/20-23:22:22 DEBUG blitFrom 12 144 0 0 40 62
08/27/20-23:22:22 DEBUG blitFrom 12 211 0 0 39 62
08/27/20-23:22:22 DEBUG blitFrom 12 278 0 0 40 62
08/27/20-23:22:22 DEBUG blitFrom 12 345 0 0 40 62
08/27/20-23:22:22 DEBUG blitFrom 12 412 0 0 40 62
08/27/20-23:22:22 DEBUG blitFrom 12 479 0 0 40 62
08/27/20-23:22:22 DEBUG blitFrom 12 546 0 0 40 62
08/27/20-23:22:22 DEBUG blitFrom 12 613 0 0 40 62
08/27/20-23:22:22 DEBUG blitFrom 12 680 0 0 40 62
08/27/20-23:22:22 DEBUG blitFrom 113 750 0 0 48 48
08/27/20-23:22:22 DEBUG blitFrom 197 750 0 0 48 48
08/27/20-23:22:22 DEBUG blitFrom 355 750 0 0 48 48
08/27/20-23:22:22 DEBUG blitFrom 439 750 0 0 48 48
08/27/20-23:22:22 DEBUG _repaint: it was dithered, infecting the refresh queue
08/27/20-23:22:22 DEBUG _refresh: Enqueued ui update for region 0 74 600 726 w/ HW dithering
08/27/20-23:22:22 DEBUG refresh: ui-mode 0 74 600 726
08/27/20-23:22:22 DEBUG refresh: wait for completion of (previous) marker 3
08/27/20-23:22:22 DEBUG mxc_update: 600x726 region @ (0, 74) with marker 4 (WFM: 2 & UPD: 0)
08/27/20-23:22:22 DEBUG ProcessEventLoop()
08/27/20-23:22:22 DEBUG ProcessEventLoop() end, eventq =  0
ivm proc 26 25 0
dispatch 26 25 0
08/27/20-23:22:22 DEBUG received event 26 25 0
08/27/20-23:22:22 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-23:22:22 DEBUG input event => type: 26, code: 25(LPgFwd), value: 0, time: 1598556142.844284
08/27/20-23:22:24 DEBUG BackgroundRunner: _execute() @  1598556144
08/27/20-23:22:24 DEBUG BackgroundRunnerWidget: start running @  1598556144
08/27/20-23:22:26 DEBUG iv_sleepmode(1)
08/27/20-23:22:26 DEBUG BackgroundRunner: _execute() @  1598556146
08/27/20-23:22:26 DEBUG BackgroundRunnerWidget: start running @  1598556146
ivm proc 25 18 0
dispatch 25 18 0
08/27/20-23:22:28 DEBUG received event 25 18 0
08/27/20-23:22:28 DEBUG adaptive suspend new delay 4.5
08/27/20-23:22:28 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-23:22:28 DEBUG input event => type: 25, code: 18(Down), value: 0, time: 1598556148.933593
08/27/20-23:22:28 DEBUG Cursor position : 2 : 1
08/27/20-23:22:28 DEBUG _refresh: Enqueued fast update for region 0 0 600 800 w/ HW dithering
08/27/20-23:22:28 DEBUG setDirty fast from widget table: 0x2cb652f8 w/ NO region AND w/ HW dithering
08/27/20-23:22:28 DEBUG BackgroundRunner: _execute() @  1598556148
08/27/20-23:22:28 DEBUG BackgroundRunnerWidget: start running @  1598556148
08/27/20-23:22:28 DEBUG painting widget: table: 0x2e15b918
08/27/20-23:22:28 DEBUG blitFrom 10 5 0 0 35 35
08/27/20-23:22:28 DEBUG blitFrom 555 5 0 0 35 35
08/27/20-23:22:28 DEBUG blitFrom 12 77 0 0 40 62
08/27/20-23:22:28 DEBUG blitFrom 12 144 0 0 40 62
08/27/20-23:22:28 DEBUG blitFrom 12 211 0 0 39 62
08/27/20-23:22:28 DEBUG blitFrom 12 278 0 0 40 62
08/27/20-23:22:28 DEBUG blitFrom 12 345 0 0 40 62
08/27/20-23:22:28 DEBUG blitFrom 12 412 0 0 40 62
08/27/20-23:22:28 DEBUG blitFrom 12 479 0 0 40 62
08/27/20-23:22:28 DEBUG blitFrom 12 546 0 0 40 62
08/27/20-23:22:28 DEBUG blitFrom 12 613 0 0 40 62
08/27/20-23:22:28 DEBUG blitFrom 12 680 0 0 40 62
08/27/20-23:22:28 DEBUG blitFrom 113 750 0 0 48 48
08/27/20-23:22:28 DEBUG blitFrom 197 750 0 0 48 48
08/27/20-23:22:28 DEBUG blitFrom 355 750 0 0 48 48
08/27/20-23:22:28 DEBUG blitFrom 439 750 0 0 48 48
08/27/20-23:22:28 DEBUG _repaint: it was dithered, infecting the refresh queue
08/27/20-23:22:28 DEBUG refresh: fast 0 0 600 800
08/27/20-23:22:28 DEBUG mxc_update: 600x800 region @ (0, 0) with marker 5 (WFM: 4 & UPD: 0)
08/27/20-23:22:29 DEBUG ProcessEventLoop()
08/27/20-23:22:29 DEBUG ProcessEventLoop() end, eventq =  0
ivm proc 26 18 0
dispatch 26 18 0
08/27/20-23:22:29 DEBUG received event 26 18 0
08/27/20-23:22:29 DEBUG adaptive suspend new delay 6.75
08/27/20-23:22:29 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-23:22:29 DEBUG input event => type: 26, code: 18(Down), value: 0, time: 1598556149.75076
08/27/20-23:22:30 DEBUG BackgroundRunner: _execute() @  1598556150
08/27/20-23:22:30 DEBUG BackgroundRunnerWidget: start running @  1598556150
08/27/20-23:22:32 DEBUG BackgroundRunner: _execute() @  1598556152
08/27/20-23:22:32 DEBUG BackgroundRunnerWidget: start running @  1598556152
ivm proc 25 17 0
dispatch 25 17 0
08/27/20-23:22:33 DEBUG received event 25 17 0
08/27/20-23:22:33 DEBUG adaptive suspend new delay 10.125
08/27/20-23:22:33 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-23:22:33 DEBUG input event => type: 25, code: 17(Up), value: 0, time: 1598556153.791087
08/27/20-23:22:33 DEBUG Cursor position : 1 : 1
08/27/20-23:22:33 DEBUG _refresh: Enqueued fast update for region 0 0 600 800 w/ HW dithering
08/27/20-23:22:33 DEBUG setDirty fast from widget table: 0x2cb652f8 w/ NO region AND w/ HW dithering
08/27/20-23:22:33 DEBUG painting widget: table: 0x2e15b918
08/27/20-23:22:33 DEBUG blitFrom 10 5 0 0 35 35
08/27/20-23:22:33 DEBUG blitFrom 555 5 0 0 35 35
08/27/20-23:22:33 DEBUG blitFrom 12 77 0 0 40 62
08/27/20-23:22:33 DEBUG blitFrom 12 144 0 0 40 62
08/27/20-23:22:33 DEBUG blitFrom 12 211 0 0 39 62
08/27/20-23:22:33 DEBUG blitFrom 12 278 0 0 40 62
08/27/20-23:22:33 DEBUG blitFrom 12 345 0 0 40 62
08/27/20-23:22:33 DEBUG blitFrom 12 412 0 0 40 62
08/27/20-23:22:33 DEBUG blitFrom 12 479 0 0 40 62
08/27/20-23:22:33 DEBUG blitFrom 12 546 0 0 40 62
08/27/20-23:22:33 DEBUG blitFrom 12 613 0 0 40 62
08/27/20-23:22:33 DEBUG blitFrom 12 680 0 0 40 62
08/27/20-23:22:33 DEBUG blitFrom 113 750 0 0 48 48
08/27/20-23:22:33 DEBUG blitFrom 197 750 0 0 48 48
08/27/20-23:22:33 DEBUG blitFrom 355 750 0 0 48 48
08/27/20-23:22:33 DEBUG blitFrom 439 750 0 0 48 48
08/27/20-23:22:33 DEBUG _repaint: it was dithered, infecting the refresh queue
08/27/20-23:22:33 DEBUG refresh: fast 0 0 600 800
08/27/20-23:22:33 DEBUG mxc_update: 600x800 region @ (0, 0) with marker 6 (WFM: 4 & UPD: 0)
08/27/20-23:22:38 DEBUG ProcessEventLoop()
08/27/20-23:22:38 DEBUG ProcessEventLoop() end, eventq =  0
ivm proc 26 17 0
dispatch 26 17 0
08/27/20-23:22:38 DEBUG received event 26 17 0
08/27/20-23:22:38 DEBUG adaptive suspend new delay 15.1875
08/27/20-23:22:38 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-23:22:38 DEBUG input event => type: 26, code: 17(Up), value: 0, time: 1598556158.841614
08/27/20-23:22:38 DEBUG BackgroundRunner: _execute() @  1598556158
08/27/20-23:22:38 DEBUG BackgroundRunnerWidget: start running @  1598556158
ivm proc 25 19 0
dispatch 25 19 0
08/27/20-23:22:38 DEBUG received event 25 19 0
08/27/20-23:22:38 DEBUG ProcessEventLoop() end, eventq =  1
08/27/20-23:22:38 DEBUG input event => type: 25, code: 19(Left), value: 0, time: 1598556158.847185
08/27/20-23:22:38 DEBUG close widget: table: 0x2cb4f980
08/27/20-23:22:38 DEBUG CoverMenu:onCloseWidget: terminating jobs if needed
08/27/20-23:22:38 DEBUG terminating 0 subprocesses
08/27/20-23:22:38 DEBUG _refresh: Enqueued partial update for region 0 0 600 800 
08/27/20-23:22:38 DEBUG setDirty partial from widget nil w/ NO region 
08/27/20-23:22:38 DEBUG Lower widget table: 0x2cb652f8 was dithered, honoring the dithering hint
08/27/20-23:22:38 DEBUG close filemanager
08/27/20-23:22:38 DEBUG close widget: table: 0x2cb652f8
08/27/20-23:22:39 INFO  no dialog left to show
08/27/20-23:22:39 INFO  quitting uimanager
08/27/20-23:22:39 DEBUG ClearOnExit()

@ezdiy
Copy link
Member

ezdiy commented Aug 27, 2020

@anlar I was almost losing hope with this remote debug.

08/27/20-23:22:38 DEBUG input event => type: 26, code: 17(Up), value: 0, time: 1598556158.841614

The key seems to be sent correctly to koreader, I think the issue is that we simply don't do anything useful with it in UI.

@roshavagarga
Copy link
Contributor

@ezdiy I think the issue was that Up and Down keys weren't being processed or detected when he is in the folder menu, so he can't actually choose books because he'd need to go up and down to choose from the list. By what I read it seemed to work properly when inside the book-reading part of Koreader.

@rjd22
Copy link
Contributor

rjd22 commented Jun 25, 2022

This has not been worked on in a very long time. I'm closing this for that reason. If there is still trouble feel free to tell me.

@rjd22 rjd22 closed this as completed Jun 25, 2022
@floweronthemoon
Copy link

floweronthemoon commented May 7, 2024

Hello!
I have found this thread through Google search.
I have the same device (PocketBook 611).
I uploaded the last KoReader firmware.
Everything works as should, except the left key on D-pad.
It does not move cursor to the left, but rather executes "back action". I cannot navigate to the left in menu, only to the right.
Is there a way to fix it?

edit: typos

@Frenzie
Copy link
Member

Frenzie commented May 7, 2024

Unless you mean it's incorrectly identified as not having a back key (in which case hasFewKeys likely doesn't belong in the device definition) that's a workaround to be able to use the device at all.

@floweronthemoon
Copy link

Unless you mean it's incorrectly identified as not having a back key (in which case hasFewKeys likely doesn't belong in the device definition) that's a workaround to be able to use the device at all.

Hey! Thank you for the answer.
Ok, so I have opened the file device.lua at applications/koreader/frontend/device/pocketbook
and here is some of the output:
local PocketBook = Generic:extend{
model = "PocketBook",
isPocketBook = yes,
hasOTAUpdates = yes,
hasWifiToggle = yes,
isTouchDevice = yes,
hasKeys = yes,
hasFrontlight = yes,
hasSystemFonts = yes,
canSuspend = no,
canReboot = yes,
canPowerOff = yes,
needsScreenRefreshAfterResume = no,
home_dir = "/mnt/ext1",
canAssociateFileExtensions = yes,
...}

And then there is my device model 611:

-- PocketBook Basic (611)
local PocketBook611 = PocketBook:extend{
model = "PB611",
display_dpi = 167,
isTouchDevice = no,
hasFrontlight = no,
hasDPad = yes,
hasFewKeys = yes,
}

As you can see, there is no "hasFewKeys" option in Generic section.
Should I put the line "hasFewKeys = yes" in Generic section?

@Frenzie
Copy link
Member

Frenzie commented May 7, 2024

No, the other way around: remove it from PocketBook611. hasFewKeys is a workaround for some specific PocketBook devices that don't have enough keys. Repurposing left as back is a hack that makes those devices mostly usable, but the only way to go left in the menu is by going all the way around to the right. If this device has a dedicated back button that shouldn't be there.

@floweronthemoon
Copy link

No, the other way around: remove it from PocketBook611. hasFewKeys is a workaround for some specific PocketBook devices that don't have enough keys. Repurposing left as back is a hack that makes those devices mostly usable, but the only way to go left in the menu is by going all the way around to the right. If this device has a dedicated back button that shouldn't be there.

Ok, so I removed that line from PocketBook611 and now it moves to the left in menu as I want! But, sadly, I cannot go back. Is it what you are talking about? Seems like it is a situation either/or? Am I right? Can I somehow configure left arrow with long press to execute go back action?
The device has two page turn buttons (left. right) and 4-directional D-pad. It does not have a dedicated back button, but on stock firmware I could press & hold left turn button to go back. Can I somehow "bind" this action?

@Frenzie
Copy link
Member

Frenzie commented May 8, 2024

No, that's currently not possible.

@floweronthemoon
Copy link

No, that's currently not possible.

Oh, I see :( Anyway, thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
firmware help-wanted We'd like help with this issue PocketBook
Projects
None yet
Development

No branches or pull requests

7 participants