Skip to content

Conversation

@xantoz
Copy link
Member

@xantoz xantoz commented Apr 26, 2018

Cherry-pick from a PR (LongChair#1) to the PR about drm atomic improvments (#5714), as this commit improves multi-screen behavior even standalone.

I agree that my changes can be relicensed to LGPL 2.1 or later.

Inspired by kmscube, first try to pick the Encoder and CRTC already
associated with the selected Connector, if any. Otherwise try to find
the first matching encoder & CRTC like before.

This should improve behavior somewhat when run on a multi screen setup
with regards to deinit and VT switching, and should allow you to do
stuff like see the fbcon terminal on one screen with video playing on
the other, as well as not having one of the screens go blank after
deinit if it wasn't previously (still not fool-proof. Sometimes you
still end up with a blank screen where you previously had a cloned
display of your fbcon).

This is also preparatory for switching over to atomic modesetting, as
doing modesetting via drmModeAtomicCommit will fail when you're trying
to use a CRTC that is currently tied up to another Encoder &
Connector, while drmModeSetCrtc is able to "steal" the CRTC in this
case.
@xantoz
Copy link
Member Author

xantoz commented May 2, 2018

Closing because this commit was merged with #5714

@xantoz xantoz closed this May 2, 2018
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.

1 participant