This repository has been archived by the owner on Nov 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 343
Remove outputs when switching away from VT #2370
Labels
Comments
This would require the compositor to keep track of which output each view is on and restore that. Wayfire currently doesn't do it :/ |
Ah, yes, that is correct. I just assumed everybody does it. Sway migrates workspaces from one output to the other, and keeps a list of "output priorities": https://github.com/swaywm/sway/blob/6991ac8c70869ca19a87cfc173e280cab7ff20d0/include/sway/tree/workspace.h#L42 |
just for the record: phoc doesn't (yet) keep a list either but that's on the todo list. |
One naive question: Why can't the DRM backend just reinitialize the outputs without unplugging and replugging them? |
The problem I'm trying to fix is that things are weird when switching VTs:
|
emersion
added a commit
to emersion/wlroots
that referenced
this issue
Dec 26, 2020
When the session is inactive, we can't change the KMS state. Ignore hotplug events so that compositors don't try to perform a modeset when a connector is plugged in. We already re-scan connectors when the session becomes active. To test, run a wlroots compositor on VT 1, switch to VT 2, unplug a connector, re-plug it, switch back to VT 1. Without this patch the screen is black on VT 1. References: swaywm#2370
emersion
added a commit
that referenced
this issue
Jan 3, 2021
When the session is inactive, we can't change the KMS state. Ignore hotplug events so that compositors don't try to perform a modeset when a connector is plugged in. We already re-scan connectors when the session becomes active. To test, run a wlroots compositor on VT 1, switch to VT 2, unplug a connector, re-plug it, switch back to VT 1. Without this patch the screen is black on VT 1. References: #2370
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When switching away from VT, remove the
wlr_output
s (same as unplug). When switching back, re-add them (same as hotplug).This would avoid connector/CRTC state inconsistencies (e.g. how to modeset when DRM FD is paused). This would be consistent with input devices.
wlroots has migrated to gitlab.freedesktop.org. This issue has been moved to:
https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/2370
The text was updated successfully, but these errors were encountered: