-
Notifications
You must be signed in to change notification settings - Fork 104
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
(#3729) only DRM_MODE_CONNECTED outputs can be added to the output list #3747
Conversation
I will add tests once we are happy with this implementation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tracking that down!
Do we need a similar check in mga::RealKMSOutputContainer::update_from_hardware_state()
?
@@ -14,10 +14,12 @@ | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
*/ | |||
|
|||
#define MIR_LOG_COMPONENT "gbm-kms" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be no need for this: MIR_LOG_COMPONENT_FALLBACK="gbm-kms"
is in CMakeLists.txt
@@ -55,6 +57,12 @@ void mgg::RealKMSOutputContainer::update_from_hardware_state() | |||
drm_fd == candidate->drm_fd(); | |||
}); | |||
|
|||
if (connector->connection != DRM_MODE_CONNECTED) | |||
{ | |||
mir::log_warning("Connector is not connected, so not adding this output to the list."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is "info" at best (nothing is wrong), and probably not useful at all without some way to identify which output.
Oh, and do run |
Maybe this isn't the best of ways to do this... Perhaps we still add the connector, but we don't use the output. |
This is wrong. The tests proved this to me 👍 |
fixes #3729
According to the documentation for
drmModeConnection
:With this mind, it does not make sense for us to create a
DisplaySink
for outputs that are not connected, since these do not have display sinks.How to test