-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
error: Couldn't create GBM surface for rendering - Rasberry pi 5 with 7 inch DSI official display #413
Comments
Can you try without the If the issue persists, can you post the output of the |
Sure, so I reinstalled OS to make sure that other changes I did will not affect it. I went through the setup process once again, skipping |
@ardera FYI I tried to use Pi4 with 64-bit Raspbian Bullseye instead of Pi5 and it works perfectly fine. |
running it on a rpi5 with a 3.5 inch tft display
|
@anirudh-walia That's not the same error. How is your TFT display connected to the Pi? What model? |
My bad just saw the first few lines it's a 3.5-inch TFT display connected via GPIO pins the display is working fine with touch and everything.
|
Hi @ardera! I have similar issues like the ones above: modesetting.c: Could not set DRM client universal planes capable. drmSetClientCap: Operation not supported
flutter-pi.c: Could not create drmdev from device at "/dev/dri/card0". Continuing.
flutter-pi.c: Device "/dev/dri/card2" doesn't have a display connected. Skipping.
egl_gbm_render_surface.c: Couldn't create GBM surface for rendering. gbm_surface_create_with_modifiers: Invalid argument
egl_gbm_render_surface.c: Will retry without modifiers I didn't worry about it earlier, but I noticed I cannot change colors in the app, so for example if I run the app with such code: Scaffold(
backgroundColor: Colors.red,
body: ..
) the background color stays the same default (white or whitish). I also skipped these 2 steps on the Raspberry Pi configuration steps, as I couldn't find them in the raspi-config (I thought maybe they're configured like so by default? Idk, I'm a bit new to this) 3. You can skip this if you're on Raspberry Pi 4 with Raspbian Bullseye
Enable the V3D graphics driver:
Advanced Options -> GL Driver -> GL (Fake KMS)
4. Configure the GPU memory Performance Options -> GPU Memory and enter 64. I feel like the errors, especially the ones to the Possibly related to: #443 (comment) |
Hey, I'm kinda noob in embedded programming so sorry if that's a trivial issue.
I've been struggling for few hours, trying to run Flutter app with
flutter-pi
on Raspberry pi 5 [4gb and Debian GNU/Linux 12 (bookworm)] with official touch screen display.I skipped 4. step from "Configuring your Raspberry PI" as I wasn't able to find this setting in
raspi-config
. I also wasn't able to find GL driver settings so I enabled fake KMS manually by changingdtoverlay=vc4-kms-v3d
todtoverlay=vc4-fkms-v3d
inconfig.txt
file.Display itself works fine.
I built an app with this command:
And then tried to run it with command:
And I ended up with that error:
I tried several different config.txt changes without any success. Setting option
display_auto_detect
to0
disables whole screen.What I can add is that it used to work just fine with HDMI display.
Do you guys have any ideas whether that's a library issue or I'm doing something wrong?
The text was updated successfully, but these errors were encountered: