We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5535

Summary: [patch] KMSDRM: Improve reliability of backend
Product: SDL Reporter: wahil1976
Component: videoAssignee: Manuel Alfayate Corchete <redwindwanderer>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: wahil1976
Version: HG 2.1Keywords: target-2.0.16
Hardware: All   
OS: Linux   
Attachments: Patch file for improving KMSDRM reliability

Description wahil1976 2021-02-08 18:15:25 UTC
Created attachment 4776 [details]
Patch file for improving KMSDRM reliability

This patch improves the reliability of the KMSDRM video backend by changing two things:
1. The video backend will look for more than one video card checking whether connectors are available, matching Weston behaviour and allowing it to work reliably in multi-card configurations.
2. The video backend will try setting itself as DRM master of the device file, aborting if it can't set itself as DRM master. Intended to fix bugs if the X11 server/Wayland compositor is active as DRM master.
Comment 1 Manuel Alfayate Corchete 2021-02-08 22:57:27 UTC
@wahil1976: Looks good to me!

@Sam: Permission to merge, sir?
Comment 2 Sam Lantinga 2021-02-08 23:13:57 UTC
Yup!
Comment 3 Manuel Alfayate Corchete 2021-02-08 23:59:11 UTC
Ok, closing by merging in:
https://hg.libsdl.org/SDL/rev/c5222be9b9c9

Thanks!
Comment 4 Manuel Alfayate Corchete 2021-02-08 23:59:51 UTC
Awww.. I always forget to close.
Closing by merging in:

https://hg.libsdl.org/SDL/rev/c5222be9b9c9