-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wayland Backend Not Working on Raspberry Pi #62
Comments
Have you solved your issue? |
No, I am still seeing the issue with the latest LVGL code under the last Raspberry Pi OS. |
you can try this command |
That didn't help. The OS was already setting WAYLAND_DISPLAY=wayland-0. |
I had this problem before, but I solved it by typing this command. |
@jefftranter Hello, this is because the wayland driver uses version 4 of the xdg-shell protocol. More specifically it sets up a listener for the
Can you confirm ? |
I can confirm that it works with this patch! |
I am trying to get LVGL to work on a Raspberry Pi 3 using Wayland.
It is running the most recent version of Raspberry Pi OS which uses Wayland by default.
I am using the latest code from https://github.com/lvgl/lv_port_linux
In lv_conf.h I have set:
#define LV_USE_LINUX_FBDEV 0
#define LV_USE_LINUX_DRM 0
#define LV_USE_SDL 0
#define LV_USE_WAYLAND 1
The demo builds without without errors, but when run it get no display and I see these errors:
[Warn] (0.000, +0) lv_init: Memory integrity checks are enabled via LV_USE_ASSERT_MEM_INTEGRITY which makes LVGL much slower lv_init.c:262
[Warn] (0.000, +0) lv_init: Object sanity checks are enabled via LV_USE_ASSERT_OBJ which makes LVGL much slower lv_init.c:266
[Warn] (0.000, +0) lv_init: Style sanity checks are enabled that uses more RAM lv_init.c:270
wl_registry#2: error 0: invalid version for global xdg_wm_base (18): have 2, wanted 4
[Error] (0.000, +0) wayland_init: Asserted at expression: (application.shm_format != SHM_FORMAT_UNKNOWN) (WL_SHM_FORMAT not available) lv_wayland.c:2399
pi@raspberrypi
I tried changing LV_COLOR_DEPTH from 32 to 16 and to 24 but I get the same results.
On the same machine I am able to run the demo using SDL2.
I've attached the output of wayland-info.
wayland-info.txt
The text was updated successfully, but these errors were encountered: