VNC Server for Raspberry Pi using dispmanx
libvncserver-dev
raspberrypi-firmware
(some distros will call thisrbp-userland-dev-osmc
)
Compile with ./makeit or use make
- Arch ARM: in the AUR.
If you want to use X, modprobe evdev first.
Use -h for this small help
Use -help for VNC server options help
Use -r for relative mode
Use -a for absolute mode
Use -d X for dispmanx ID (default is 0)
according some docs:
0 - DSI/DPI LCD (I use 0 for headless RPI and also 3 works)
2 - HDMI 0
3 - SDTV
7 - HDMI 1
Without arguments it starts with display ID = 0 with absolute mouse mode
Relative mode makes hello_triangle2 to work. And also mouse moving in minecraft is better. Still the mouse is tricky.
dispmanx_vnc uses libvncserver-dev, so it takes all the arguments vncserver does. See "./dispmanx_vnc -help" for possible options. You may already have a vncserver running; In which case use dispmanx_vnc with another port than the default 5900. For example: sudo ./dispmanx_vnc rfbport 5901
If you see the message, "open /dev/uinput returned -1." it is because you are trying to run dispmanx without being root.