fix(linux/kms)!: Use connector type index from KMS instead of self calculation - #5489
Conversation
7ade044 to
489d6ea
Compare
|
@ReenigneArcher I don't think this'll impact #5481 much but might reduce the need for it as KMS monitors should always line-up properly with this change. |
Bundle ReportBundle size has no change ✅ |
Thanks for letting me know. I don't really know if that will fix the issue mentioned. I just asked GPT 5.6 to address the stale issues instead of continuing to ignore them. Not sure the affected users will respond or test it though. Could you try a force push for this PR to get the sonar build to work? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5489 +/- ##
=========================================
Coverage ? 28.10%
=========================================
Files ? 109
Lines ? 24711
Branches ? 10910
=========================================
Hits ? 6944
Misses ? 14895
Partials ? 2872
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Harness.
|
Screenshot ComparisonPR #5489 screenshots vs Matrix:
|
489d6ea to
fa3654e
Compare
|
I'll do a few more tests to make sure this does what it should (at least on my setup). I'll mark this ready for review again once I'm done. |
|
I'll have to flag this as a breaking change as it might reorder monitor indices but those are not guaranteed to be stable for KMS anyway and no longer recommended for the Also should be extensively tested in multi-monitor setups before merging. |
Was this something you were able to do, or no? |
For my system, yes. But it might be a good idea to have this tested on a few different configurations (ideally but not necessarily also on currently misbehaving ones) to ensure proper function on a broader basis. UPDATE: I've managed to test this successfully on a secondary system with a different monitor setup. |
…culation Instead of calculating the index for each connector_type manually use the connector_type_id index provided by KMS to ensure correct values.
fa3654e to
88f9099
Compare
|
|
#5444 (comment) confirms fixing the wayland correlation for KMS monitors with this change. This means that this PR might already handle #5047 without needing the fallback from #5481 (as the cached monitor list is now correctly propagated). |









































































Description
Instead of calculating the index for each connector_type manually use the connector_type_id index provided by KMS to ensure correct values.
For details see https://www.kernel.org/doc/html/latest/gpu/drm-kms.html#c.drm_connector and related docs for
connector_typeandconnector_type_idScreenshot
Issues Fixed or Closed
This might fix some issues related to #5444 but needs to be tested first before adding to this list.
Roadmap Issues
Type of Change
Checklist
AI Usage
See our AI usage policy.