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

drop master on /dev/dri/card0 by default #708

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

benhoff
Copy link

@benhoff benhoff commented Nov 7, 2024

This is a really odd edge case, but if you initialize a mpp buffer first and then later try to get the drm master to draw a user interface using another part of your program, you'll be unable to modeset.

This is because drm automatically sets the first file to open as the drm master.

Most people won't run into this issue (or I assume they won't) because they are already likely using a desktop environment (which will already claim the drm master), they are completely running as headless process, and/or they aren't initializing the mpp buffer before their UI.

I was lucky enough to have none of those as my setup, so ran head first into this problem.

The other way around this is to open a temporary file to /dev/dri/card0 before calling the mpp buffer code in your user code. I'm specifically using ffmpeg rockchip and running into this.

See also here: nyanmisaka#1

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

Successfully merging this pull request may close these issues.

1 participant