lvgl / lv_drivers

TFT and touch pad drivers for LVGL embedded GUI library
https://docs.lvgl.io/master/porting/index.html
MIT License
306 stars 314 forks source link

A problem in lv_drivers/display/fbdev.c #215

Closed PunkMax closed 2 years ago

PunkMax commented 2 years ago

If I set define USE_FBDEV 1 and define USE_BSD_FBDEV 0 in lv_drv_conf.h,

the function if (ioctl(fbfd, FBIOBLANK, FB_BLANK_UNBLANK) != 0) in function fbdev_init in fbdev.c will give a error as ioctl(FBIOBLANK): Invalid argument

because FBIOBLANK will not be defined.

if USE_BSD_FBDEV

define FBIOBLANK FBIO_BLANK

endif / USE_BSD_FBDEV /

delete this function if (ioctl(fbfd, FBIOBLANK, FB_BLANK_UNBLANK) != 0) and the demo given in lv_port_linux_frame_buffer will run ok.