Giter Club home page Giter Club logo

Comments (4)

ardera avatar ardera commented on June 30, 2024 1

The v3d driver is the open source OpenGL driver for the VideoCore 4 made by Eric Anholt, that's the GL driver you're activating when choosing full-kms or fake-kms. If it's set to legacy, the broadcom one is used.

Ah, so you're using a Pi 4! I actually don't have a Pi 4, I'm testing on a Pi 3A+. In that case, the fix is simple. /dev/dri/card0 is not the device flutter-pi should use on the Pi 4. it's /dev/dri/card1. For now, you could simply look for the line inside flutter-pi.c where it says

. . . = open("/dev/dri/card0", O_RDWR);

and change the path to /dev/dri/card1.

I really thought the drm device would be the same on the 4, but I was wrong as it seems. I'm currently working on an update where flutter-pi will automatically choose it's devices, seems like I need to add capability for automatically selecting the correct DRM device too.

from flutter-pi.

ardera avatar ardera commented on June 30, 2024

did you activate the v3d OpenGL driver in raspi-config?
i.e.
sudo raspi-config --> Advanced --> GL Driver --> Fake-KMS

If you have activated the v3d driver, or it already was activated, and the error still ocurrs, could you please tell me what files there are inside /dev/dri/? flutter-pi by default uses /dev/dri/card0 as its DRM device.

There's actually not much that is leading up to drmModeGetResources, flutter-pi just opens /dev/dri/card0 and then calls drmModeGetResources on it.

from flutter-pi.

dluksza avatar dluksza commented on June 30, 2024

Yes, I did enabled Fake-KMS as a GL driver.

I do see /dev/dri/card0 (card1 and renderD128). What is v3d driver, I've just installed gldriver-test and xinv3d packages but they didn't fixed this issue. Any other hints?

from flutter-pi.

dluksza avatar dluksza commented on June 30, 2024

Yes, I do have Pi 4. Changing card to card1 did helped!! Thanks!

Now I'm having different problem with flutter binary format :| Will open another issue for it.

from flutter-pi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.