View Single Post
Old 03-20-2025, 03:27 PM   #86
osse
Junior Member
osse began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Dec 2019
Device: boox note pro
Quote:
Originally Posted by juegos View Post
EDIT: removed luajit from Makefile - will get that 1 from KOReader - see if it works then.
It compiles without, after building I copied KOReader luajit and it runs however there are few extra steps:

1. Add Scribe fb to be recognized by the script.
Before else, https://github.com/hwhw/kindlevncvie...linux.lua#L175

Code:
                        elseif fb.finfo.smem_len == 9285120 then
                                -- We're a Scribe 2022
                                print('we are scribe')
                                fb.wait_for_full_updates = true
                                fb.einkWaitForCompleteFunc = kindle_pearl_mxc_wait_for_update_complete
2. Remove missing? CONSTANT. ¯\_(ツ)_/¯
Code:
./luajit: ./ffi/framebuffer_linux.lua:89: missing declaration for symbol 'MXCFB_WAIT_FOR_UPDATE_SUBMISSION'
so I modified to return null here:
https://github.com/hwhw/kindlevncvie..._linux.lua#L87

And got to connect, move window around for 2-3 seconds:
https://imgur.com/yhAUrw2

and then it crashed with another
missing CONSTANT:
Code:
./luajit: ./ffi/framebuffer_linux.lua:45: missing declaration for symbol 'MXCFB_WAIT_FOR_UPDATE_COMPLETE_PEARL'
stack traceback:
        [C]: in function '__index'
        ./ffi/framebuffer_linux.lua:45: in function 'einkWaitForCompleteFunc'
        ./ffi/framebuffer_linux.lua:372: in function 'refresh'
        vncviewer.lua:94: in function 'cb'
        ./ffi/eventloop.lua:188: in function 'loop'
        ./ffi/input_kindle.lua:42: in function 'waitForEvent'
        vncviewer.lua:315: in main chunk
        [C]: at 0x00013ea9
I wonder if it wouldn't be easier to re-use KOReader screen management lua's as they've been updated frequently.
osse is offline   Reply With Quote