Quote:
Originally Posted by osse
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.
|
Very interesting thanks! Another option may be do install alpine linux (from the other thread) and vnc through there - that may be more stable? Although mine (Kindle Scribe) froze after a few seconds, but I did see my Macbook screen on the Kindle. Perhaps due to low memory but not sure.