ponty / framebuffer-vncserver

VNC server for Linux framebuffer devices
GNU General Public License v2.0
169 stars 69 forks source link

Is it possible to use it with DRM backend in weston? #22

Open ssdasilva opened 1 year ago

ssdasilva commented 1 year ago

I am using the framebuffer-vncserver application with weston compositor using the DRM backend. This application needs to access the framebuffer being used, but when I check the device /dev/fb0 I see that nothing is being written there (which indicates that the /dev/fb0 device is not being used). I have searched for ways of accessing the framebuffer used in the DRI, but I had no success. Thus, is it possible to directly access the framebuffer in the Weston DRM backend? I know there is the fbdev-backend in weston. However, I have trouble using it with openGL. Furthermore the fbdev-backend will be deprecated in newer versions of weston (Thus, using the DRM backend is the preferred way). Could anyone help me? Is it possible to add instructions to do it in the README, or add some documentation for the DRM backend?

dedounet commented 1 year ago

+1 !

ponty commented 1 year ago

If you have no working /dev/fb0 then you can't use this program.

dedounet commented 1 year ago

And what about abinding to /dev/dri/card0 ?

ponty commented 1 year ago

You can use any file if it is a Linux framebuffer, but I don't think that /dev/dri/card0 is a Linux framebuffer.

Check the command-line help