lvgl / lv_port_linux

LVGL configured to work with a standard Linux framebuffer
MIT License
256 stars 159 forks source link

how do i run this repo #21

Closed qNnOtTk closed 1 year ago

qNnOtTk commented 2 years ago

i wanna run littlevgl on /dev/fb1 but i have no idea where to start also, the tutorial isnt helpful at all, its 4 years old

kisvegabor commented 2 years ago

Just change the frame buffer device here and build it with make.

qNnOtTk commented 2 years ago

i compiled it, running ./demo gives me this error

rock@radxa-zero:~/lv_port_linux_frame_buffer$ sudo ./demo
ioctl(FBIOBLANK): Invalid argument

I also tried running DISPLAY=:0 ./demo but still not working

update: i got it working without any error messages, removing line 97-101 seems to have fixed the problem, but all i can see on fb1 is some off white color, and black lines next to it

kisvegabor commented 2 years ago

I also wanted to suggested to remove the FBIOBLANK line. :slightly_smiling_face:

Please send a screen shot.

embetrix commented 2 years ago

@qNnOtTk you can't just run it on your host ! it's probably running X11 or Wyland, try it on a target with framebuffer

symfund commented 2 years ago

To run this repo, your linux kernel must support frame buffer driver or DRM/KMS driver with legacy fbdev support. Also this repo can run in Wayland environment with or without X11!

symfund commented 1 year ago

lvgl-wayland-calendar

qNnOtTk commented 1 year ago

Hi sorry i forgot about this issue i made, anyway, i figured out how to run it on X11, i just hid the cursor and ran it on fullscreen and its good enough for me, thanks for the help