Skip to content

The '-o' doesn't work (Could not create GBM Surface. gbm_surface_create_with_modifiers: Function not implemented) #247

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

Closed
eximius313 opened this issue May 11, 2022 · 1 comment

Comments

@eximius313
Copy link

I'm trying to run my app in different orientation.

I've tried both:
flutter-pi -o landscape_right my_flutter_assets/
flutter-pi -o portrait_down my_flutter_assets/

but I end up in this error:

[locales] Warning: The system has no configured locale. The default "C" locale may or may not be supported by the app.
[flutter-pi] WARNING: display didn't provide valid physical dimensions. The device-pixel ratio will default to 1.0, which may not be the fitting device-pixel ratio for your display.
===================================
display mode:
  resolution: 1920 x 1080
  refresh rate: 60Hz
  physical size: 0mm x 0mm
  flutter device pixel ratio: 1.000000
===================================
[flutter-pi] Could not create GBM Surface. gbm_surface_create_with_modifiers: Function not implemented

I have set dtoverlay=vc4-kms-v3d-pi4 in /boot/config.txt as shown in this thread but it didn't help

I know that Could not create GBM Surface. gbm_surface_create_with_modifiers: Function not implemented could appear in Virtual Machine, but it's not my case - I'm running pure RPi

What can I do?

@eximius313
Copy link
Author

Ok
sudo usermod -a -G render pi followed by logout and login again solved the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant