I have dispmanx_vnc running on two OSMC machines. I can connect to both machines with vncviewer but on one of the machines no keyboard input is taken by dispmanx_vnc.
The only difference I found is that when I start dispmanx_vnc after a restart on both machines the info in dmesg is different:
Working OSMC dmesg says:
input: VNCServer SimKey as /devices/virtual/input/input4
Not working OSMC dmesg says:
input: VNCServer SimKey as /devices/virtual/input/input0
Unlikely to be that thatâs your problem. input device names are dynamically allocated (input0, input1 and so on) so it doesnât matter what they are numbered or what order they are in.
You can get a list of input devices by running âevtestâ, you may need to install the package evtest first.
Ok, agree this might not be related and just caused by the fact that one PI has no input devices connected while the other one has. Just that it was the only difference I saw.
Any other idea what could be wrong? Maybe I need to connect a input device for it to work? Also interesting that CEC is not considered a input device.
FYI the output of evtest:
Not working one:
osmc@osmc.ddorf:~$ sudo evtest
No device specified, trying to scan all of /dev/input/event*
USAGE:
Grab mode:
evtest /dev/input/eventX
is one of: EV_KEY, EV_SW, EV_LED, EV_SND
can either be a numerical value, or the textual name of the
key/switch/LED/sound being queried (e.g. SW_DOCK).
Working one:
osmc@osmc.hongkong:~$ sudo evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Wireless Air mouse Keyboard
/dev/input/event1: Wireless Air mouse Keyboard
/dev/input/event2: lircd
Select the device event number [0-2]:
I have only tried dispmax_vnc once a long time ago on Raspbmc - and for me, keyboard and mouse input also did not work, I could only see the screen.
Later on I read somewhere that input only works if an actual keyboard and/or mouse are physically connected to the Pi as well, but I never did try it to see if that was the case. So try plugging in a keyboard and mouse, reboot and then see if you can control it via vnc.
CEC is handled directly inside Kodi using LibCEC, so doesnât go through the normal Linux kernel input mechanisms.