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
Cannot create DRM context without X server running. #2946
Labels
Comments
Further investigation I found this in the DRM logs when I switched it to debug logging
|
The DRM implementation was written/ported by @mickelson, @oomek and @substring. Maybe they can look into this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisite Checklist
Describe your issue here
When I attempt to run any of the example programs I get the message:
I've tried with different modes using SFML_DRM_MODE and selecting different devices with SFML_DRM_DEVICE but the outcome is the same no matter the combination.
If I start the same program with
startx
then it doesn't give an error but there is no output on the display.I've confirmed the GPU can output the selected mode with
glmark2
and with a vanilla build of SFML. It's only the DRM build that won't start.Your Environment
Linux 6.1.25 Debian Bookworm
2.6.1
GCC version 12.2.0 - aarch64-linux-gnu
SFML_USE_DRM SFML_BUILD_EXAMPLES
Steps to reproduce
./examples/opengl/opengl
without an X server runningExpected behavior
Connected display should show a spinning cube on a jungle background
Actual behavior
Program wont start with the error message "Failed to set mode: Invalid argument"
The text was updated successfully, but these errors were encountered: