Skip to content
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

Unable to get DRM Resources #7

Open
meltdream opened this issue Aug 9, 2021 · 3 comments
Open

Unable to get DRM Resources #7

meltdream opened this issue Aug 9, 2021 · 3 comments

Comments

@meltdream
Copy link

meltdream commented Aug 9, 2021

This error happens most of the times but seems to change between reboots.
Sometimes, seemingly randomly, after reboot it doesen't give the error and the app starts, but it still doesen't display any window even then.
This behavior is consistent until the raspi is rebooted again, then we're back to "Unable to get DRM Resources", again consistently untile reboot.

I followed the instructions from the readme thoroughly (Fake KMS Drivers enabled, edited both ofAppRunner and config.linuxarmv6l.default.mk ) on a fresh openFrameworks install,
My main.cpp file looks pretty much identical to the one in the various examples.
I'm running this on a Rpi CM4 (8 gb eMMC, WI-FI, 1 GB RAM) with Raspbian Buster and an HDMI display connected.

This might have to do with the validity of card0 and card1 changing between reboots, but I could be off track since I'm not very familiar with this. It seems odd since not everyone seems to be experiencing this issue

@burstMembrane
Copy link

Hi @meltdream I had the same problem and it turned out to be a permission problem for me. Excuse my lack of technical knowhow, but the driver required for OpenGL rendering for this addon wasn't being used, and instead it was using the llvm-pipe software renderer.

I found this link really helpful in sorting this out. Hope it helps!

@Maigre
Copy link

Maigre commented Mar 4, 2022

Hi,
on Bullseye with RPi 4, i had to change back to /dev/dri/card0 instead of /dev/dri/card1
line 75 of ofxRPI4Window.cpp to fix the Unable to get DRM Resources error

I also had to cast two variables:
line 144:
display = eglGetDisplay( (EGLNativeDisplayType) gbmDevice);

line 214:
surface = eglCreateWindowSurface(display, config, (int)gbmSurface, NULL);

@Daandelange
Copy link

Hey, the card0-1 change should be automatic since 9aa5d72, did you use that ?

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

4 participants