Quote:
Originally Posted by hawhill
OK, that output looks good. Sort of. It shows a bug in the code - so I will have to get back to the editor and fix it. Sorry for the small steps, but I simply don't have a device to actually test. Will get back as soon as I had a chance to fix it.
|
Just wanted to chime in here with some info: first off, I get the same bug:
Code:
[root@kindle kvncviewer]# ./luajit vncviewer.lua -password ***** 192.168.3.1:5900
could not open input device /dev/input/event2 (possibly harmless)
01/03/2015 11:41:15 VNC server supports protocol version 4.1 (viewer 3.8)
01/03/2015 11:41:15 We have 1 security types to read
01/03/2015 11:41:15 0) Received security type 2
01/03/2015 11:41:15 Selecting security type 2 (0/1 in the list)
01/03/2015 11:41:15 Selected Security Scheme 2
01/03/2015 11:41:15 VNC authentication succeeded
01/03/2015 11:41:15 Desktop name "computer-2"
01/03/2015 11:41:15 Connected to VNC server, using protocol version 3.8
01/03/2015 11:41:15 VNC server default format:
01/03/2015 11:41:15 32 bits per pixel.
01/03/2015 11:41:15 Least significant byte first in each pixel.
01/03/2015 11:41:15 TRUE colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
./luajit: ./ffi/framebuffer_linux.lua:27: attempt to call global 'ioctl' (a nil value)
stack traceback:
./ffi/framebuffer_linux.lua:27: in function 'einkUpdateFunc'
./ffi/framebuffer_linux.lua:265: in function 'refresh'
vncviewer.lua:99: 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 0x0000c368
[root@kindle kvncviewer]#
Also, I had to remount the root file system without the noexec option, which was preventing me from running luajit in the first place.
And, as you can see above, I had to specify port 5900. I am running RealVNC server on a Mac.
Also, hawhill, first off thanks for your efforts. Second, since I have a device to test on, I might try to take a look at your github repo and see if I can't have a crack at it, though I suspect it's going to be a good bit beyond my abilities.