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

[rcore] fix: In certain cases the DRM connector status is reported UNKNOWN #4305

Conversation

emdzej
Copy link
Contributor

@emdzej emdzej commented Sep 3, 2024

Provides solution for an issue described in #4293

where on certain platforms the DRM connector cannot be found:

INFO: DISPLAY: No graphic card set, trying platform-gpu-card
INFO: DISPLAY: Failed to open platform-gpu-card, trying card1
INFO: DISPLAY: Failed to open graphic card1, trying card0
TRACE: DISPLAY: Connectors found: 1
TRACE: DISPLAY: Connector index 0
TRACE: DISPLAY: Connector modes detected: 4
TRACE: DISPLAY: DRM mode NOT connected (deleting)
WARNING: DISPLAY: No suitable DRM connector found
WARNING: TEXTURE: Failed to load texture
WARNING: TEXTURE: Failed to load default texture

because the connector status is unknown as can bee seen on modetest -c output:

trying to open device 'vc4'...done
Connectors:
id	encoder	status		name		size (mm)	modes	encoders
45	44	unknown	Composite-1    	0x0		4	44
  modes:
	index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot
  #0 720x480i 29.97 720 736 800 858 480 486 492 525 13500 flags: nhsync, nvsync, interlace; type: preferred, driver
  #1 720x576i 25.00 720 732 796 864 576 581 587 625 13500 flags: nhsync, nvsync, interlace; type: driver
  #2 720x288 50.08 720 740 804 864 288 290 293 312 13500 flags: ; type: driver
  #3 720x240 60.05 720 734 798 858 240 243 246 262 13500 flags: ; type: driver
  props:

and is not considered for operation.

@emdzej emdzej changed the title [rcore] fix: In certain cases the connector status is reported UNKNOWN [rcore] fix: In certain cases the DRM connector status is reported UNKNOWN Sep 3, 2024
@raysan5 raysan5 merged commit 42022c3 into raysan5:master Sep 3, 2024
@raysan5
Copy link
Owner

raysan5 commented Sep 3, 2024

@emdzej Nice! Thanks for the review!

@emdzej
Copy link
Contributor Author

emdzej commented Sep 3, 2024

My pleasure

@casperbear
Copy link

casperbear commented Sep 5, 2024

a typo in the comment (in code). Should be UNKNOWN, not UKNOWN. Also connection, not conneciton

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.

3 participants