Linux Framebuffer Driver
The Linux framebuffer (fbdev) is a linux subsystem used to display graphics. It is a hardware-independent API that gives user space software access to the framebuffer (the part of a computer's video memory containing a current video frame) using only the Linux kernel's own basic facilities and its device file system interface, avoiding the need for libraries that implement video drivers in user space.
Your system has a framebuffer device configured (usually under
Configuring the driver
Enable the framebuffer driver support in lv_conf.h, by cmake compiler define or by KConfig. Additionally you may configure the rendering mode.
#define LV_USE_LINUX_FBDEV 1
#define LV_LINUX_FBDEV_RENDER_MODE LV_DISPLAY_RENDER_MODE_PARTIAL
To set up a framebuffer-based display, first create a display with
lv_linux_fbdev_create. Afterwards set the framebuffer device
node on the display (usually this is
lv_display_t *disp = lv_linux_fbdev_create();
If your screen stays black or only draws partially, you can try enabling direct rendering via
you can activate a force refresh mode with
lv_linux_fbdev_set_force_refresh(true). This usually has a performance impact though and shouldn't
be enabled unless really needed.