fbcp-ili9341
fbcp-ili9341 copied to clipboard
Failed to open Videocore kernel mailbox (Success running binary in 64bit, but incorrect gpu)
So, what I have done is: I compiled the driver on a rpi4 I transferred the dependencies needed to run the binary , binary itself and the fbcp folder to a 64bit system (Radxa zero ubuntu 20.04) Good news: The binary works, no dependency error Bad news: If you dont have a videocore gpu on your board, fbcp wont run and will give you an error saying "Failed to open VideoCore Kernel Mailbox!" Is there a way to fix this? maybe adding support for arm mali-g31? or using the cpu instead?
That is true, unfortunately the driver does depend on Pi's DispmanX API to snapshot the GPU display contents, hence working only on VideoCores I believe. Search for string "dispmanx" in the repository to find call sites that are specific to that API.
I don't know of a replacement API for other display drivers, though if one would exist, then that certainly could be substituted.
Weird, xtightvnc does work on this board but doesn't tightvnc use dispmanx?
I don't think tightvnc has any Raspberry Pi/Videocore-specific code in it - it uses general X11 windowing system on Linux afaik.
So it's possible to use X11 instead of dispmanx?
It might be, if you are able to develop a X11 screen snapshotting driver to fbcp-ili9341. Currently the driver does not have any integration with X11. Looks like
- https://stackoverflow.com/questions/8249669/how-do-take-a-screenshot-correctly-with-xlib
- https://linux.die.net/man/3/xgetimage could be relevant.
My understanding is that when running X11 on Linux, some applications can bypass X11 when running in fullscreen mode, to do "direct" GPU access, so it is possible that not all applications can be snapshotted via X11 if some are bypassing it.