vnc server that works on x86-64

924 views
Skip to first unread message

Xuefer H

unread,
Jan 24, 2017, 11:51:27 PM1/24/17
to Android-x86
android vnc server in externals/libvncserver is too simple using framebuffer which is not compatible with drm, drm use other buffer which can't be access the same way as frame buffer. using framebuffer grabs only console screen not drm screen
https://github.com/viren-nadkarni/droid-vnc-server is however implemented with surfaceflinger and drm grabber. although the drm one doesn't work for me, the surfaceflinger one works (slowly), except some layer is drew to top left corner. while everything looks good in the real output (to monitor), the navbar shows at top (left) to vnc client

i don't think it's droidvncserver problem, the flinger grabber is really simple, it's just a screenshot client. is it possible that the drm_gralloc is doing it wrong? can anyone fix it?

modified droid vnc source is published at https://github.com/xuefer/android_externals_droidvncserver/
i change it to build with nougat, linking with cm's libvncserver, static link everything so it can be use simply without any addition *.so files

droidvncserver

Xuefer H

unread,
Jan 24, 2017, 11:53:18 PM1/24/17
to Android-x86

Xuefer H

unread,
Jan 25, 2017, 12:37:51 AM1/25/17
to Android-x86
fixed with useIdentityTransform argument to false, thanks to android's builtin screencap.c which works correctly
Reply all
Reply to author
Forward
0 new messages