Skip to content

Fix running with simpledrm#92

Merged
Aetf merged 1 commit intoAetf:developfrom
kdj0c:fix_drm_available
Dec 20, 2024
Merged

Fix running with simpledrm#92
Aetf merged 1 commit intoAetf:developfrom
kdj0c:fix_drm_available

Conversation

@kdj0c
Copy link
Collaborator

@kdj0c kdj0c commented Dec 17, 2024

The libdrm drmAvailable() function is broken, and only checks if GPU0 is present. Systems that uses simpledrm at boot, have their main GPU registered as GPU1, which means drm renderer is disabled, and a black screen is displayed.
The drmAvailable() function is now deprecated, and shouldn't be used anymore.
So remove this check, and simplify the code.

libdrm issue:
https://gitlab.freedesktop.org/mesa/drm/-/issues/113
libdrm mergerequest to deprecate drmAvailable():
https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/402

The libdrm drmAvailable() function is broken, and only checks if
GPU0 is present. Systems that uses simpledrm at boot, have their
main GPU registered as GPU1, which means drm renderer is disabled,
and a black screen is displayed.
The drmAvailable() function is now deprecated, and shouldn't be used
anymore.
So remove this check, and simplify the code.

Signed-off-by: Jocelyn Falempe <[email protected]>
@Aetf Aetf merged commit 0237271 into Aetf:develop Dec 20, 2024
@kdj0c kdj0c deleted the fix_drm_available branch October 10, 2025 09:36
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.

2 participants